User Tools

Site Tools


compilers:install_windows
Return to Home page

Install Jflex, CUP and Java in Windows

Guide on how to install Java, Jflex and CUP in the Windows operating system.

Java

The Oracle JDK can be downloaded at the following address https://www.oracle.com/java/technologies/javase-jdk14-downloads.html, choosing the one marked as Windows x64 Installer (at the moment of this guide the recommended version to download is jdk-14_windows-x64_bin.exe).

Jflex & CUP

The setup package requires that the JDK is installed on the machine, so make sure you did not skip the previous step or you already had a working Java installation. Download the setup file at the following address FLC Tools installer and run it with administrator privileges.
FLC Tools installs both Jflex and CUP and properly configures the system environment variables. To check if everything works, please refer to the next paragraph.

Check installation

To verify that the programs have been installed correctly, open a command prompt (cmd) and enter:

jflex

A graphical window should be opened.

For CUP you can type into the command prompt:

java java_cup.Main

and if it is correctly installed you see nothing in the terminal. To stop it you can press CTRL-c.

The installed CUP version contains also the functionality to draw into the screen the parse tree (this version was made especially for this course). To check this part you can type into the command prompt:

java java_cup.MainDrawTree

and if it is correctly installed you see nothing in the terminal. To stop it you can press CTRL-c.


If you found any error, or if you want to partecipate to the editing of this wiki, please contact: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/compilers/install_windows
/web/htdocs/www.skenz.it/home/data/pages/compilers/install_windows.txt · Last modified: 2020/03/18 11:35 by emanuele

Privacy Policy