Supritha Sheshadri

Greenhorn
+ Follow
since Nov 30, 2019
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 Supritha Sheshadri

Hello Guys,

Thank you very much for helping me understand. I was not sure that the javac command was being executed correctly as it had a lot of information that i didn't entirely comprehend.

Thanks and cheers.

 
6 days ago
Please note, while changing the environment variables, i did not touch the user variables.. The path in the user variables was left as it is and only the path in the system variables was changed.

In this link, https://coderanch.com/wiki/659740/create-Java-program the below points left me a little confused..

" You can set environment variables for either your user only, or for all users (System variables). But don't set a user JAVA_HOME and a system PATH (see this discussion). Add a new variable in either of them by clicking the New button.
Set the variable name as JAVA_HOME, and its value to the directory where you installed the JDK (e.g. C:\Program Files\java\jdk1.8.0_172)
Click OK.
Look for a variable called PATH (the name might slightly vary, for example 'Path'). Select it and click Edit. At the beginning of its value, add the following : "%JAVA_HOME%\bin;" (without the double quotations). Don't forget the semi-colon at the end, to separate this directory to the other directories already in the path."

Please clarify If i should alter the path in the user variable also?. Also help me understand what does "Set the variable name as JAVA_HOME, and its value to the directory where you installed the JDK (e.g. C:\Program Files\java\jdk1.8.0_172)" mean?. Where should i be adding "JAVA_HOME"?.

Thank you.
1 week ago
Hello Guys,

Thank you very much for trying to help me, I really appreciate it.

I understand I had to change the path in the system variable, i referred to, https://docs.oracle.com/javase/8/docs/technotes/guides/install/windows_jdk_install.html#BABGDJFH to change the environment variables. I have done that now.
However my command prompt is still unable to find my javac. I have double checked the directory. It is exactly in the path that has been set and I see that it has come before all the other paths, refer to the image attached. I have now downloaded the latest version of java J2SE 13, I do not, at the moment have any other version of java on my system.

Command prompt gives me a lot of information when i type the javac or the java instruction. Also command prompt shows the path with the javac.exe appended to the path.. I am stuck. Please check and help. Screen shots have been attached.

Thank you.
1 week ago
Sorry, I forgot to attach the links of the CodeRanch replies i referred to,

Here are the links I have so far gone through,

https://coderanch.com/t/693921/java/adding-entry-PATH-environment-variable
https://coderanch.com/t/687593/java/Setting-environment-variables-command-line
https://coderanch.com/t/689105/java/Win

Kindly help me set up my Path and the envt variables.

Thanks.
1 week ago
Hello Jeanne,

Thank you for your quick reply.

I understand that java 5.0 is old. I downloaded the newest version java SE 13. However my command prompt shows the following as my version, refer to the image attached.

Also I am having a lot of trouble with the PATH adding. I have changed my environment variable as suggested on the below CodeRanch replies. Still it looks like there is something i am doing wrong. I would really be grateful if you could help me set it up.

Thank you in advance.
1 week ago
Hey, I have just began learning java. As per the instructions in the book (head first java) i am supposed to go to "java.sun.com" to get my J2SE 5.0 however the URL is leading to the "https://www.oracle.com/technetwork/java/index.html" web page which doesn't have the download option.

Also upon clicking on "java SE" in the top downloads section, different version of Java SE are shown none of which are 5.0
https://www.oracle.com/technetwork/java/javase/downloads/index.html

Quite lost, Need help in getting both the J2SE and the SDK.

Thank you!
1 week ago