- Download jflex file and extracting file to your directory
- edit jflex .bat file JAVA_HOME="your java jre or jdk" (example.C:\Program Files (x86)\Java\jdk1.8.0_291) JFLEX+HOME="your jflex path" (example.C:\jflex-1.8.2) and edit execute command to "java -Xmx128m -jar %JFLEX_HOME%\lib\jflex-full-1.8.2.jar %1 %2 %3 %4 %5 %6 %7 %8 %9"
- add jflex/bin to your path on environment
- jflex Lexer.jflex
- javac Lexer.java
- java Lexer yourfile.txt