Skip to content
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

Show proper information message when OpenJFX is not installed #2642

Closed
tobiasdiez opened this issue Mar 13, 2017 · 10 comments
Closed

Show proper information message when OpenJFX is not installed #2642

tobiasdiez opened this issue Mar 13, 2017 · 10 comments
Milestone

Comments

@tobiasdiez
Copy link
Member

tobiasdiez commented Mar 13, 2017

As reported in #1711 (comment) without the OpenJFX packages on linux a cryptic message "Error: Could not find or load main class org.jabref.JabRefMain" is displayed.

It would be nice if instead a proper error message referring to apt-get install openjfx is shown. Not sure if this exception is "catchable". Or maybe we should indeed create a installer for linux that also installs openjfx in the process. Alternatively, we could create a self-contained application that also includes a private JRE, gradle plugin.

@Siedlerchr
Copy link
Member

Seems like you could simply check for a ClassNotFoundException:
http://stackoverflow.com/questions/12213929/how-to-detect-javafx-2-2-runtime-availability

@stefan-kolb stefan-kolb added this to the v4.0 milestone Mar 14, 2017
@stefan-kolb
Copy link
Member

We definitly need to fix this. If I just double click the Jar nothing happens and I don't even see an error message.

@Siedlerchr
Copy link
Member

I will try around with it. Maybe we can show a simple Swing Message/Alert when the class is not found.

@Siedlerchr Siedlerchr self-assigned this Mar 15, 2017
@Siedlerchr
Copy link
Member

I searched a bit further and there is no real solution to this.
If we get the 4.0.0 release in one of the debian packages, we can maybe mark the openjfx package as required. Otherwise we have to explicit inform the user before installation and should add a thing in the release notes. (We already documented this in the installation docs https://help.jabref.org/en/Installation )

@Siedlerchr Siedlerchr removed their assignment Mar 15, 2017
@tobiasdiez
Copy link
Member Author

Ok, if it is not possible then it is not possible...

@ilippert
Copy link
Contributor

I also encounter this on Fedora 25 (the beta version 4.0 stops with "Error: Could not find or load main class org.jabref.JabRefMain"). If I interpret the issue correctly, OpenJFX will not be installable easily soon on Fedora - and building it seems tricky (I did not yet succeed)

@Siedlerchr
Copy link
Member

You should then install the oracle jdk/jre, here seems to be an guide:
https://ask.fedoraproject.org/en/question/59412/sticky-how-do-i-install-oracle-java/

@koppor
Copy link
Member

koppor commented Apr 27, 2017 via email

@ambro2
Copy link
Contributor

ambro2 commented Apr 27, 2017

I recently had the same problem on Fedora 25. I had to install the Oracle Java JRE and configure the alternatives to set the Oracle version the default.
The Oracle JRE is available from here: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html as rpm file.
The links on the Help site point to the Java Development Kit (JDK) which is not required unless you are developping programs in Java.

@ilippert
Copy link
Contributor

Thanks @Siedlerchr @ambro2 @koppor. @Siedlerchr's link sufficed to get it work. Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants