• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java environment variable and path setting  RSS feed

 
Dushyant Chhetri
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • 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..

 
pradipta kumar rout
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • 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



 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • 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.
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!