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.
2 ответов
+ 4
To use -cp make sure you set the path in the environment, see link I posted.