Java files save | SoloLearn: Learn to code for FREE!

0

Java files save

Can i save my java program files in other folderbor in other drive than where jdk is saved ?

6/2/2020 8:50:38 AM

Sagar Gupta

4 Answers

New Answer

+3

0

AMOGHA. A. K. BUT HOW WILL COMPILER FIND THE FILE?

0

You tell it where to find it either using relative or absolute path

0

you need add the path to java\bin to the system variable 'PATH' or specify the path when you call compiler and jvm, (you can also specify path for classes and modules) eg https://docs.oracle.com/javase/tutorial/essential/environment/paths.html