[jflex-users] jar for example "cup"
The fast lexer generator for Java
Brought to you by:
lsf37,
steve_rowe
From: Claude B. <cb_...@ya...> - 2013-06-02 11:46:36
|
Hi all, I'm discovering jflex and cup, and I am not an expert in java... I compile the example "cup" by running "make" with the cup/Makefile, all's good. Then, I build a cup.jar file: "jar cvfm cup.jar manifest.txt *.class", where "manifest.txt" tells where Main is. I try to launch "java -jar cup.jar test.txt" and I get "Exception in thread "main" java.lang.NoClassDefFoundError: java_cup/runtime/Scanner". CLASSPATH is set and contains jflex.jar and cup.jar, cup.jar actually contains all the classes generated by make, in particular Lexer.class where Scanner is implemented. Why doesn't java find with cup.jar the elements it finds when executing "java Main test.txt" ???? Any help ? |