I can not use jdk1.5 in JBuilder

I am using JBuilder X,when i change my jdk to 1.5,it shows below:

"MainPanel.java": cannot access javax.swing.JPanel,bad class file: C:\tools\j2sdk1.5.0b1\jre\lib\rt.jar\javax\swing\JPanel.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 21, column 32

who knows the reason?

[405 byte] By [Liitle-Ant] at [2007-9-30 5:31:07]
# 1

Please, folks. Google before you post!

This has been covered hundreds of times since 1.5 came out, even during its Alpha days.

Basically, the bottom line is that you cannot easily use JBuilder with 1.5. If you cripple parts of JBuilder (like disabling editor syntax checking, living with inconsistent or no auto-indentation, and using only Ant builds), you can stumble along.

Visit the JBuilder developer's site (http://community.borland.com), and search for OpenTools (Jbuilder extensions). One of them allows you to use JDK 1.5 with JBuilder's compilation system, but the other two still apply, and will always apply until JBuilder supports 1.5 syntax in its builtin parser in the editor.

Oh, and you will never be able to debug 1.5-compiled code, if you generate 1.5 binaries (i.e. if you tickle any part of the 1.5 extensions). JBuilder X itself runs only on 1.4.2_0x, and thus can only debug classes which can be run by a 1.4.2 VM (i.e. no 1.5 classes).

shankar.unni at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...
# 2
> Oh, and you will never be able to debug 1.5-compiled codeActually, let me retract that. You may be able to debug 1.5-compiled code if you use a 1.5 JDK and the OpenTool I mentioned.
shankar.unni at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...
# 3

Hi guys, I'm using JBuilder X with JDK 1.5 compiler support, and I still have a big problem...

Someone know how to avoidthe following error when fully rebuilding a big project?

StdErr: java.lang.OutOfMemoryError: Java heap space

I already tried to call javac with -J-Xms and -J-Xmx parameters...

Thanks.

JustCavallo at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...
# 4
thread hijacking won't make you any friends, get lost.
jwenting at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...
# 5

I don't think I'm hijacking the thread: I only anticipate another problem.

It should be better if you reply to the questions, instead of argue...

Since none replied to the first question, I will try: the problem you have, Liitle-Ant, is the incompatibility of JBuilder X with JDK 1.5. You have to use the OpenTool "JDK 1.5 compiler support for JBuilder X". You can find it at the link http://cc.borland.com/Item.aspx?id=21447.

JustCavallo at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...
# 6
You are hijacking this thread by dumping your own question (crossposted as well...) into it without any regard for the original question.You make up for it a bit by regurgitating an answer already supplied by others lateron.
jwenting at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...
# 7

Hi All

I am using jbuilderX and I have succefully compiled and run my code with 1.5 compiler support .The only problem is my structure pane is still showing bad class version ...Error It seems that the compiler used by Ide still recognises 48.0 version classes .However I have successfully changed its configuration files to start up jbuilder using jdk1.5 and now it shows jdk1.5 in info .but the IDE is still behaving as if it has 1.4 compiler .Then I observed that IDE uses javac.jar for starting up.I just want to try javac.jar used in jbuilder2005 ,whether it works with jbuilderX or not so please if any of you using jbuilder2005 could send this jar to me at typicalindian2003@gmail.com it is in JBhome\lib size is 1kb.

Thanx in advance

punitdhiman at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...
# 8
Did you read ANY of the posts above?1) NO thread hijacking2) NO asking people to send you copyrighted material owned by others (Borland and/or Sun in this case)3) Do some research and you'll find out what to do
jwenting at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...
# 9
hi dude I am facing a similar kind of problem plz let me know if you find any solution.
spmlt at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...
# 10

jwenting, your posts are just as much a hijack as the others, at least the others are adding something somewhat related to the topic at hand...you posted 3 times with nothing related.

Anyway, looks like 2005 is really your best bet if you can get the upgrade to solve this problem. I have found that you can compile in 1.4.2 in JBuilderX, then switch your jdk to 1.5 and change the compiler from JBuilder to javac, and run the program. It will run it as if it's in 1.5. Unfortunately, if you make any single change to the document, you can no longer run it in 1.5. Also you cannot use any library that is new to 1.5 (i.e. the new createFont method that takes a file). So this may only be useful for testing in 1.5, not using new functionality available in 1.5. But at least you can test a bit. Then switch back to 1.4.2, make some changes, and do it again.

Not great, and I don't really understand why JBuilder can't make their product more robust.

sideview1 at 2007-7-1 17:37:13 > top of Java-index,Administration Tools,Sun Connection...