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 in Java by Amazing
• 120 points
70 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 by Roshni
• 4,630 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
• 57,680 points
121 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
200 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,287 views
0 votes
1 answer

How to set a timer in Java?

To work on timer in java, you ...READ MORE

answered May 16, 2018 in Java by Daisy
• 8,110 points
142 views
0 votes
2 answers

How to find out a single character appears in String or not in Java?

You can use string.indexOf('s'). If the 's' is present in string, ...READ MORE

answered Aug 7, 2018 in Java by Sushmita
• 6,890 points
528 views
+5 votes
3 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 31,397 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
4,492 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
10,471 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
1,904 views
0 votes
1 answer

how to read csv file form sftp connection and store into string object in java code and convert into json.....post it using rest api

Hey, @Pooja, Before starting with anything you should ...READ MORE

answered May 12 in Java by Roshni
• 4,630 points
493 views