I am using WSAD 5.1.2 for J2EE development. I realize that WSAD 5.1.2 uses JDK 1.4 by default, however I do need certain features that are specific to JDK 1.5 only. I was able to change my options in Windows -> Preferences -> Installed JREs to point to JDK 1.5 and thereafter the code written for JDK 1.5 compiles fine. However, I still get a runtime exception which is probably due to the fact that the Test Server still runs version 1.4. Is there anyway for me to tell the server to use version 1.5 instead?
From the posts that I have read it seems that IBM does not support it. Is there a way around or do I have to modify my code altogether?
It can't be done. You cannot make WebSphere (the test server) run on JDK 1.5, so don't even try. Not only will the test server not run, but your end deployment environment (also WebSphere I suppose) wouldn't work either, so why would you want to do this?
Rewrite your code to run on JDK 1.4.
Kyle [ October 18, 2005: Message edited by: Kyle Brown ]
Thanks a lot Kyle. We'll try and work with JDK 1.4 now. By the way using WSAD 5.1.2 I saw options for deploying to either a 5.1 Test Server or 5.0 Test Server. Does that mean we can create individual EAR files to run under 5.0 and 5.1 respectively?
I am using WSAD 5.1.2. In the Help -> About window, selecting the configuration details shows that JVM is:
java.vm.info=J2RE 1.3.1 IBM J9 build 20031201 (JIT enabled)
So it looks like it is using JRE 1.3.1 and not 1.4.
This can also be double checked by looking at the Window -> Preferences -> Edit. In the Edit JRE the Javadoc URL is pointing to http://java.sun.com/j2se/1.3/docs/api [ February 04, 2006: Message edited by: Balachandran Paranjothimani ]