A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Brian R Wolf
Joined: Jan 25, 2010
Jan 30, 2010 02:38:07
I know this class: org.apache.pig.Main exists in /cygdrive/c/pigtute/pigtmp/pig.jar , but when I run this, it doesn't seem to find it.
-cp /cygdrive/c/pigtute/pigtmp/pig.jar org.apache.pig.Main
at java.security.AccessController.doPrivileged(Native Method)
Joined: Jan 29, 2010
Jan 30, 2010 05:38:10
Use the syntax java -jar jar-file
Before you execute this command make sure the runtime environment has an information of which class within the JAR file is the application's entry point.
To indicate which class is the application's entry point, you must add a Main-Class header to the JAR file's manifest. The header takes the form:
The header's value, classname, is the name of the class that's the application's entry point.
Rajeev Trikha (SCJP 6)
I agree. Here's the link:
subject: jar classpath
Launch ant from cygwin
cppunit and netbeans
servlet compile problem
java on cygwin
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015