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

Unimozer can't find /lib/tools.jar - GNU/Linux Ubuntu #15

Open
UnKabaraQuiDev opened this issue Dec 15, 2023 · 0 comments
Open

Unimozer can't find /lib/tools.jar - GNU/Linux Ubuntu #15

UnKabaraQuiDev opened this issue Dec 15, 2023 · 0 comments

Comments

@UnKabaraQuiDev
Copy link

I downloaded the latest build for linux from: https://unimozer.fisch.lu/index.php?include=downloads

Issue:

However when i run ./unimozer.sh, i get:

./unimozer.sh: 16: locate: not found

Solution:

#!/bin/sh
# Version 1.0.1

# Todo:
# The wrapper should
# 1. use an absolute path to Unimozer.jar
# 2. locate JDK: 
#   * first check if $JAVA_HOME is set, if not
#   * try to follow symbol links starting from /usr/bin/javac to find the default JDK
#   * try some usual places to find a suitable JDK
#   * try 'locate' to find lib/tools.jar
#   * if all fails promt a message 
#     "Can not find Java Development Kit JDK. Please 
#        install JDK SE version >= 1.6 and/or set $JAVA_HOME to it" 

java -cp "Unimozer.jar:./lib/tools.jar" lu.fisch.unimozer.Main "$@"

Directly point to ./lib/tools.jar as the file is initially in the directory lib next to the shell file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant