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

Java environment variable and path setting

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am having a pecuilar problem with java environment variables and setting the path.

I am trying to install and check the instalation using some pre-provided batch commands from Open GTS.

The error log is as below .



Further more these may help understand better



The resolution suggests that the path point to the same instance of jdk installation but that has already been done,

I do not understand from where does the
C:\Program Files\Java\jre6 path get set.

Please suggest..

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
1.please first uninstall your java.
2. see whether you are having a JDK or JRE .
3.Then if youarer having a JDK then install it
4.Then go to Desktop-mycomputer-right click-properties-Advanced-Environment Variables-(user variable)select-new-[variable name=path] and variable value=[your installation folder path of bin inside jdk e,g C:\Program Files\Java\jdk1.6.0\bin].

5.pres ok


Note:Its for Windows OS



 
Sheriff
Posts: 22787
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not necessary. The JDK installs C:\Windows\system32\java.exe which is a form of shortcut for the current Java installation. It seems like this version of Java is found first. Simply move the JDK folder to the front of the PATH and your problem should be solved.
 
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
let me know which OS you are using

is it window7.
if yes there are two program files over there
1.program files
2.program files(x86)
you have to check which one contain the jdk folder which you have installed
 
reply
    Bookmark Topic Watch Topic
  • New Topic