.classpath file instead of the CLASSPATH Environment variable.

G

Guest

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?
 
A

Arne Vajhøj

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
 
M

Mike Schilling

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?

Using the Bourne shell:

java -classpath `cat .classpath` className
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top