I have this error when I try to run a program, it can't
find the main class, although I created all the necessary
all the java program start with a package fraction. I run java but
always get NoClassDefFoundError it can't find the main class. I
played with CLASSPATH variable, I called the mainclass
Could it be there's a conflict between the package fraction and the
class fraction ...
C:\j2sdk1.4.2\bin\jar cf tp2.jar *.class
C:\j2sdk1.4.2\bin\jar cmf mainclass tp2.jar *.class
C:\j2sdk1.4.2\bin\java -jar tp2.jar
C:\j2sdk1.4.2\bin\jar tvf tp2.jar
main class file
"Monsieur Le Maire" <Monsieurle_maire@hotmail.com> wrote in message
> I have this error when I try to run a program, it can't
> find the main class, although I created all the necessary
> I have
> all the java program start with a package fraction. I run java but
> always get NoClassDefFoundError it can't find the main class. I
> played with CLASSPATH variable, I called the mainclass
See: http://jinx.swiki.net/61 for information on proper classpath to the jar
file, making the jar file double-clickable, and other package/classpath
I believe your manifest file has bad format for the Main-Class: entry.
On 21 Jul 2003 09:28:57 -0700, Monsieurle_maire@hotmail.com (Monsieur
Le Maire) wrote or quoted :
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
|All times are GMT. The time now is 12:03 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.