I am using WSAD 5.1.2 and the server is Websphere Test Environment 5.0. We took an API from net which is used for drawing chars and graphs. But this uses JDK 1.4. (javax.nio.ImageIO etc..) or higher. But WSAD 5.1.2 defaults to JDK 1.3. So we went to Window-->Preferences--> Installed JRE's --> and added a new JRE and started pointing to it. Also, we changed JAVA_HOME to point to the new JRE(jre1.4.2_10) but the following error is still there.
The main error is with class file version. May be the server is expecting a diff. version of class file. So I deleted all class files from my web project as well as Java projects and gave a "Rebuild All". Still the error persists.
WebSphere using JDK 1.3, so make sure to set -target 1.3 when you use JDK 1.4 for compilation. Use -bootclasspath to add rt.jar from JDK 1.3
Tough in space?, <a href="http://tjws.sf.net" target="_blank" rel="nofollow">Get J2EE servlet container under 150Kbytes here</a><br />Love your iPod and want it anywhere?<a href="http://mediachest.sf.net" target="_blank" rel="nofollow">Check it here.</a><br /><a href="http://7bee.j2ee.us/book/Generics%20in%20JDK%201.5.html" target="_blank" rel="nofollow">Curious about generic in Java?</a><br /><a href="http://7bee.j2ee.us/bee/index-bee.html" target="_blank" rel="nofollow">Hate ant? Use bee.</a><br /><a href="http://7bee.j2ee.us/addressbook/" target="_blank" rel="nofollow">Need contacts anywhere?</a><br /><a href="http://searchdir.sourceforge.net/" target="_blank" rel="nofollow">How to promote your business with a search engine</a>
I don't know if all people now know how to solve this problem, this is what I did and it worked to me:
in websphere window-->preferences-->java-->compiler I select in compliance level: 1.3 and it was all it start to work fine.
Hope this help some one.
Bye [ October 20, 2006: Message edited by: juan bedoya ]
Joined: Aug 24, 2006
Im getting the error while running apache ant1.6.1 even after setting PATH, class path, JAVA_HOME system environment variables to jdk1.3. Can anybody help me.
Joined: Mar 22, 2005
your situation may or may not be different from the one mentioned above. if you are using a library that relies on Java 1.4 (like the original poster did), then there is no way you'll get it to work under 1.3.
On the other hand, if it's your own code (and it does not use JDk 1.4-only features), then you should recompile it using the "-target" switch mentioned earlier, or -even better- recompile it using JDK 1.3.