Trouble setting up jFlex
I wanted to use jFlex. Tried to search online tutorials. But all points to the same link. I could not successfully set up and use Flex o开发者_如何转开发n my machine. It would be great if some one could point me to a good tutorial.
Thanx in advance.
I have set this up recently on my 64 and 32 bit windows 7 systems. Here's what I did:
- Installed the extracted JFlex under my C:.
- Went into the bin folder (C:\jflex\bin) and edit the JFlex.bat file in my Notepad++
- There are two paths that need to be edited "JFLEX_HOME" and "JAVA_HOME".
- Because of my folder structure, I don't have to change "JFlex_HOME", but depending where you have installed it you may need to point to a different directory.
- JAVA_HOME - You have to browse your programs directory and find your java jdk installation. My JAVA_HOME variable is as follows: set JAVA_HOME="C:\Program Files\Java\jdk1.6.0_20"
- Save changes and run the jflex.bat program in the cmd pmt and you should be good to go.
I hope this helps.
精彩评论