Home > Back-end > In Linux compile time how to specify the dependent classes and jar?
In Linux compile time how to specify the dependent classes and jar?
Time:09-22
Think on their own centos I compile my idea of the project, the code is no problem, the idea of compiling is normal, but it can't compile on centos, what reason is this excuse me?
CodePudding user response:
Compile Javac - cp.; . \ lib \ myTool. Jar; . \ lib \ myTool2. Jar - d. Helloworld. Java
Run java -cp .; . \ lib \ myTool. Jar; . \ lib \ myTool2. Jar com. SXZ. The Helloworld
It doesn't make much difference whether and Linux! https://blog.csdn.net/sxzlc/article/details/104910162