Jbuilder X and 1.5
Has anyone been able to compile anything in JDK 1.5 using Borland齭 JBuilder X Foundation IDE.I get the following error with anything I try to compile:
cannot access javax.swing.JFrame,bad class file: C:\java\jre15beta\sdk\jre\lib\rt.jar\javax\swing\JFrame.class,class file has wrong version 49.0, should be 48.0,Please remove or make sure it appears in the correct subdirectory of the classpath. at line 4, column 41
[429 byte] By [
JPJ2004a] at [2007-9-30 1:27:35]

You wrote:
> ... I get
> the following error with anything I try to compile:
>
> cannot access javax.swing.JFrame,bad class file:
> C:\java\jre15beta\sdk\jre\lib\rt.jar\javax\swing\JFrame
> class,class file has wrong version 49.0, should be
> 48.0,Please remove or make sure it appears in the
> correct subdirectory of the classpath. at line 4,
> column 41
This looks like the error you would expect when a 1.4.x javac
encounters classes and .jar files created using the 1.5 javac.
Make sure your environment is completely migrated to 1.5.
If you want to use the new language features in 1.5 (generics,
autoboxing, enhanced for loop, enumerated types, and so on),
remember to add "-source 1.5" to the javac command line.
For more information on 1.5:
http://java.sun.com/developer/technicalArticles/releases/j2se15/
http://java.sun.com/j2se/1.5.0/docs/relnotes/features.html
Hi,
If you are using JBuilderX, I found that using the following plugin;
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=21447
and the following advice
http://threads.borland.com/threads/threads.exe/thread?refid=23160&view=fulltext
did the trick.