PDA

View Full Version : Jflex


Sephirot
19-05-2003, 11:14
salve... ho installato questo analizzatore lessicale per java, e l'ho settato così:

@echo off
REM Please adjust the paths JFLEX_HOME and JAVA_HOME to suit your needs
REM (please do not add a trailing backslash)

set JFLEX_HOME=C:\JFlex\bin

REM only needed for JDK 1.1.x:
set JAVA_HOME=C:\j2sdk1.4.1_02

REM -------------------------------------------------------------------

set CLPATH=%JAVA_HOME%\lib\classes.zip;%JFLEX_HOME%\lib\JFlex.jar

REM for JDK 1.1.x
%JAVA_HOME%\bin\java -classpath %CLPATH% JFlex.Main %1 %2 %3 %4 %5 %6 %7 %8 %9

REM for JDK 1.2
rem java -Xmx128m -jar %JFLEX_HOME%\lib\JFlex.jar %1 %2 %3 %4 %5 %6 %7 %8 %9

ma ho un problema: quando cerco di farlgli analizzare un file mi da questo errore...

c:\jflex\bin\jflex nomefil
Exception in thread "main" java.lang.NoClassDefFoundError: JFlex/Main

cosa è che non và? possibile che abbia sbagliato a configurare Jflex? :confused: