Skip to content
/ tp-antlr Public
forked from Dashstrom/tp-antlr

Basic project for UV AI21 of UTC using Maven, AntLR and JavaFX (with Visual Studio Code).

Notifications You must be signed in to change notification settings

mrrfr/tp-antlr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TP AntLR

Basic project for UV AI21 of UTC using Maven, AntLR and JavaFX (with Visual Studio Code).

Be careful: 1 clone 📦 = 1 star ✨

Download project

With git
git clone https://github.com/Dashstrom/tp-antlr.git
cd tp-antlr
Without git

Download the ZIP

Tutorials

Windows

Windows: Install chocolatey and Java

⚠️ Open an admin shell with windows + R -> "powershell" -> ctrl + shift + enter.

Check if java is not already installed wih:

java -version

This will display your java version, which must be at least 11. If this is not the case, uninstall java before continuing.

Output example of a java version lower than 11:

java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.291-b10, mixed mode)

Output example if java is not installed:

'java' is not recognized as an internal or external command, operable program or batch file.

After checking that your computer does not have java enter:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
choco install openjdk

Windows: Retrieve sources for java-docs

⚠️ Re-open a shell in your project folder.

./mvnw.cmd dependency:sources

Windows: Compile and run

./mvnw.cmd clean compile exec:java

Windows: Build standalone JAR and EXE

./mvnw.cmd clean package

The following warning can occur. You can ignore it.

[WARNING] Failed to build parent project for org.openjfx:javafx-...:jar:17
Ubuntu

Ubuntu: Make Maven Wrapper executable

⚠️ Open a shell in your project folder.

chmod +x mvnw

Ubuntu: Update and Install Java

sudo apt -y update && sudo apt -y install default-jdk

Ubuntu: Retrieve sources for java-docs

./mvnw dependency:sources

Ubuntu: Compile and run

./mvnw clean compile exec:java

Ubuntu: Build standalone JAR and EXE

./mvnw clean package

The following warning can occur. You can ignore it.

[WARNING] Failed to build parent project for org.openjfx:javafx-...:jar:17
Mac

Mac: Make Maven Wrapper executable

⚠️ Open a shell in your project folder.

chmod +x mvnw

Mac: Install Homebrew and Java

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "export PATH=/opt/homebrew/bin:$PATH" >> ~/.bash_profile && source ~/.bash_profile
brew install java

Mac: Retrieve sources for java-docs

./mvnw dependency:sources

Mac: Compile and run

./mvnw clean compile exec:java

Mac: Build standalone JAR and EXE

./mvnw clean package

The following warning can occur. You can ignore it.

[WARNING] Failed to build parent project for org.openjfx:javafx-...:jar:17

Run standalone JAR

java -jar target/ai21-antlr-1.0-jar-with-dependencies.jar

The following warning can occur, and you can ignore it see stackoverflow issue.

... com.sun.javafx.application.PlatformImpl startup
AVERTISSEMENT: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @...'

GUI

Development

Regenerate Maven wrapper (only if you know what you are doing).

mvn wrapper:wrapper -Dtype=script

About

Basic project for UV AI21 of UTC using Maven, AntLR and JavaFX (with Visual Studio Code).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 93.7%
  • CSS 4.1%
  • ANTLR 2.2%