diy-layout-creator icon indicating copy to clipboard operation
diy-layout-creator copied to clipboard

diylc-4.20.0-setup.jar throws com.izforge.izpack.api.exception.IzPackException

Open lhanson opened this issue 3 years ago • 13 comments

I'm assuming that the "setup" JAR will run some kind of installer, but it doesn't seem to work:

$ java -jar diylc-4.20.0-setup.jar 
Command line arguments: 
Using laf org.pushingpixels.substance.api.skin.SubstanceMistSilverLookAndFeel
SEVERE: com.izforge.izpack.api.exception.IzPackException: java.lang.reflect.InvocationTargetException
$ java -version
openjdk version "18-ea" 2022-03-15
OpenJDK Runtime Environment (build 18-ea+15-Ubuntu-4)
OpenJDK 64-Bit Server VM (build 18-ea+15-Ubuntu-4, mixed mode, sharing)

I've also tried installing the Flatpak package on my distro (Pop!_OS), but found that lacking since it didn't have access to the existing DIYLC projects on my filesystem. I did get this working at least once in the past, but the installation procedure seems like it could use some polish and documentation (maybe even just an INSTALL.md file with instructions for non-JAR installation bundles?). Happy to help on that.

lhanson avatar Jan 13 '22 23:01 lhanson

yep, same for me

dlabaja avatar Jan 19 '22 19:01 dlabaja

which OS are you using?

On Wed, Jan 19, 2022 at 8:14 PM dlabaja @.***> wrote:

yep, same for me

— Reply to this email directly, view it on GitHub https://github.com/bancika/diy-layout-creator/issues/684#issuecomment-1016785902, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXONCMU3TUUWZ3EEJS4TMLUW4ES3ANCNFSM5L5GVARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Branislav Stojkovic www.diy-fever.com

bancika avatar Jan 20 '22 10:01 bancika

Ubuntu 20.04, java 17

dlabaja avatar Jan 20 '22 13:01 dlabaja

Well, found an flatpak alternative of the exact same version and it's working

dlabaja avatar Jan 20 '22 15:01 dlabaja

Interesting :)

On Thu, Jan 20, 2022 at 4:43 PM dlabaja @.***> wrote:

Well, found an flatpak alternative of the exact same version and it's working

— Reply to this email directly, view it on GitHub https://github.com/bancika/diy-layout-creator/issues/684#issuecomment-1017639335, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXONCNPI7GDQ4RXQFKHYXTUXAUSDANCNFSM5L5GVARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- Branislav Stojkovic www.diy-fever.com

bancika avatar Jan 20 '22 15:01 bancika

I'm on Pop!_OS 21.10.

lhanson avatar Jan 20 '22 17:01 lhanson

It probably has to do with java or flatpack for that exotic distribution. I suggest trying the universal package diylc-xxx.zip that can be unpacked and run using run.sh on any unix-like machine.

Cheers, Bane

On Thu, Jan 20, 2022 at 6:00 PM Lyle Hanson @.***> wrote:

I'm on Pop!_OS 21.10.

— Reply to this email directly, view it on GitHub https://github.com/bancika/diy-layout-creator/issues/684#issuecomment-1017717399, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXONCLHJOS2RG7CLW5W53LUXA5SFANCNFSM5L5GVARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

-- Branislav Stojkovic www.diy-fever.com

bancika avatar Jan 21 '22 08:01 bancika

I also had no success in trying to get the latest v4.20.0 (unpacked from the diylc-xxx.zip, as suggested) working under my Ubuntu 20.04 LTS, while using openjdk17. As a workaround, I have now patched my "run.sh" as follows

#!/bin/sh
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
$JAVA_HOME/bin/java -Xms512m -Xmx2048m -javaagent:lib/jar-loader.jar -Dorg.diylc.scriptRun=true -Dfile.encoding=UTF-8 -cp diylc.jar:lib org.diylc.DIYLCStarter

such that the openjdk11 is used instead (assuming it is installed in the system, of course). Works like a charm for me!

@bancika : I had also started to convert your whole dev stack (app-framework, http-proxy, swing-framework, jar-loader and diy components) to JDK17, using Maven for building. This includes bumping all the dependencies (like xstream) to their latest available versions and switching to log4j2, for example. This doesn't help running the v4.20.0 on my system so I won't follow this route any further, but if you should be interested in this development simply let me know. Maybe you can use the patches...

dirkbaechle avatar Feb 16 '22 16:02 dirkbaechle

Please try version 4.21.0 that I just published. It works on my machine with newer java.

On Wed, Feb 16, 2022 at 5:46 PM Dirk Baechle @.***> wrote:

I also had no success in trying to get the latest v4.20.0 (unpacked from the diylc-xxx.zip, as suggested) working under my Ubuntu 20.04 LTS, while using openjdk17. As a workaround, I have now patched my "run.sh" as follows

#!/bin/shexport JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64$JAVA_HOME/bin/java -Xms512m -Xmx2048m -javaagent:lib/jar-loader.jar -Dorg.diylc.scriptRun=true -Dfile.encoding=UTF-8 -cp diylc.jar:lib org.diylc.DIYLCStarter

such that the openjdk11 is used instead (assuming it is installed in the system, of course). Works like a charm for me!

@bancika https://github.com/bancika : I had also started to convert your whole dev stack (app-framework, http-proxy, swing-framework, jar-loader and diy components) to JDK17, using Maven for building. This includes bumping all the dependencies (like xstream) to their latest available versions and switching to log4j2, for example. This doesn't help running the v4.20.0 on my system so I won't follow this route any further, but if you should be interested in this development simply let me know. Maybe you can use the patches...

— Reply to this email directly, view it on GitHub https://github.com/bancika/diy-layout-creator/issues/684#issuecomment-1041866984, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXONCJJJYJZN3WMD6A2B6TU3PIH3ANCNFSM5L5GVARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

-- Branislav Stojkovic www.diy-fever.com

bancika avatar Feb 16 '22 22:02 bancika

@bancika I can confirm that the new v4.21.0 works fine with openjdk17 on my system when simply unZIPping and starting "run.sh" (haven't tried the setup.jar). Good job!

dirkbaechle avatar Feb 17 '22 15:02 dirkbaechle

Glad to hear it!

On Thu, Feb 17, 2022 at 4:13 PM Dirk Baechle @.***> wrote:

@bancika https://github.com/bancika I can confirm that the new v4.21.0 works fine with openjdk17 on my system when simply unzipping and starting "run.sh" (haven't tried the setup.jar). Good job!

— Reply to this email directly, view it on GitHub https://github.com/bancika/diy-layout-creator/issues/684#issuecomment-1043055482, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXONCLOTRGKH3OGY2F5LQTU3UGCPANCNFSM5L5GVARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

-- Branislav Stojkovic www.diy-fever.com

bancika avatar Feb 17 '22 15:02 bancika

Same result with diylc-4.21.0-setup.jar:

$ java -jar diylc-4.21.0-setup.jar 
Command line arguments: 
Using laf org.pushingpixels.substance.api.skin.SubstanceMistSilverLookAndFeel
SEVERE: com.izforge.izpack.api.exception.IzPackException: java.lang.reflect.InvocationTargetException
$ java -version
openjdk version "18-ea" 2022-03-15
OpenJDK Runtime Environment (build 18-ea+15-Ubuntu-4)
OpenJDK 64-Bit Server VM (build 18-ea+15-Ubuntu-4, mixed mode, sharing)

lhanson avatar Feb 17 '22 15:02 lhanson

I see, so it's probably izpack to blame. Unfortunately, there's no newer version that that, they stopped releasing a couple of years ago.

On Thu, Feb 17, 2022 at 4:59 PM Lyle Hanson @.***> wrote:

Same result with diylc-4.21.0-setup.jar:

$ java -jar diylc-4.21.0-setup.jar Command line arguments: Using laf org.pushingpixels.substance.api.skin.SubstanceMistSilverLookAndFeel SEVERE: com.izforge.izpack.api.exception.IzPackException: java.lang.reflect.InvocationTargetException $ java -version openjdk version "18-ea" 2022-03-15 OpenJDK Runtime Environment (build 18-ea+15-Ubuntu-4) OpenJDK 64-Bit Server VM (build 18-ea+15-Ubuntu-4, mixed mode, sharing)

— Reply to this email directly, view it on GitHub https://github.com/bancika/diy-layout-creator/issues/684#issuecomment-1043116375, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXONCIWPCE4NG46H3WEMADU3ULNFANCNFSM5L5GVARQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

-- Branislav Stojkovic www.diy-fever.com

bancika avatar Feb 17 '22 16:02 bancika