• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java -cp (class path)  RSS feed

 
Steve Rock
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recently started learning Java. And stuck..in class paths. Can somebody explain, where and how java -cp command uses? I try google it, but find nothing usefool.
 
Les Morgan
Rancher
Posts: 779
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the -cp option is a commandline option that can be used to set the classpath, path, that your OS uses to search for your Java support files.

I was surprised at your statement about google not having any references... so here is a google search parameter list that should get you tons of answers for your subject: "java classpath environment variable"

BTW: when I tried googling class path and java classpath -cp and all combinations thereof, I received many, many hits... more than I cared to follow.
 
Campbell Ritchie
Marshal
Posts: 56599
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

As LM says, there are lots of resources available. Is there nothing in the Java™ Tutorials?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!