-
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
POL5 does not launch at all #1335
Comments
If you have multiple openjdk version installed, you will meet my issue -> #1304. Could you have only openjdk 8 installed and retest ? |
Should we maybe use javafx-maven-plugin? |
|
What I'm not sure about: we do not only have the JavaFX part but also the CLI. How do we want to handle this? I think the goal was to have the libraries and then the different UIs (currently JavaFX and CLI) using it. |
I guess this depends on if the plugin is able to create jar files. |
It's configurable. It creates a jar and a lib folder so we could do what you suggest. It can also create .deb and .rpm but I don't like that because it installs to |
I've managed to fix the problem. First I've used Synaptic to remove everything with "openjdk" in name then reset the computer. Installed openjdk 8 like on the build instruction page. It did not help so I've decided to start Synaptic again and upon searching "openjdk" I found two "default" JDK packages (default-jdk and default-jdk-headless) and removed them. Now the only jdk-related packages installed are openjdk-8-jdk, openjdk-8-jdk-headless, openkdl-8-jre and openjdk-8-jre-headless. The output of java -version is now:
|
@plata I'm quite open to any solution that works, the easier to implement the better The huge question we need to answer is, does OpenJDK 10 provide its own JavaFX version? |
@madoar based on package information here https://packages.ubuntu.com/bionic/default-jdk it seems POL does not work under Java 10. Replacing it with java 8 allowed it to run. I dont have an anserw for your question. |
@Zemogiter I didn't mean to criticize, I just wanted to completely understand what changes you've done on your local system. Have you tried other Java applications, that require JavaFX, with your Java 10 installation? |
@madoar I really don't know enough about Java deployment. From my understanding, however, the easiest solution is to provide the whole environment with the application (that's what the javafx-maven-plugin does). Alternatively/additionally, we could try to get snap/flatpak running. |
@madoar I understand. |
Just my two cents here (maintainer of the javafx-maven-plugin, got here by cross-reference from the linked issue): when running on Linux-systems, and when using OpenJDK, you ALWAYS have to install OpenJFX aswell! If I can assist here in any way, please let me know. |
@FibreFoX thanks for your input. |
After searching the net, I've stumbled over https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-IntegrationwithOpenJDK. I'm not really an expert about the build process of OpenJDK and OpenJFX, but as far as I understand this article, the installation (and/or build process) of OpenJFX in combination with OpenJDK 9+ seems to be different compared to OpenJDK 8. Maybe that's the problem? |
Linux Mint 19 has this same issue. Not surprising as that is built on Ubuntu 18.04 |
To repeat: when using OpenJDK itself, you need to install OpenJFX too. The JavaFX-part is separated from the core-Java part. As the JDK by Oracle does INCLUDE the JavaFX-parts, this seems to be a bug, but in fact this isn't. |
OpenJFX is installed on my machine.
|
When installing OpenJFX on Debian, it seems to only work for OpenJDK 8. The package puts some files aside of the OpenJDK8:
So when using other OpenJDKs, the installed OpenJFX-part is just not visible as they are not installed. Maybe this is why this does not work with OpenJDK > 8 |
We have progress!
the key part is changing the default java
Now I am getting So I guess another error to debug! LOL |
I have removed the ~/.Phoenicis directory and re run! We are looking good! |
@RattyDAVE can you provide a pull request with the instructions for Ubuntu 18.04 in the documentation? |
Will do once happy. I am still having issues but not had time to progress them. "Steam" window not displaying correctly issue. |
Ok. Thanks. |
I have update the https://github.com/PhoenicisOrg/phoenicis/blob/master/docs/_docs/Users/build.md with the instructions. |
@Zemogiter can you check if @RattyDAVE's description solves your issue? |
@RattyDAVE @plata When trying to purge wine from the OS I get (translated form polish):
But like I said just using java 8 instead of 10 solves the problem. |
So can we close this issue or do you think purging Wine should be removed from the description (@RattyDAVE said that it's really required)? |
The issue is solved - POL5 for some reason does not work with opendk 10. No idea where to start fixing that imcompability though. |
Expected behavior
The application's window should pop out.
Actual behavior
Aside from the log file, nothing happens
Steps to reproduce
Download the latest source via git command, compile it according to the instructions (https://phoenicisorg.github.io/phoenicis/build/), trying to run it with phoenicis-javafx command and got this:
Error: Could not find or load main class org.phoenicis.javafx.JavaFXApplication Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
System information
software version 1c79b1d and scripts repositories version 1806814
Using Ubuntu 18.04 x64
used Java version (output of java --version):
Link to the log file: https://pastebin.com/RvSWwMSG
The text was updated successfully, but these errors were encountered: