PDA

View Full Version : help me ,why i can not compile the source



lstiger
09-01-2003, 08:56 PM
my compile error is :
>>>>>>>>>>>>>>>>>>>>>>>>
java.lang.NoSuchMethodError: java_cup.Main.fileNameToClass(Ljava/lang/String;)Lj
ava/lang/String;
at java_cup.JavaCUPTask.getArgs(JavaCUPTask.java:205)
at java_cup.JavaCUPTask.execute(JavaCUPTask.java:191)
at org.apache.tools.ant.Task.perform(Task.java:319)
at org.apache.tools.ant.Target.execute(Target.java:309)
at org.apache.tools.ant.Target.performTasks(Target.java:336)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
at org.apache.tools.ant.Main.runBuild(Main.java:610)
at org.apache.tools.ant.Main.start(Main.java:196)
at org.apache.tools.ant.Main.main(Main.java:235)
java_cup.Main.fileNameToClass(Ljava/lang/String;)Ljava/lang/String;
>>>>>>>>>>>>>>
but i can find the fileNameToClass in java_cup.Main.
why?

jhyde
09-01-2003, 08:57 PM
What JDK are you using?

lstiger
09-01-2003, 09:19 PM
my jdk is 1.4.0_02

lstiger
09-02-2003, 02:04 PM
all is right. i install jdk 1.4.1 ,and work well.