This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 6 - Pages: 1 - Last Post: 10 Oct 22, 15:33 Last Post By: davidekholm
fodohgraf

Posts: 37
Registered: 18-Dec-2012
Error report when starting jAlbum 29 for the first time -jAlbum 28.1 works
Posted: 10 Oct 22, 11:03
 
  Click to reply to this thread Reply
Hello jAlbum Community,

I just tried to start the first time jAlbum 29. Unfortunately it does not start, instead I see this error report:

We're sorry. jAlbum is unable to start. Please pass this error report to support@jalbum.net
Thank you for your patience.

java.lang.NoSuchMethodError: java.awt.Toolkit.getMenuShortcutKeyMaskEx()I
at se.datadosen.component.SmartTextComponentSupport.<clinit>(SmartTextComponentSupport.java:52)
at se.datadosen.component.SmartTextComponent.makeSmart(SmartTextComponent.java:53)
at se.datadosen.component.JSmartTextField.<init>(JSmartTextField.java:23)
at se.datadosen.component.JBackgroundTextField.<init>(JBackgroundTextField.java:37)
at se.datadosen.component.JDatePatternComboBox$DatePatternComboBoxEditor$1.<init>(JDatePatternComboBox.java:33)
at se.datadosen.component.JDatePatternComboBox$DatePatternComboBoxEditor.createEditorComponent(JDatePatternComboBox.java:33)
at javax.swing.plaf.basic.BasicComboBoxEditor.<init>(BasicComboBoxEditor.java:48)
at se.datadosen.component.JDatePatternComboBox$DatePatternComboBoxEditor.<init>(JDatePatternComboBox.java:29)
at se.datadosen.component.JDatePatternComboBox$DatePatternComboBoxEditor.<init>(JDatePatternComboBox.java:29)
at se.datadosen.component.JDatePatternComboBox.<init>(JDatePatternComboBox.java:21)
at se.datadosen.component.JDatePatternComboBox.<init>(JDatePatternComboBox.java:16)
at se.datadosen.jalbum.JPreferencesWindow.<init>(JPreferencesWindow.java:156)
at se.datadosen.jalbum.JAlbumFrame.<init>(JAlbumFrame.java:177)
at se.datadosen.jalbum.JAlbum.<init>(JAlbum.java:137)
at se.datadosen.jalbum.JAlbum.main(JAlbum.java:388)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at se.datadosen.jalbum.Main.main(Main.java:45)

My configuration is, and jAlbum 28.1.5 works perfect with it:

Linux 5.14.21-150400.24.21-default #1 SMP PREEMPT_DYNAMIC Wed Sep 7 06:51:18 UTC 2022 (974d0aa) x86_64 x86_64 x86_64 GNU/Linux

java version "1.8.0_333"
Java(TM) SE Runtime Environment (build 1.8.0_333-b02)

I use the ZIP version for java enabled systems. On the download page I saw this information:

For versions without bundled Java, jAlbum needs at least Java 18.
Check your java version here. If you don't have Java installed, get it here. It's free.

When I click on the link "get it here" I can download JRE 1.8.0_341. The error report is the same as with JRE 1.8.0_333.

When I download Java 19, as stated in the release notes, I find only J*DK* 19. Trying this leads to

tools/jdk-19/bin/java -Xmx4000m -DuseDesktop=true -jar tools/jAlbum_29/JAlbum.jar
Missing JavaFX runtime. Needed arguments: --module-path=$JAVAFX_HOME/lib --add-modules javafx.graphics,javafx.swing,javafx.web

Any help is appreciated.

Carsten
fodohgraf

Posts: 37
Registered: 18-Dec-2012
Re: Error report when starting jAlbum 29 for the first time -jAlbum 28.1 works
Posted: 10 Oct 22, 11:13   in response to: fodohgraf in response to: fodohgraf
 
  Click to reply to this thread Reply
I needed to install in addition javafx. This was not necessary in all the years and jAlbum versions before. Here is the download link:

https://gluonhq.com/products/javafx/

In addition I needed to change my script to:

tools/jdk-19/bin/java -Xmx4000m -DuseDesktop=true --module-path=tools/javafx-sdk-19/lib --add-modules javafx.graphics,javafx.swing,javafx.web -jar tools/jAlbum_29/JAlbum.jar

jAlbum 29 works now. Is this the only solution or is there a more simple way?
davidekholm

Posts: 3,711
Registered: 18-Oct-2002
Re: Error report when starting jAlbum 29 for the first time -jAlbum 28.1 works
Posted: 10 Oct 22, 14:21   in response to: fodohgraf in response to: fodohgraf
Helpful
  Click to reply to this thread Reply
Hi. Unless you can use any of the .deb or .rpm archives, which includes an embedded JavaFX enabled Java, then it's unfortunately this much work to run jAlbum from the zipped version. Does your system not support either .deb or .rpm archives?

If a significant amount of Linux platforms lack the ability to unpack .deb and .rpm archives, then we will probably make available special versions of the Java runtime that's bundled with JavaFX or even pack jAlbum along with such a Java Runtime for the zipped version.

jAlbum 29 has moved from requiring Java 1.8 to at least v10 (v18 is fully safe). I will improve the error message for future releases.
fodohgraf

Posts: 37
Registered: 18-Dec-2012
Re: Error report when starting jAlbum 29 for the first time -jAlbum 28.1 works
Posted: 10 Oct 22, 14:48   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Hi David,
thank you very much for your answer.

My Linux (OpenSUSE Leap 15.4) supports .rpm archives. Since more then 10 years I use the zipped version as I can install multiple versions from jAlbum in parallel. Currently I have jAlbum versions 26.2, 28.1 and 29 installed. 26.2 will be deleted soon.

RPM in general has the possibility to relocate the software, which means to install it in another directory. Unfortunately the rpm package is marked as not relocatable:

carsten@***:~/Downloads> rpm -qpi jalbum-29.0-1.x86_64.rpm
Name : jalbum
Epoch : 0
Version : 29.0
Release : 1
Architecture: x86_64
Install Date: (not installed)
Group : Productivity/Publishing/HTML/Tools
Size : 322578364
License :
Signature : (none)
Source RPM : (none)
Build Date : Mi 05 Okt 2022 12:49:08 CEST
Build Host : Davids-MacBook-Pro-1884.local
Relocations : (not relocatable)
Packager : david
Vendor :
URL :
Summary :
Description :

Distribution:

I appreciate the future improvement of the error message.
May I suggest that you also update the download page as it still points to JRE downloads of Java 1.8 and put a link to the downloads of JDK and JavaFX there.

Carsten (Nordschleife)

davidekholm

Posts: 3,711
Registered: 18-Oct-2002
Re: Error report when starting jAlbum 29 for the first time -jAlbum 28.1 works
Posted: 10 Oct 22, 14:58   in response to: fodohgraf in response to: fodohgraf
 
  Click to reply to this thread Reply
We'll update our site and also make available either zipped versions of jAlbum that includes a Java Runtime or ready-package Java runtimes+JavaFX. What would you prefer?
fodohgraf

Posts: 37
Registered: 18-Dec-2012
Re: Error report when starting jAlbum 29 for the first time -jAlbum 28.1 works
Posted: 10 Oct 22, 15:04   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
I would prefer ready-packaged Java runtimes + JavaFX.
davidekholm

Posts: 3,711
Registered: 18-Oct-2002
Re: Error report when starting jAlbum 29 for the first time -jAlbum 28.1 works
Posted: 10 Oct 22, 15:33   in response to: fodohgraf in response to: fodohgraf
 
  Click to reply to this thread Reply
Nordschleife wrote:
I would prefer ready-packaged Java runtimes + JavaFX.

Here are ready-packaged Java runtimes for running jAlbum that includes JavaFX (and excludes stuff jAlbum doesn't use):

https://jalbum.net/download/jre-19-x64.zip (Intel)
https://jalbum.net/download/jre-19-arm64.zip (Aarch64)
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums