If you simply want to compile or run apps from command line, you can just add the jars to the classpath:
win: javac -classpath c:\path1\ext1.jar;d:\path2\ext2.jar de\example\MyClass.java
When running a java application, you have to add the classes folder as well
win: java -classpath bin;c:\path1\ext1.jar;d:\path2\ext2.jar de.example.MyClass
Note that under *ux* OS not a semicolon(
, but a colon(
is used to separate classpath parts.