Java Classpath Hints

From SnOwy - Ed's Wiki Notebook

Jump to: navigation, search

Java classpaths are a pain.

Here are a few observations I've made about how to specify them in the command line.

javac -classpath .:Item1.jar:Item2.jar

Nuisance? Yes! Necessary Evil? No!

In the compiled Java class, there certainly could have been some metadata implemented that is a copy of the last known classpath string... why is there a disparity between the symbols used in Unix and Windows? ... Why aren't spaces allowed? Why does one have to specify the current working directory?

Evil.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox