#I can't compile JFlex

1 messages · Page 1 of 1 (latest)

jolly jay
#

Hey, I need to compile JFlex for a lexical analyzer project. I followed the instructions of the "readme.txt" where my instructor gave me the statement. I don't understand what's wrong. I have the JDK and I am confused as to why it's not compiling. I need to figure this so I can start my assignment. Thank you in advance

bleak pollenBOT
#

<@&987246399047479336> please have a look, thanks.

dull solstice
#

If i read the message correctly, java is not in the path.

jolly jay
#

i dont understand what that entirely means

bleak pollenBOT
#

Download latest Java from https://adoptium.net/, run the installer.

Open a CMD and type java -version and javac -version, if both show your new Java version, you have successfully installed Java! 🎉
https://i.ibb.co/X8Kms8q/CurMujt.png

In order to prevent issues with old installations you may want to remove them. Type where java and where javac. They should only show the new and no old entries:
https://i.ibb.co/fkKHv0b/x5k1GxG.png

If that is not the case, you may want to clean up. Therefore, type "environment variable" into the Windows search and follow the dialog. You will see two entries for a variable called Path, one for your user and one for the system. This variable tells Windows where to look for commands, like java and javac.
https://i.ibb.co/BwvMpM6/3bN9QE2.png

Edit both. Make sure that they only list the entry to your new Java installation and remove all the old entries you have seen with the where command before:
https://i.ibb.co/9GTnHsm/JAYog1U.png

Confirm and close all dialogs. Restart your CMD window and try where java and where javac again. It should only list the new installation now and nothing else.

Congratulation, your Java is now finally ready, happy coding 🎉

Eclipse Adoptium provides prebuilt OpenJDK binaries ...

surreal apex
#

Please follow the above steps.

jolly jay
#

java -version wont work
where java doesnt work

winter roost
jolly jay
#

I thought i was?

winter roost
#

It works as long as you use java in intellij

#

if you start to use terminal, it won't work

jolly jay
#

even when I use the terminal in intelliJ it wont work?

winter roost
#

if you use intellij, you will have to actually use intellij

#

rather than using it like a text editor

#

so stop using the terminal, and start using the buttons