Skip to content

Commit

Permalink
jdk 11
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj committed Nov 3, 2018
1 parent c89173a commit 332f2ec
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 11 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For more information please use the bundled help from the board editor.

## Here are some instructions how to run the Freerouting project in the NetBeans IDE

1. Download and install [Oracle JDK 9](http://www.oracle.com/technetwork/java/javase/downloads/index.html), next download and install [Development version of NetBeans IDE](http://bits.netbeans.org/download/trunk/nightly/latest/)
1. Download and install [Oracle JDK 11](http://www.oracle.com/technetwork/java/javase/downloads/index.html), next download and install [Development version of NetBeans IDE](http://bits.netbeans.org/download/trunk/nightly/latest/)
2. Start the NetBeans IDE and select File | Open Project in the pull down menu and select freeroute project.
3. Build the project. The router should run now.

Expand All @@ -40,15 +40,15 @@ Install maven
sudo dnf install maven
```

Install [Oracle JDK & JRE 9](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
Install [Oracle JDK & JRE 11](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
```bash
tar xzvf jdk-9.0.1_linux-x64_bin.tar.gz -C /usr/java
tar xzvf jdk-11_linux-x64_bin.tar.gz -C /usr/java
su -c chown -R root:root /usr/java
su -c chown -R +x /usr/java/bin
su -c pdate-alternatives --install /usr/bin/java java /usr/java/jdk1.9*/bin/java 1065
su -c update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.9*/bin/javac 1065
su -c update-alternatives --install /usr/bin/jar jar /usr/java/jdk1.9*/bin/jar 1065
su -c update-alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.9*/bin/javaws 1065
su -c pdate-alternatives --install /usr/bin/java java /usr/java/jdk-11*/bin/java 1065
su -c update-alternatives --install /usr/bin/javac javac /usr/java/jdk-11*/bin/javac 1065
su -c update-alternatives --install /usr/bin/jar jar /usr/java/jdk-11*/bin/jar 1065
su -c update-alternatives --install /usr/bin/javaws javaws /usr/java/jdk-11*/bin/javaws 1065
su -c update-alternatives --config java
```

Expand All @@ -75,7 +75,7 @@ java -jar freeroute-[version]-jar-with-dependencies.jar
```

### OS X
Download and install [Oracle JDK & JRE 9](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
Download and install [Oracle JDK & JRE 11](http://www.oracle.com/technetwork/java/javase/downloads/index.html)

Install Apache Maven. https://maven.apache.org/

Expand Down
21 changes: 18 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mainClass>net.freerouting.freeroute.FreeRouting</mainClass>
<maven.compiler.source>9</maven.compiler.source>
<maven.compiler.target>9</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>

<build>
Expand Down Expand Up @@ -113,7 +113,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<release>9</release>
<release>11</release>
<compilerArgs>
<arg>-verbose</arg>
<arg>-Xlint:all,-options,-path</arg>
Expand Down Expand Up @@ -298,6 +298,21 @@
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>11</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>11</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>11</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
Expand Down

0 comments on commit 332f2ec

Please sign in to comment.