Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Ah, yes. The only issue is that it's an executable that you run with
Code:
./filename
and not a regular .jar file
May I remind you that the name of this thread which you started is "Binary executable can't find Java runtime."?? Now you're telling me how to do it:-o? You mightn't need the .jar extension, but you might need my syntax. Why not try it? Why not run file on it?
Code:
bash-4.3$ file /usr/local/bin/GeoMapApp.jar
/usr/local/bin/GeoMapApp.jar: Zip archive data, at least v2.0 to extract
bash-4.3$ file /bin/bash
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, stripped
This is getting vaguely interesting. That looks like an elf executable, and yet it's bellyaching about java runtime, and as you say should work with ./filename. Yet it doesn't.
Ok, run
Code:
ldd ./filename
and see what it's linked against. That might be loads, but yopu only want the java stuff
Another possibility is that if you run 'filename' instead of './filename', it searches the $PATH variable without searching the current dir. If you type 'echo $PATH' you can see the search order in case you're running something you don't know about.
One last thing you could do is run 'java --version' and see that any java in the system is in the path, and try some other random jar file with 'java -jar random_jar_file'
and look out for some option to specify a java location? Is it missing a config file? Has it docs, that say anything about this?
On a separate and irrelevant note, I imagine /lib64 is the proper home of ld-linux-x86-64.so.2. It only matters when files won't run. ldconfig makes symlinks to it (ld-linux.so, ld-linux.so.2) and these may not be present in /lib64. You should check that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.