C:\project
|- bin
|- src
|- com
|- lucia
|- Boo.javaThen compile your java file using:
C:\project javac -d bin src\com\lucia\Boo.java
The above command will make a binary class file inside your bin directory plus the package.
C:\project> javac -d bin -sourcepath src src\com\lucia\Main.java
C:\project> java -cp bin com.lucia.MainSee more on: http://www.ibm.com/developerworks/library/j-classpath-windows/
No comments:
Post a Comment