Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java -cp

 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

What does "-cp" mean in ---> java -cp abc.jar?

Thanks.
 
M K Rayapudi
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-cp means classpath for zip/jar files

java -cp abc.jar?


will look in abc.jar (of course your command is incomplete, you have to provide one more ARGUMENT i.e. an executable class name)
 
Steve Luke
Bartender
Posts: 4181
21
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It lets you set the classpath to use for searching for class files. you can also type in java -? to get help on what options are available and what they mean.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A little bit more information than the command line can be found here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic