Won't run on Manjaro Linux

50 views
Skip to first unread message

justin White

unread,
Apr 13, 2023, 2:24:56 AM4/13/23
to OpenPnP
I just got my PnP built for the most part and I'm just getting to setting up the software. I tend to use Manjaro on everything so that's what I stuck on it. I downloaded OpenPnP 2.0 and tried to run ./OpenPnP. It complained about Java so I installed openjre17 (can't remember the exact package name) It no longer throws the Java error but it doesn't start openpnp either. Not getting any errors or anything in the terminal.

Ian Arkver

unread,
Apr 13, 2023, 5:43:54 PM4/13/23
to OpenPnP
Hi,

It seems the Install4J built version of OpenPnP does not include the necessary command line flags to allow use with later Java versions.

I downloaded it and got it to run on my Manjaro box using both OpenJDK 20 (Temurin) and regular OpenJDK 19. To do this you need to modify the OpenPnP script, uncommenting line 6 and changing it to this...

INSTALL4J_ADD_VM_PARAMS="--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.desktop/java.awt=ALL-UNNAMED --add-opens=java.desktop/java.awt.color=ALL-UNNAMED"

Regards,
Ian

Ian Arkver

unread,
Apr 13, 2023, 5:55:20 PM4/13/23
to OpenPnP
ps. The above hack should work for your openjre17 too.

This hack will get overwritten with every update. I've pinged Jason about this in
https://github.com/openpnp/openpnp/pull/1534
so hopefully it (or something similar) will get added to future builds at some point.

justin White

unread,
Apr 14, 2023, 2:54:25 AM4/14/23
to OpenPnP
It wasn't working with openjre17 so I checked the repo for openjdk19 (I know nothing about java) and it wasn't in the official repo. Being a new build I realized hadn't enabled AUR yet which I did to check on openjdk19. Then I realized someone actually built an AUR package for OpenPnP in March so I just built that instead. That runs fine and IIRC it doesn't depend on a newer java version anyway. Now onto the next issue

Jason von Nieda

unread,
Apr 14, 2023, 12:31:18 PM4/14/23
to OpenPnP
Are you running the test branch or the normal branch from https://openpnp.org/downloads/?

If the latter, the changes for newer JDKs has not been merged to that branch yet. Hopefully sorting most of that out today.

For the time being, you might have better luck with https://openpnp.org/test-downloads/

For background:
The JDK 17+ changes have been merged to test, but not to develop. There are a new set of changes that need to be merged to test (today) that will hopefully resolve the last few platform issues, and then we will eventually merge this all to develop.

Thanks,
Jason


On Thu, Apr 13, 2023, at 1:24 AM, justin White wrote:
I just got my PnP built for the most part and I'm just getting to setting up the software. I tend to use Manjaro on everything so that's what I stuck on it. I downloaded OpenPnP 2.0 and tried to run ./OpenPnP. It complained about Java so I installed openjre17 (can't remember the exact package name) It no longer throws the Java error but it doesn't start openpnp either. Not getting any errors or anything in the terminal.


--
You received this message because you are subscribed to the Google Groups "OpenPnP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpnp+u...@googlegroups.com.

Ian Arkver

unread,
Apr 14, 2023, 12:34:20 PM4/14/23
to OpenPnP
Hi Jason.

Dunno about the OP, but the one I tried was the regular develop one. I'm so used to building from source I never even thought to try the test one. Thanks for looking into it.

All the best,
Ian

justin White

unread,
Apr 14, 2023, 12:47:55 PM4/14/23
to ope...@googlegroups.com
This is the one I built from the AUR

There's also a git version:

Not really knowing the difference I usually just go for non-git versions. Is there some issue with the version I built?

You received this message because you are subscribed to a topic in the Google Groups "OpenPnP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpnp/RXTHbraZ53g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpnp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openpnp/18abe40b-15a7-40d1-99a3-9fb17d46b8b5%40app.fastmail.com.

Ian Arkver

unread,
Apr 14, 2023, 3:00:02 PM4/14/23
to OpenPnP
Gonçalo's PKGBUILD pulls the develop tarball...
source=("OpenPnP-${_pkgver}.tar.gz"::"https://openpnp.s3-us-west-2.amazonaws.com/develop/${_pkgver}/OpenPnP-unix-develop.tar.gz"

Similarly his git version either pulls the default branch (develop I guess) or has a fixed commit id (pkgver=r3506.693671c629). I'm not 100% sure how makepkg handles git sources.

Changes to OpenPnP happen first on the test branch, so if you want the bleeding edge you'll need a test build. The Java >= 17 support should make it from test into develop soon.

When using AUR it's always a good idea to look at the PKGBUILD and see exactly what you're getting. That's in general, not just OpenPnP.

For OpenPnP it's probably better to get the installers from the website rather than relying on Gonçalo to keep his AUR package up to date, though he's doing a good job on that so far I think.

CU,
Ian
Reply all
Reply to author
Forward
0 new messages