• 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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, 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

Posts: 5856
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic