Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

WSAD 5.1.2 and JDK 1.5

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 3892
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
S Zaidi
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 4278
34
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes you can create an EAR file by itself and install it manually through the admin console.
 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic