Writing a java client application in Eclipse, and I would like to call
it at the command line. I noticed that the IDE generates a .classpath
file in the project directory. Is there a way to call the program at
the command line and utilize the .classpath file in lieu of setting
the classpath environment variable?
Arne Vajhøj - 29 Feb 2008 17:58 GMT
> Writing a java client application in Eclipse, and I would like to call
> it at the command line. I noticed that the IDE generates a .classpath
> file in the project directory. Is there a way to call the program at
> the command line and utilize the .classpath file in lieu of setting
> the classpath environment variable?
No.
But generate a jar file with a Class-Path directive in the
manifest.
Arne
Mike Schilling - 02 Mar 2008 08:19 GMT
> Writing a java client application in Eclipse, and I would like to
> call
[quoted text clipped - 4 lines]
> the command line and utilize the .classpath file in lieu of setting
> the classpath environment variable?
Using the Bourne shell:
java -classpath `cat .classpath` className