254Lecture5
Jump to navigation
Jump to search
by nasser
Lecture on Basics
- Paths
- Packages/JARs
- Class paths
- tidiness
- ant
- JUnit
Command prompt
- dir
- dir /b > in.txt
- dir /b > in2.txt
- fc in.txt in2.txt ? diff.txt
- sort in.txt > res.txt
Paths
- echo this is fuyn!! - (what he wrote)
- echo %path%
- set path=%path%
- does nothing
- set path=%path%;01
- makes it the subdir 01
- jar of mylib.jar
- set pather=%path% semi colon
- javac -classpath mylib.jar Main.java
- java -classpath mylib.jar Main (look inside the jar file to find the file)
- javac -d E:\....\bin *.java
- jar tf JabRef-2.0.1.jar ( his example jar file )
- jar xf JabRef-2.0.1.jar ??
- jar cf myjob.jar * (cf= create file)
- jar cfm mylib.jar mine.txt * (manifest file)
Lab tomorrow morning.