本文主要是介绍Java Programming Examples,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Java Programming Examples
Example - Environment
- How to compile a java file?
- How to debug a java file?
- How to set classpath?
java -cp
java -classpath
- How to view current classpath?
- windows
C:> echo %CLASSPATH%
- linux
echo $CLASSPATH
- How to set destination of the class file?
c:> javac demo.java -d c:\myclasses
- How to run a compiled class file?
- How to check version of java running on your system?
java -version
- How to set classpath when class files are in .jar file?
c:> java -classpath C:\java\myclasses.jar com.example.main
这篇关于Java Programming Examples的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!