What is the name of 开发者_如何转开发the enviromental variable that netbeans IDE uses ?
You can use these start up parameters with the NetBeans IDE
This is probably because your class files are in a package. Say you have your .java files in a src directory and your classes compile to a bin directory. If your main class is in a package named org.example
then you'd run your program from the command line as follows (make sure you're in the bin
directory, not in src
):
C:\MyProject\bin> java org.example.MyClass
精彩评论