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
157 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.

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

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,100 points
160 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 28, 2020 in Java by Carlos
90 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,110 points
250 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,890 points
1,591 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,520 points
5,066 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,520 points
11,444 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,520 points
2,174 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
24,580 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 6, 2018 by Omkar 38,493 views
+15 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
211,276 views