M
Monsieur Le Maire
I have this error when I try to run a program, it can't
find the main class, although I created all the necessary
files.
I have
ApplicationFrction.java
Fraction.Java
read_int.java
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
fraction.ApplicationFraction
Could it be there's a conflict between the package fraction and the
class fraction ...
batch file:
C:\j2sdk1.4.2\bin\javac.exe *.java
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
Main-Class: fraction/ApplicationFraction
find the main class, although I created all the necessary
files.
I have
ApplicationFrction.java
Fraction.Java
read_int.java
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
fraction.ApplicationFraction
Could it be there's a conflict between the package fraction and the
class fraction ...
batch file:
C:\j2sdk1.4.2\bin\javac.exe *.java
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
Main-Class: fraction/ApplicationFraction