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

Linux: UMS does not start with the included Java installation #1835

Closed
M-itch opened this issue Sep 8, 2019 · 7 comments

Comments

@M-itch
Copy link

commented Sep 8, 2019

I made a few changes to properly detect and run with the included JRE.

Installed version: 9.0.0
OS: Arch Linux

Fix "cannot execute: Permission denied" error

chmod +x linux/jre-x64/bin/java

UMS.sh

if [ "$(uname -m | grep '64')" != "" ]; then
    if [ -f linux/jre-x64/bin/java ]; then 
        JAVA="linux/jre-x64/bin/java"
    fi
else
    if [ -f linux/jre-x86/bin/java ]; then 
        JAVA="linux/jre-x86/bin/java"
    fi
fi
@SubJunk

This comment has been minimized.

Copy link
Member

commented Sep 9, 2019

@M-itch thanks a lot, I have applied the change to UMS.sh now. I wonder how we can automate that chmod part.

@M-itch

This comment has been minimized.

Copy link
Author

commented Sep 9, 2019

chmod won't change the permission when I run it without sudo (depending on the install location).
So we can't add it the UMS.sh after detecting the included JRE.
The packaged release does have the execute permission for the included linux binaries.

I just found out that we can check if the included java binary is executable.
At least then UMS will start with the installed Java without any errors.

if [ -x linux/jre-x86/bin/java ]; then
@SubJunk

This comment has been minimized.

Copy link
Member

commented Sep 10, 2019

@M-itch I made a PR to hopefully fix this, are you able to test it? If you need me to build and upload it let me know #1837

@M-itch

This comment has been minimized.

Copy link
Author

commented Sep 11, 2019

Yes, please upload a build for me. I tried to create my own build, but I get a maven plugin (API incompatibility) error while installing the external libraries .

@SubJunk

This comment has been minimized.

Copy link
Member

commented Sep 12, 2019

@M-itch

This comment has been minimized.

Copy link
Author

commented Sep 12, 2019

Yes, it works out of the box.

@M-itch M-itch closed this Sep 12, 2019

@SubJunk

This comment has been minimized.

Copy link
Member

commented Sep 15, 2019

Thanks for confirming. We will release this soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.