• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Jdeveloper and JDK

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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





 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
I think I'll just lie down here for a second. And ponder this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic