-
Notifications
You must be signed in to change notification settings - Fork 257
Description
When trying to follow the instructions on https://github.com/protegeproject/protege/wiki/Setup-in-Eclipse#prerequisites I have run into several issues. I am using the latest java 2025:
$ java -version
openjdk version "25" 2025-09-16 LTS
OpenJDK Runtime Environment Temurin-25+36 (build 25+36-LTS)
OpenJDK 64-Bit Server VM Temurin-25+36 (build 25+36-LTS, mixed mode, sharing)
and new install of maven
$ mvn -version
Apache Maven 3.9.11 (3e54c93a704957b63ee3494413a2b544fd3d825b)
Maven home: D:\java-apps\apache-maven-3.9.11
Java version: 25, vendor: Eclipse Adoptium, runtime: C:\Program Files\Eclipse Adoptium\jdk-25.0.0.36-hotspot
Default locale: en_US, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
When running "mvn clean package" I was receiving:
org.protege.osgi.framework.BundleInfo_TestCase.shouldThrowNullPointerExceptionIf_bundleFile_IsNull -- Time elapsed: 0.017 s <<< ERROR!
java.lang.reflect.InaccessibleObjectException: Unable to make private java.io.File(java.lang.String,java.io.File) accessible: module java.base does not "opens java.io" to unnamed module @3cda1055
In an attempt to fix this I updated the pom.xml (update attached) with --add-opens arguments (thanks google AI):
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
<configuration>
<argLine>
--add-opens java.base/java.io=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
and in the protege-editor-owl\pom.xml (attached) I added:
<groupId>com.google.auto.value</groupId>
<artifactId>auto-value-annotations</artifactId>
</dependency>
I am still getting errors that I cannot resolve dealing with AutoValues which show in the log file:
(see line 34363 for the start of the errors)
Any help would be appreciated as I would like to get protege running in eclipse and do some work.
Thanks,
Paul