Skip to content

Commit

Permalink
The file tools.jar is no more on JDK since version 9, a file that
Browse files Browse the repository at this point in the history
differentiate between a JDK or JRE install would be `java.base.jmod`.

Freeform can run on JDK 8, add condition to set `nbjdk.home` to JDK 8

Co-authored-by: Matthias Bläsing <[email protected]>
  • Loading branch information
pepness and matthiasblaesing committed Feb 9, 2024
1 parent 2c6e3a7 commit 8b6945a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@
<condition property="nbjdk.home" value="${java.home.parent}">
<available file="${java.home.parent}/lib/tools.jar" type="file"/>
</condition>
<condition property="nbjdk.home" value="${java.home}">
<available file="${java.home}/jmods/java.base.jmod" type="file"/>
</condition>
<condition property="nbjdk.home" value="${java.home}">
<available file="${java.home}/lib/tools.jar" type="file"/>
</condition>
Expand Down
4 changes: 2 additions & 2 deletions nbbuild/jdk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@
<!-- Define fallback values of some things. -->
<property name="java.home.parent" location="${java.home}/.."/>
<condition property="nbjdk.home" value="${java.home.parent}">
<available file="${java.home.parent}/lib/tools.jar" type="file"/>
<available file="${java.home.parent}/jmods/java.base.jmod" type="file"/>
</condition>
<condition property="nbjdk.home" value="${java.home}">
<available file="${java.home}/lib/tools.jar" type="file"/>
<available file="${java.home}/jmods/java.base.jmod" type="file"/>
</condition>

<!-- Mac OS X -->
Expand Down
4 changes: 2 additions & 2 deletions nbbuild/nbproject/jdk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@

<property name="java.home.parent" location="${java.home}/.."/>
<condition property="nbjdk.home" value="${java.home.parent}">
<available file="${java.home.parent}/lib/tools.jar" type="file"/>
<available file="${java.home.parent}/jmods/java.base.jmod" type="file"/>
</condition>
<condition property="nbjdk.home" value="${java.home}">
<available file="${java.home}/lib/tools.jar" type="file"/>
<available file="${java.home}/jmods/java.base.jmod" type="file"/>
</condition>

<condition property="nbjdk.home" value="/Library/Java/Home">
Expand Down

0 comments on commit 8b6945a

Please sign in to comment.