0

How to use javac with -d and -cp options to compile user made package?

i am having an issue using javac with -d and -cp options to compile packages I have created. First off I domt full understand the package structure. Also I am using javac -cp [class path directory] SourceCode.java to compile and getting error message that the compilor cant find classes in another package. I will post the code and the directories i am using for further explaination.

3rd Feb 2017, 9:55 PM
Nick Giambalvo
Nick Giambalvo - avatar
2 Respuestas
+ 4
To use -cp make sure you set the path in the environment, see link I posted.
19th Feb 2017, 5:56 PM
Tashi N
Tashi N - avatar