SCJP, SCWCD.
|Asking Good Questions|
Regards
Prince
---------------------------------------------------------
SCJP 6 , still a life long learner
Amit Ghorpade wrote:Just to add on, has he tried executing the command from the JRE installation directory? It will work for sure if its executed from the JDK's bin directory since there won't be any version and path conflicts.
Campbell Ritchie wrote:Putting the jdk1.7 path at the start of the PATH will mean your most up-to-date version of java.exe will be found first. Once the computer has found one version of "java.exe", it will stop looking.
No. Create your own directory. "mkdir java" or similar. Now you can gain access to that directory with "cd java".Suzanne Mir wrote: . . . Ok, the java command works when it is executed from the jre7 directory. Does that mean he should save all his apps into this folder instead?
Did you open a new command line? The change is not applied until you open an new command window.Suzanne Mir wrote: . . .
Campbell Ritchie wrote:Putting the jdk1.7 path at the start of the PATH . . .
Did this, but we still get the error when running Java from the java directory.
Thanks again for all the help - we will keep trying.
Campbell Ritchie wrote:
Did you open a new command line? The change is not applied until you open an new command window.
Campbell Ritchie wrote:Can you uninstall Java7 and do a system restore to before you installed it?
sasanka mandavilli wrote:go to
C:\Program Files\Java\jdk1.7.0\bin
and click java.exe file
Please correct my English.
Suzanne Mir wrote:
Campbell Ritchie wrote:
Did you open a new command line? The change is not applied until you open an new command window.
Yes, and restarted the computer with fingers crossed. He's been able to get some more practice in thru the jre dir, so it's moving along now. It's just frustrating that I can't figure out what the problem is.
One thing I remembered - we installed windows 7 a few months back, and it created a folder of our old system with all the programs and files - we had java installed on the old system. Would that be creating a problem? Although I don't see how.
Suzanne Mir wrote:
under system: C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Windows Live\Shared;C:\Program Files\Java\jdk1.7.0\bin\;
Regards
Prince
---------------------------------------------------------
SCJP 6 , still a life long learner
That PATH is incorrect; you should not usually include . in the PATH. Make sure to put the Java™ part of the PATH first.Prince Sewani wrote: . . .
b) name : PATH
value : .;%JAVA_HOME%\bin . . .
Campbell Ritchie wrote:
That PATH is incorrect; you should not usually include . in the PATH. Make sure to put the Java™ part of the PATH first.Prince Sewani wrote: . . .
b) name : PATH
value : .;%JAVA_HOME%\bin . . .
Suzanne Mir wrote:
Campbell Ritchie wrote:
That PATH is incorrect; you should not usually include . in the PATH. Make sure to put the Java™ part of the PATH first.Prince Sewani wrote: . . .
b) name : PATH
value : .;%JAVA_HOME%\bin . . .
so should it just look like this: %JAVA_HOME%\bin ?
Either way, it still isn't working after I follow the steps from Prince. I still get the same error saying that 1.6 is required instead of 1.7 The javac command works, but not java.
Regards
Prince
---------------------------------------------------------
SCJP 6 , still a life long learner
Campbell Ritchie wrote: . . . but Suzanne Mir's path isn't. It is as a general rule a bad idea to delete folders unless you created them yourself.
Regards
Prince
---------------------------------------------------------
SCJP 6 , still a life long learner
Suzanne Mir wrote:There is still a java folder in the registry after I uninstall Java. When all this started, I was following someone else's directions and deleted the java folder from the registry after the uninstall. It didn't seem to make a difference.
Regards
Prince
---------------------------------------------------------
SCJP 6 , still a life long learner
I guess everyone has an angle. Fine, what do you want? Just know that you cannot have this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|