How to set path if java is installed in E drive or D drive rather than c

0 votes
Hi ,I have installed java in E drive as my C drive is full .After successful installation ,if i run java -version its working for me .But as soon as i run command javac -version it is showing javac is not recognized as internal or external command,operable program or batch file .I have already set path and JAVA_HOME variables still its not working
Sep 1, 2020 in Java by Amazing
• 120 points
4,459 views
Hi, @Amazing,

Did you copy the exact path from the bin folder of the Java version where the javac.exe file was stored and you just had to left-click and get the path? That particular path you have to save

1 answer to this question.

0 votes

Hello, @Amazing,

It doesn't really matter where you store JDK as long as you have given the correct path of JDK in the System's Environment variable known as "Path". There also might be a system variable like "JAVA_HOME". Its value should also be set to JDK's path.

Hope this helps!

Join Java Course today to learn more.

Thanks!

answered Sep 1, 2020 by Roshni
• 10,480 points

edited Jul 4, 2023 by Khan Sarfaraz

Related Questions In Java

0 votes
1 answer

How is inheritance in C++ different than that in Java?

The purpose of inheritance is same for ...READ MORE

answered Feb 6, 2019 in Java by Priyaj
• 58,020 points
1,005 views
0 votes
3 answers

How to check if a String is numeric in Java?

Check if a string is numeric public class ...READ MORE

answered Dec 29, 2020 in Java by Carlos
2,896 views
0 votes
2 answers

How to create a 2-D array in java?

int[][] multi = new int[5][]; multi[0] = new ...READ MORE

answered Jul 16, 2018 in Java by Daisy
• 8,140 points
1,605 views
0 votes
3 answers

How to check whether a file exists or not in Java?

Using nio we can check whether file ...READ MORE

answered Aug 14, 2018 in Java by Sushmita
• 6,920 points
4,145 views
+1 vote
1 answer

How to handle drop downs using Selenium WebDriver in Java

First, find an XPath which will return ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,500 points
8,409 views
0 votes
1 answer

What are the differences between getText() and getAttribute() functions in Selenium WebDriver?

See, both are used to retrieve something ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,500 points
17,510 views
0 votes
1 answer

Selenium JARS(Java) missing from downloadable link

Nothing to worry about here. In the ...READ MORE

answered Apr 5, 2018 in Selenium by nsv999
• 5,500 points

edited Aug 4, 2023 by Khan Sarfaraz 4,914 views
0 votes
1 answer

Using gettext() method for the specific element using Selenium WebDriver

Mistake is that u r printing the ...READ MORE

answered Apr 10, 2018 in Selenium by Vardy
• 2,360 points
28,752 views
+5 votes
4 answers

How to execute a python file with few arguments in java?

You can use Java Runtime.exec() to run python script, ...READ MORE

answered Mar 27, 2018 in Java by DragonLord999
• 8,450 points

edited Nov 7, 2018 by Omkar 81,393 views
+17 votes
25 answers

How can I convert String to JSON object in Java?

Hi @Daisy You can use Google gson  for more ...READ MORE

answered Feb 7, 2019 in Java by Suresh
• 720 points
253,811 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP