Search code examples
javabatch-filejavacjflexcup

Can't run jflex.bat in windows 8.1


I just made the installation of jflex and cup and I want to test if everything is ok. Here is what I write in the shell and the result I get. enter image description here

Here is the content of jflex.bat file: enter image description here Is there something I have done wrong? How to run for first time jflex? When I write java -version it displays the correct version of java in my pc. THe problem is with jflex.

Thanks!


Solution

  • Where you are executing %java_home%\bin, you should

    1) Enclose %java_home%\bin\java in "Double Quotes"
    2) Likewise, enclose %clpath% in "Double Quotes"

    That way, cmd is aware that the contents between the quotes is a single string.