The biggest gamble will be to ask a question whose answer you know in that it will challenge your theory | www.TechAspire.blogspot.in
Rajdeep Biswas wrote:Welcome to Ranch.
When you open cmd, browse to the .class containing directory and type javac and java individually, what do you see?
Plus what do you know about running a class? How to do it? [looking at your current knowledge]
Edit: Have you set your "path" and "classpath" environment variables? When you enter echo %path% and echo %classpath% in cmd individually, what do you see please post them here.
chris crouch wrote:..so i added %JAVA_HOME%\bin into the begining of classpath and when i echo %classpath% i get C:\Program Files\Java\ jdk1.7.0_09\bin..
.;%JAVA_HOME%\lib;%JAVA_HOME%\jre\lib
The biggest gamble will be to ask a question whose answer you know in that it will challenge your theory | www.TechAspire.blogspot.in
No, I’m afraid that was a mistake. That sort of thing belongs in the PATH. If JAVA_HOME includes the JDK installation folder, you don’t need the JRE folder in your PATH at all.chris crouch wrote: . . .
so i added %JAVA_HOME%\bin into the begining of classpath and when i echo %classpath% i get
. . .
Not yet. Print the classpath and path with echo %PATH% and echo %CLASSPATH%chris crouch wrote: . . .
maybe i should uninstall and reinstall
If you get 1.7.0_09 as version numbers for both programs, then it probably is in the right place in the PATH.I earlier wrote:. . .
I presume the JDK1.7.0_09 entry was at the beginning of the PATH? . . .
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|