Madhushree Lakshman

Greenhorn
+ Follow
since Mar 19, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Madhushree Lakshman

Okay.. Thank you so much. I'll post about my progress again.
8 years ago
It is 'JAVAC'. Start>Control Panel>System>Advanced System Settings>Advanced>Environment Variables>

-User Variable:JAVA_HOME
-User Value:F:\Program Files\Java\jdk1.7.0_3

-System Value:%JAVA_HOME%\bin;

As it did not work i tried this.
Only System variable 'Path' value to

F:\Program Files\Java\jdk1.7.0_3\bin;
8 years ago
@John Jai: Ya..i started out setting the environment variables using the same FAQ. When it did not work, i searched for the same in the forum and tried different things mentioned in them but, all in vain.

@Campbell Ritchie: Thanks I read the remaining part and tried to compile and execute my first java program.
At the command prompt, i went to the directory where i have saved the MooseGreetings.java file, typed "javac MooseGreetings.java", and Entered. The file did not compile. I got the same reply that "JAVAC is not recognised as an internal or external command, operable program or batch file."
Interestingly a file called "JAVA" has been created by this in my 'src' directory instead of the required "MooseGreetings.class" file. I dont know what it does!
Further, i tried to execute it by using the "java -classpath . MooseGreetings" command although, i know it should be compiled first.. Then again its showing the same message as above.

What should i do?? Should i try uninstalling the application and then Re-install?

8 years ago
Hi Everyone,

I have just started to learn Java. So with the help of JAVA Beginner's FAQs, i downloaded the latest version of Java
platform Standard Edition which is jdk1.7.0_3 (jdk-7u3-windows-i586). I installed it into my F drive.

Now for setting the JAVA_HOME and path Environment variables, i had done the following

-User Variable:JAVA_HOME
-User Value:F:\Program Files\Java\jdk1.7.0_3

Editing the System variable 'Path',
-System Value:%JAVA_HOME%\bin;

Now i restart the system.

For this in the command prompt, if i typed either java, javac, javac-version, i get the response as
"'java' is not recognized as an internal or external command, operable program or batch file."

Then after reading the discussion about not setting both user JAVA_HOME and a system PATH, i changed only the System
variable 'Path' value to

F:\Program Files\Java\jdk1.7.0_3\bin;

But still i'm getting the same result despite of trying in different ways of putting these values, as learnt from the
discussions. I dont know where i'm going wrong. Please Help Me!
8 years ago