Creating JARs
- Build Project
- File > Export
Don’t select Eclipse .classpath or .project
For Debugging...select these
Manifest file has project metadata
ClassPath
- when running from COmmand line, the =classpath switch is required
- java -classpath .;OlivePress.jar com.uc.java_lynda2013b.olivepress.Main
- ',; = current folder
Create a batch file and pass %1
set CLASSPATH=.
OR
For Linux
D:\TEMP\Eclipse>java -classpath .:OlivePressApp.jar com.lynda.olivepress.Main
For Windows
D:\TEMP\Eclipse>java -classpath .;OlivePressApp.jar com.lynda.olivepress.Main
You crushed a Kalamata olive
You crushed a Ligurian olive
You crushed a Kalamata olive
You have 5 units of oil
You crushed a Kalamata olive
You crushed a Ligurian olive
You crushed a Kalamata olive
Now you have 10 units of oil
Olive 1 is from Greece
JavaDocs
Source > Generate Element Comment
/**
* @author SiloSix
*
*/
File > Export > Java > JavaDoc
javadoc.exe: C:\Program Files\Java\jdk1.6.0_33\bin\javadoc.exe
- Log in to post comments