Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JBuilder 2005 & Java 1.5?




On Feb 1, 2006, at 5:15 AM, Hsu wrote:

(After updating to JBuilder 2005 update 4)
First, when I run JBuilder I now get this error: Exception in thread "main" java.lang.NoSuchMethodError: java.awt.Window.isAlwaysOnTop()Z
Since isAlwaysOnTop() is new for 1.5, I presume means that JBuilder is stuck on 1.5.

This is because JBuilder 2005 update 4 adds Borland's own implementations of the AWT classes (java.awt.*, and some javax.swing classes) based on 1.4.2 to the bootclasspath. At the same time, JBuilder uses a custom launcher which always loads the VM using the CurrentJDK link. Since the VM is still running 1.5.0, and peers are still 1.5.0, but the actual AWT classes are 1.4.2, you get this exception.


This should be reported to JBuilder as a bug; either they should not ship their own copies of java.awt.Window (etc), or their launcher should force 1.4.2 instead of going through CurrentJDK.

Karl


Great reply Karl - that explains a lot, including why modifying the Info.plist file to point to 1.4.2 doesn't help at all. It also explains why the only apparent work around to this bug is to rename the CurrentJDK link, against all the advice on this forum and Apple! I'll report the bug to Borland and suggest that any other JBuilder users do the same!

Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >JBuilder 2005 & Java 1.5? (From: Michael Rogers <email@hidden>)
 >Re: JBuilder 2005 & Java 1.5? (From: "frank.hossfeld" <email@hidden>)
 >Re: JBuilder 2005 & Java 1.5? (From: Michael Rogers <email@hidden>)
 >Re: JBuilder 2005 & Java 1.5? (From: Hsu <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.