This question is answered.


Permlink Replies: 3 - Pages: 1 - Last Post: 21 Jul 21, 19:51 Last Post By: davidekholm Threads: [ Previous | Next ]
chesuidayeur

Posts: 2
Registered: 21-Jul-2021
Unable to launch jalbum - problem with images folder
Posted: 21 Jul 21, 16:55
 
  Click to reply to this thread Reply
Hello,

I tried to use the zip version of jalbum, unsuccessfully.
I modified the .sh launcher as such :
/usr/lib/jvm/java-11-openjdk/bin/java -Xmx1200M -jar $BASEDIR/JAlbum.jar --module-path=/usr/lib/jvm/java-11-openjfx --add-modules javafx.graphics,javafx.swing,javafx.web


And got this error message :
/home/[USER]/build/jalbum/jAlbum
jAlbum v24.1a démarré en mode console
se.datadosen.jalbum.NotADirectoryException: Le dossier images choisi n'est pas un dossier: 
        at se.datadosen.jalbum.AlbumBean.prepareMakeAlbum(AlbumBean.java:3081)
        at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:2938)
        at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:2902)
        at se.datadosen.jalbum.JAlbumConsole.<init>(JAlbumConsole.java:96)
        at se.datadosen.jalbum.JAlbum.main(JAlbum.java:324)
        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)


The variable containing the "images" dir seems empty. I don't know if it's a bug or if I should set it manually.
davidekholm

Posts: 3,839
Registered: 18-Oct-2002
Re: Unable to launch jalbum - problem with images folder
Posted: 21 Jul 21, 18:27   in response to: chesuidayeur in response to: chesuidayeur
Correct
  Click to reply to this thread Reply
Put the -jar argument last. That should do it. The --module-path and --add-modules arguments needs to be passed to the underlying Java engine and not to the jAlbum app itself. For that reason they need to be specified BEFORE the -jar argument.
chesuidayeur

Posts: 2
Registered: 21-Jul-2021
Re: Unable to launch jalbum - problem with images folder
Posted: 21 Jul 21, 18:39   in response to: chesuidayeur in response to: chesuidayeur
 
  Click to reply to this thread Reply
Thanks a lot for your quick answer : it solved my problem.
davidekholm

Posts: 3,839
Registered: 18-Oct-2002
Re: Unable to launch jalbum - problem with images folder
Posted: 21 Jul 21, 19:51   in response to: chesuidayeur in response to: chesuidayeur
 
  Click to reply to this thread Reply
You're welcome
Legend
Forum admins
Helpful Answer
Correct Answer

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