DownloadClick the following link to download the latest release of j-- up-to-date with bug fixes: If you find any issues with the compiler, please report it here: https://github.com/swamiiyer/j--/issues Setting Up j-- in IntelliJOn Ubuntu Linux1. Launch a terminal and run the following commands. # Change to your home folder. $ cd $HOME # Install OpenJDK, ant, and spim. $ sudo apt-get install openjdk-11-jdk ant spim # Create workspace folder. $ mkdir workspace # Download j--.zip. $ wget https://www.cs.umb.edu/j--/j--.zip # Extract j--.zip under ~/workspace. $ unzip j--.zip -d workspace # Remove j--.zip. $ rm j--.zip # Set the j environment variable. $ echo "export j=$HOME/workspace" >> $HOME/.bashrc 2. Download and install IntelliJ (Community Edition). 3. Open $j/j-- in IntelliJ. On Mac OS X1. Launch a terminal and run the following commands. # Change to your home folder. $ cd $HOME # Install brew. $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # Install OpenJDK. $ brew install openjdk@11 # Install ant. $ brew install ant # Install spim. $ brew install spim # Create workspace folder. $ mkdir workspace # Download j--.zip. $ wget https://www.cs.umb.edu/j--/j--.zip # Extract j--.zip under ~/workspace. $ unzip j--.zip -d workspace # Remove j--.zip. $ rm j--.zip # Set the j environment variable. $ echo "export j=$HOME/workspace" >> $HOME/.bash_profile # Change your shell to bash. $ chsh -s /bin/bash 2. Download and install IntelliJ (Community Edition). 3. Open $j/j-- in IntelliJ. On Windows1. Launch a powershell terminal and run the following commands. # Change to your home folder. $ cd $HOME # Create workspace folder. $ mkdir workspace # Dowload j--.zip. $ wget -O j--.zip https://www.cs.umb.edu/j--/j--.zip # Extract j--.zip under ~/workspace. $ Expand-Archive -LiteralPath j--.zip -DestinationPath workspace # Remove j--.zip. $ rm j--.zip # Set the j environment variable. $ setx j "$env:PATH;$HOME\workspace" 2. Download and unzip OpenJDK for Windows under some folder XYZ. # Set the JAVA_HOME environment variable. $ setx JAVA_HOME "$env:PATH;XYZ\bin" # Update the PATH environment variable. $ setx PATH "$env:PATH;XYZ\bin" 3. Download and unzip Ant under some folder XYZ. # Update environment variable PATH to point to the XYZ\bin folder. $ setx PATH "$env:PATH;XYZ\bin" 4. Download and install SPIM. 5. Download and install IntelliJ (Community Edition). Launch IntelliJ, go to Configure → Settings → Tools → Terminal and set Shell path to powershell. 3. Open $j/j-- in IntelliJ. LicenseEach software made available here is free; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. The software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. |