Skip to content

Commit

Permalink
113: Update Valhalla demos
Browse files Browse the repository at this point in the history
Task-Url: #113
  • Loading branch information
keilw committed Oct 4, 2024
1 parent b04d0c3 commit 69c02bd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ The project currently contains the following modules:
- [Basic Console Demos](console/basic)
- [Java 12 Console Demos](console/java12)
- [Java 17 Console Demos](console/java17)
- [Valhalla Demos](console/valhalla) (**Early-Access Build**)
- [System Specific demos](console/systems)
- [Desktop Demos](desktop)
- [JavaFX Demos](desktop/javafx)
- [FXlib Demo Application](desktop/javafx/fxlib) (**Uses OpenJFX**)
- [Language Specific Demos](lang)
- [Kotlin Repl Demos](lang/repl)
- [Valhalla Demos](lang/valhalla) (**Early-Access Build**)
- [Device Specific demos](device)
- [Hello Edison for Intel Edison IoT Devices](device/edison/hello)
- [Domain Specific demos](domain)
Expand Down
8 changes: 4 additions & 4 deletions lang/valhalla/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ Project Valhalla Demos

This project explores, how JDK [Project Valhalla](https://jdk.java.net/valhalla/) may work with Unit API.

see [uom-demos#71](https://github.com/unitsofmeasurement/uom-demos/issues/71)
see [uom-demos#113](https://github.com/unitsofmeasurement/uom-demos/issues/113)

How to Run
-------------------------------------
To run this demo:
- First you need to download and install a Valhalla Early-Access Build from [Project Valhalla](https://jdk.java.net/valhalla/)
- Because of various Maven plugins not supporting Java 14 out of the box yet, please copy [settings-template.xml](settings-template.xml) to `settings.xml`.
- Change `<java.bin>Path-to-your/jdk-14/bin</java.bin>` in the new file to the `bin` folder of your Java 14 Early-Access installation.
- Because some Maven plugins don't support the Valhalla Early-Access Build out of the box yet, please copy [settings-template.xml](settings-template.xml) to `settings.xml`.
- Change `<java.bin>Path-to-your/valhalla-early-access/bin</java.bin>` in the new file to the `bin` folder of your Valhalla Early-Access installation.

After that you should be able to run the most common Maven goals like `package` or `test` from your IDE or the command line. Using Maven it should not matter which JDK you use to launch it, because the plugins will automatically use the required Early-Access JDK. If you want to run `ValhallaDemo` directly instead of the Maven goal `exec:exec` please add the JDK 14 Early-Access installation as JRE/SDK to your IDE, or adjust your `JAVA_HOME` in the command line.
After that you should be able to run the most common Maven goals like `package` or `test` from your IDE or the command line. Using Maven it should not matter which JDK you use to launch it, because the plugins will automatically use the required Early-Access JDK. If you want to run `ValhallaDemo` directly instead of the Maven goal `exec:java` please add the Valhalla Early-Access installation as JRE/SDK to your IDE, or adjust your `JAVA_HOME` in the command line.
2 changes: 1 addition & 1 deletion lang/valhalla/settings-template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<profile>
<id>set-java-path</id>
<properties>
<java.bin>Path-to-your/jdk-14/bin</java.bin>
<java.bin>Path-to-your/valhalla-early-access/bin</java.bin>
</properties>
</profile>
</profiles>
Expand Down

0 comments on commit 69c02bd

Please sign in to comment.