Skip to content

Commit adb2bb3

Browse files
committed
preparing for jdk25
1 parent a5ec298 commit adb2bb3

13 files changed

Lines changed: 26 additions & 28 deletions

File tree

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ sudo: required
22
language: java
33
dist: xenial
44
jdk:
5-
- openjdk21
5+
- openjdk25
66

77
services:
88
- xvfb

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ https://control-system-studio.readthedocs.io
88

99

1010
## Requirements
11-
- [JDK21 or later, suggested is OpenJDK](https://adoptium.net/en-GB/temurin/releases?version=21).
11+
- [JDK 25 or later, suggested is OpenJDK](https://adoptium.net/en-GB/temurin/releases?version=25).
1212
- [maven 3.x](https://maven.apache.org/) or [ant](http://ant.apache.org/)
1313

1414

@@ -27,7 +27,7 @@ mvn clean verify -f dependencies/pom.xml
2727
Define the JAVA_HOME environment variable to point to your Java installation directory.
2828
Mac OS users should use something like:
2929
```
30-
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-21.0.11+10/Contents/Home
30+
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-25/Contents/Home
3131
```
3232
Verify through:
3333
```
@@ -73,14 +73,14 @@ Download "Eclipse for Java Developers" from https://www.eclipse.org/downloads/pa
7373

7474
Start Eclipse like this:
7575

76-
export JAVA_HOME=/path/to/your/jdk-21-or-later
76+
export JAVA_HOME=/path/to/your/jdk-25-or-later
7777
export PATH="$JAVA_HOME/bin:$PATH"
7878
eclipse/eclipse -consoleLog
7979

8080
Check Eclipse Preferences:
8181

82-
* Java, Installed JREs: JDK 21-or-later should be the default
83-
* Java, Compiler: JDK Compliance should be "21" or higher
82+
* Java, Installed JREs: JDK 25-or-later should be the default
83+
* Java, Compiler: JDK Compliance should be "25" or higher
8484

8585

8686
### Use plain Java configuration
@@ -112,7 +112,7 @@ In Help/Eclipse Marketplace, search for Maven Integration for Eclipse Luna or ne
112112
Use File/Import/Maven/Existing Maven Projects to import the phoebus source code.
113113

114114
There can be a compiler error because the "JRE System Library" in the Package Explorer shows "[J2SE-1.4]".
115-
Right click on the affected projects (greeting-app, probe), Build Path, Configure Build Path, Libraries, Edit the JRE System Library to use the Workspace default (jdk-21).
115+
Right click on the affected projects (greeting-app, probe), Build Path, Configure Build Path, Libraries, Edit the JRE System Library to use the Workspace default (jdk-25).
116116
Restart Eclipse IDE.
117117

118118
Can now start product/src/main/java/org.phoebus.product/Launcher.java.
@@ -126,14 +126,14 @@ To import the project:
126126
* Select the Phoebus directory
127127
* Import project from external model: Maven
128128
* Accept the default options and click Next twice
129-
* Ensure that the JDK is version 21 or above
129+
* Ensure that the JDK is version 25 or above
130130
* Change the project name to Phoebus and click finish
131131

132132
To run the Phoebus application:
133133

134134
* Run | Edit Configurations...
135135
* Select + | Application
136-
* Module: Your JRE 21
136+
* Module: Your JRE 25
137137
* Classpath `-cp`: select `product` from drop-down
138138
* Main class: `org.phoebus.product.Launcher`
139139
* Set the name to Phoebus
@@ -145,7 +145,7 @@ To run the Phoebus application:
145145

146146
First download [NetBeans 9](https://netbeans.apache.org/download/nb90/nb90.html),
147147
then the target platform as described above. After running NetBeans, select
148-
**Tools****Java Platforms** and make sure that a Java 9 or 10 platform is set as
148+
**Tools****Java Platforms** and make sure that a Java 25 platform is set as
149149
the default one.
150150

151151
To open the Maven project Select the **File****Open Project…** and select the

app/queue-server/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A JavaFX-based client for the [Bluesky QueueServer](https://blueskyproject.io/bl
3030

3131
### Prerequisites
3232

33-
- **Java 21** or later
33+
- **Java 25** or later
3434
- **Maven** (for building from source)
3535
- **Bluesky Queue Server** running and accessible
3636

phoebus-product/README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The following use cases have been verified:
3333

3434
#### Prerequisites
3535

36-
* A working Phoebus build environment, i.e. JDK 11 and Maven.
36+
* A working Phoebus build environment, i.e. JDK 25 and Maven.
3737
* `jpackage` must be run on the same OS as the target OS, i.e. cross builds are not supported.
3838
* JDK 14 or newer.
3939
* On Windows you also need to install the "WiX" tools, available here: https://wixtoolset.org/.
@@ -51,7 +51,7 @@ The following use cases have been verified:
5151
5. Determine a version for your application, in the following referred to as `app_version`.
5252
6. For Window installers determine a menu group in which the application will be placed. If the group does not
5353
exist, it will be created.
54-
7. Identify the path to the Java 11 SDK. In the following referred to as `<jdk_root>`. See below for additional
54+
7. Identify the path to the Java 25 SDK. In the following referred to as `<jdk_root>`. See below for additional
5555
information on the selecttion of target Java runtime.
5656

5757
##### `jpackage` build step 1
@@ -91,10 +91,9 @@ and MacOS at the European Spallation Source.
9191

9292
### Selection of target Java runtime
9393
During build (step 1) a target Java runtime is specified. If this option (`--runtime-image`) is omitted, `jpackage` will
94-
bundle the Java runtime containing the `jpackage` tool, i.e. Java 14+. Tests on Windows shows that the
95-
target runtime selection may impact the end result, i.e. the Phoebus application installed from the msi file.
96-
For instance, while the Java runtime Adopt JDK 11.0.9 can be bundled into a working installation,
97-
Adopt JDK 11.0.12 will not work when Phoebus is launched. On MacOS Adopt JDK 11.0.12 works fine.
94+
bundle the Java runtime containing the `jpackage` tool, i.e. Java 14+. Tests on Windows show that the
95+
target runtime selection may impact the end result, i.e. the Phoebus application installed from the msi file.
96+
When preparing installers, validate the exact JDK 25 runtime you plan to bundle on each supported OS.
9897

9998
### Application signing
10099
Starting from MacOS 13.2 (possibly from 13.0), installer packages must be signed for a hassle-free installation process.
@@ -112,4 +111,3 @@ Developer Program may request/create such certificates.
112111

113112
`
114113

115-

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@
8989
<derby.version>10.16.1.1</derby.version>
9090
<jython.version>2.7.4b1</jython.version>
9191
<jgit.version>6.9.0.202403050737-r</jgit.version>
92-
<maven.compiler.source>21</maven.compiler.source>
93-
<maven.compiler.target>21</maven.compiler.target>
92+
<maven.compiler.source>25</maven.compiler.source>
93+
<maven.compiler.target>25</maven.compiler.target>
9494
<activemq.client.version>5.18.4</activemq.client.version>
9595
<commons.compress.version>1.26.1</commons.compress.version>
9696
<spring.framework.version>5.3.22</spring.framework.version>

services/alarm-config-logger/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<version>6.0.0-SNAPSHOT</version>
77
</parent>
88
<properties>
9-
<java.version>21</java.version>
9+
<java.version>25</java.version>
1010
</properties>
1111
<artifactId>service-alarm-config-logger</artifactId>
1212
<name>${project.groupId}:${project.artifactId}</name>

services/alarm-logger/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:21-jre
1+
FROM eclipse-temurin:25-jre
22

33
# deployment unit
44
COPY target/service-alarm-logger-*.jar /alarmlogger/service-alarm-logger-*.jar

services/alarm-logger/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<version>6.0.0-SNAPSHOT</version>
77
</parent>
88
<properties>
9-
<java.version>21</java.version>
9+
<java.version>25</java.version>
1010
<elasticsearch.version>8.2.0</elasticsearch.version>
1111
</properties>
1212
<artifactId>service-alarm-logger</artifactId>

services/alarm-server/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:21-jre
1+
FROM eclipse-temurin:25-jre
22

33
# deployment unit
44
COPY target/service-alarm-server-*.jar /alarmserver/service-alarm-server-*.jar

services/save-and-restore/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:21-jre
1+
FROM eclipse-temurin:25-jre
22

33
# deployment unit
44
COPY target/service-save-and-restore-*.jar /saveandrestore/service-save-and-restore-*.jar

0 commit comments

Comments
 (0)