aspose file tools
The moose likes Websphere and the fly likes WSAD 5.1.2 and JDK 1.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "WSAD 5.1.2 and JDK 1.5" Watch "WSAD 5.1.2 and JDK 1.5" New topic
Author

WSAD 5.1.2 and JDK 1.5

S Zaidi
Greenhorn

Joined: Jul 31, 2003
Posts: 9
Hi,

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?

--Thanks
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
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 ]

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
S Zaidi
Greenhorn

Joined: Jul 31, 2003
Posts: 9
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?

-- Thanks once again for all your help
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3652

Yes you can create an EAR file by itself and install it manually through the admin console.


My Blog: Down Home Country Coding with Scott Selikoff
Balachandran Paranjothimani
Ranch Hand

Joined: Jun 18, 2005
Posts: 43
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 ]

Moderator : <a href="http://groups.yahoo.com/group/OOAD_UML/" target="_blank" rel="nofollow">http://groups.yahoo.com/group/OOAD_UML/</a><br />Home : <a href="http://www.zepho.com" target="_blank" rel="nofollow">http://www.zepho.com</a>
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: WSAD 5.1.2 and JDK 1.5
 
Similar Threads
[ wsad 5.1 ] jdk 1.4
WSAD 5.1.x --> JDK 1.5???
JDK 1.5 in WSAD 5.1.2
Problem with WSAD 5.1.0
WSAD 5.0.1 JDK