开发者

Trouble setting up jFlex

开发者 https://www.devze.com 2023-02-14 13:16 出处:网络
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.

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:

  1. Installed the extracted JFlex under my C:.
  2. Went into the bin folder (C:\jflex\bin) and edit the JFlex.bat file in my Notepad++
  3. There are two paths that need to be edited "JFLEX_HOME" and "JAVA_HOME".
  4. 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.
  5. 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"
  6. Save changes and run the jflex.bat program in the cmd pmt and you should be good to go.

I hope this helps.

0

精彩评论

暂无评论...
验证码 换一张
取 消