From: Samuele P. <pe...@in...> - 2001-09-18 17:39:42
|
> > > That's a java problem/design decision. > > > > Java -jar ignores the classpath and limits loading > > to the jar and the extension dirs. > > > > http://java.sun.com/j2se/1.3/docs/tooldocs/linux/java.html#options > > This webpage confirms that I can use '-cp' to set the classpath when > running my app. You have missed the point. It is not a matter of what the page says about -cp but what it says about -jar: (from the vary seem page) -jar Execute a program encapsulated in a JAR file. The first argument is the name of a JAR file instead of a startup class name. In order for this option to work, the manifest of the JAR file must contain a line of the form Main-Class: classname. Here, classname identifies the class having the public static void main(String[] args) method that serves as your application's starting point. See the Jar tool reference page and the Jar trail of the Java Tutorial for information about working with Jar files and Jar-file manifests. When you use this option, the JAR file is the source of all user classes, and other user class ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ path settings are ignored. ^^^^^^^^^^^^^^^^^^^^^^^^^ Now you can reread my previous message. > > This feels like something silly I've missed. Until now I have been trying > to avoid having to learn about the Java environment, but there seems to be > no helping it. > Avoiding to learn about the Java env and using jython is a bad idea... regards, Samuele Pedroni. |