Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java -classpath option

Will the use of -classpath option with java, add to or replace the contents of the CLASSPATH env variable?

like image 420
Zacky112 Avatar asked Jan 29 '10 11:01

Zacky112


People also ask

What is VM option in Java?

VM Options FilesYou can find the options for the Java Virtual Machine in the . vmoptions files that are located in Collaborator install folder. The file name corresponds to the name of the appropriate executable file. For server the path will be: <Collaborator Server>/ccollab-server.vmoptions.

How do I start Java options?

To launch a class file: java [options] mainclass [args ...] To launch the main class in a JAR file: java [options] -jar jarfile [args ...]


1 Answers

Using the classpath variable it overrides the CLASSPATH of Environment variable but only for that session. If you restart the application you need to again set the classpath variable.

like image 170
giri Avatar answered Sep 22 '22 06:09

giri