aspose file tools
The moose likes IDEs, Version Control and other tools and the fly likes Jdeveloper and JDK Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Jdeveloper and JDK" Watch "Jdeveloper and JDK" New topic
Author

Jdeveloper and JDK

Rahul Shivsharan
Ranch Hand

Joined: Jun 17, 2009
Posts: 80
I'v Jdeveloper in my machine its Jdeveloper 9.0.5.2, it uses JDK from its own ie. I did'nt installed a seperate JDK,
i'm using Windows , if i go to my command prompt and type it gives


if i do i will see



that means my Jdeveloper is taking JRE and JDK from its own environment.
the projects which i am working on requires jdk 1.4.2,

what if i installed jdk 1.6 and if i set JAVA_HOME to c:\jdk1.6 and PATH is i append with 'C:\jdk1.6\bin' will it affect my previous path
which is taking jdk 1.4.2

please suggest me as i want to practise java programes using jdk 1.6 as well as i dont want to disturb my own project settings in Jdeveloper which uses jdk and jre 1.4.2.
can we do that





Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4489

I don't use JDeveloper, so I am kind of guessing here. Does JDeveloper get started using a batch file? If so, you can edit the batch file to use the correct JVM. If JDeveloper uses an .exe file, there there is probably a configuration file in which you can supply the JVM location (Eclipse uses an exe and it has an eclipse.ini file).

The other alternative is to create a small batch file that sets JAVA_HOME and adds the bin directory to the PATH. Run that right after opening a command prompt.

Another option is to add the %JAVA_HOME%/bin to the end of the path. This way any apps, such as JDeveloper, that might pick up the JVM from the PATH will get 1.4.2, but anything that uses JAVA_HOME will use 1.6.


JBoss In Action
 
 
subject: Jdeveloper and JDK
 
MyEclipse, The Clear Choice