0

Java files save

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

2nd Jun 2020, 8:50 AM
Sagar Gupta
Sagar Gupta - avatar
4 Réponses
0
AMOGHA. A. K. BUT HOW WILL COMPILER FIND THE FILE?
2nd Jun 2020, 9:14 AM
Sagar Gupta
Sagar Gupta - avatar
0
You tell it where to find it either using relative or absolute path
2nd Jun 2020, 9:19 AM
HNNX 🐿
HNNX 🐿 - avatar
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
2nd Jun 2020, 9:49 AM
zemiak