Question:
Problem in java path setting.?
Be in style
2011-07-27 19:11:30 UTC
I hav installed java 1.6v25 and i set my path to c:\...\jdk1.6.0_25\bin and it runs smoothly. but when in close thee command prompt and again when i tried to use javac it is not working. i checked my path variable its directing somewhere else in windows folder. I am using a XP machine. plz help.
Three answers:
McFate
2011-07-27 20:07:37 UTC
Did you change the %PATH% variable in just the one command prompt? Changes made to environment variables within one command prompt ("SET myVar=myValue") are local to that command prompt only.



If you want to change an environment variable permanently, in Windows, right-click on "My Computer" and select "Properties...". Select "Advanced System Settings" in the resulting dialog and select the "Environment Variables" button. There you can modify your environment variables and every process created from that point on will have the modified version.
Vaibhav
2011-07-28 05:59:15 UTC
Go to My Computer

Advanced

Environmental Varibles

Create a new variable with value as path of javac i.e. bin

now save and then compile the programs
?
2016-10-05 09:21:42 UTC
attempt this (this would or would possibly no longer artwork): Goto the administration Panel and open your Java administration Panel.click on the JAVA Tab and then click VIEW below JAVA utility RUNTIME SETTINGS. With the recent window opened, verify to verify if the previous JDK a million.5 is listed and eliminate it no rely if it relatively is. additionally, make particular that JDK a million.4 has it relatively is ENABLED container checked. close out the Java administration Panel and restart your computing gadget then attempt your command lower back. If this does not artwork, then you certainly'll would desire to set the path for Java to point to the right itemizing. Your atmosphere variables could look resembling this (replace your version for the version shown right here protecting in innovations that each and every time you spot a be conscious it relatively is CAPITALIZED, that shows the commencing up of a sparkling line. the path=/h/jdk/bin:.: variable is broken up right here and could be one non-stop string): atmosphere Variables: JAVA_HOME=/h/jdk path=/h/jdk/bin:.:/h/bin:/usr/bin:/usr... /exe:/usr/dist/exe:/bin:/usr/sbin:/usr... /usr/dt/bin:/usr/openwin/bin:/usr/sbin... USERNAME=consumer LD_LIBRARY_PATH=/h/jdk1.5/jre/lib/i386... jre/../lib/i386:/h/bugs/NativeSEGV SHELL=/bin/tcsh show=:0.0 HOSTTYPE=i386-linux OSTYPE=linux ARCH=Linux MACHTYPE=i386 wish this helps.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...