-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ols incompatible with newer java versions? #250
Comments
|
I've committed a couple of changes that allows you to at least build and run the OLS client on Java 11 and newer (tested on Java 11 and 14)... @JanZerebecki and/or @jmoellers : could you verify this is working for you? If so I can cut a new release... |
Thanks for the fixes @jawi - I was able to complile and now run. Also a general thankyou for keeping the client maintained; a lot of the SUMP legacy is now abandoned or 404..., and I appreciate being able to continue to use my hardware! One outstanding issue, which you may be aware of:
On running (Windows):
I can see this is ultimately a felix framework issue, but dont know enough to sniff out whether OLS is depending on an obsolete version, which is my hunch... as felix seems to be on version 7. |
I apologize for not having responded. I guess I thought "Hm, I'll do it tomorrow" and then there was too much work otherwise. |
Just a FYI on my experience compiling the latest version ... I got a good compile and running executable, but I had to go through some odd steps to get it. 20210429: on Ubuntu 20.04 using system tools
I had to run
Rerunning the build 0 or more times resulted in a good finish. Note that if I used Thanks for the great tool. |
Hello, would you please be kind enough to provide a release that is compatible with the latest JAVA ? cheers, |
For those who it may be useful, here is a build of the latest commit in master (13b0c80); http://dump.rdbnn.nl/ols/ols-0.9.8-13b0c80-full.zip |
Thanks @Maff- I tried to build it myself but it fails
Unfortunately I know nothing about Java |
Due to more restrictive module loading the project can be made compatible with the latest Java version by adding the following lines to ols\pom.xml at the surefire plugin at line 175. <argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.desktop/java.awt=ALL-UNNAMED
</argLine> The final block will look like: <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.21.0</version>
<inherited>true</inherited>
<configuration>
<forkMode>once</forkMode>
<argLine>
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.desktop/java.awt=ALL-UNNAMED
</argLine>
</configuration>
</plugin> I tried to push a branch with this change but I don't have permission. An additional line must be added to the run.bat for runtime so the combobox dropdown works: |
@gdi1942 it's normal that you can't push a branch to a repo that doesn't belong to you or you are not a collaborator |
This fix allows the program to run on later versions of Java where the module loader is more restrictive. See https://stackoverflow.com/questions/74006627/module-java-base-does-not-opens-java-lang-java-17-0-4-1 for the rationale.
Ah good idea. |
Hi,
I tried to run ols 9.7.2 on OpenSUSE Leap 15.2 and Kubuntu 20.04 but it refused to start complaining about "Unresolved constraints". I had to downgrade java to openjdk version 1.8.0 on both.
The text was updated successfully, but these errors were encountered: