Skip to main content

build 61 on jbuilder errors

2 replies [Last post]
r_nagappan
Offline
Joined: 2004-04-20

I have downloaded and installed the windows exe JDK build 61, and installed it into JBuilder 2005. When I try to compile I get 70 build errors of the form:

"MyFile.java": cannot access java.lang.Object; bad class file: C:\java\jdk6.0_b61\jre\lib\rt.jar\java\lang\Object.class, class file has wrong version 50.0, should be 49.0, Please remove or make sure it appears in the correct subdirectory of the classpath. at line 17, column 1

The bad classes reported are everything from java.lang.Object, to util classes, and Swing classes.

Now, I can tell JBuilder to use the mustang javac, and this works fine. But then all the code insight and editor error trapping functions constantly report errors, rendering the editor useless beyond being a text editor/typewriter.

Any thoughts? Or does Jbuilder simply not allow use of Mustang yet?

Raj.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
r_nagappan
Offline
Joined: 2004-04-20

Thanks for that. I did post onto a Borland jbuilder newsgroup overnight. The response was that it's not possible for Jbuilder to anticipate and be forward-compatible with forthcoming releases. ie. you can't use Mustang in Jbuilder 2005/2006 without the IDE constantly complaining about it.

At the moment I am looking at IntelliJ Idea, which is compatible. It also seems more suited to my kind of enviroment - small code centric team rather than a big web-heavy enterprise department.

Raj.

ajsutton
Offline
Joined: 2003-08-07

It sounds like JBuilder is using a Java 1.5 runtime to try and read in the Java 1.6 classes and since the class format has changed it doesn't work. You'll probably need an update for JBuilder to get it's compiler to support Java 1.6.

My inclination would be to spend some time searching Google and then ask a JBuilder list - they may have some more ideas.