reportToolJar runs fine when being run from Terminal using the very same command that is executed in the code above. Browse other questions tagged 14.04 or ask your own question. up vote 36 down vote favorite 4 When I login using SSH, all I can see is this... -bash: /usr/bin/id: cannot execute binary file -bash: [: : integer expression expected I asked 3 years ago viewed 13841 times active 1 year ago Linked 467 How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? 318 How do I fix my locale More about the author
Posts: 2,411 Thanks: 101 Thanked 177 Times in 163 Posts trying to understand which command is in error? Do humans have an ethical obligation to prevent animal on animal violence? With this information, you will be able to know what version you need to download and install. However, when I go to execute I get 411 [main] ERROR reportToolController.ReportToolController - /usr/bin/java: /usr/bin/java: cannot execute binary file To note, reportToolJar is a String holding the absolute path to the
Why can issuing the same command create more output in tty than in pts/gnome-terminal? Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the GO OUT AND VOTE How much time would it take for a planet scale Miller-Urey experiment to generate intelligent life What is this c. 1948 private plane with a sliding canopy? share|improve this answer answered Jun 13 '12 at 3:07 LawrenceC 47.2k677146 6 "if you try to run x86 executables on an ARM CPU, this message comes up." That was EXACTLY
share|improve this answer answered Jun 12 '12 at 21:51 Darth Android 31k46689 add a comment| up vote 4 down vote The problem is running a binary for a different processor architecture. You might be running java x64 on x32 machine –ponomandr Sep 15 '14 at 5:20 @G.S yes I checked the execute permission. Do you want to help us debug the posting issues ? < is the place to report it, thanks ! Cannot Execute Binary File Mac Use export PATH=/bin:/usr/bin:/sbin:/usr/sbin to fix the $PATH issue until you can fix the root cause of /bin/id failing.
My cat sat on my laptop, now the right side of my keyboard types the wrong characters US Election results 2016: What went wrong with prediction models? ls for example, usually refers to /bin/ls, and your shell finds it by going through the folders listed in PATH one-by-one until it finds it, or if it doesn't find it Share a link to this question via email, Google+, Twitter, or Facebook. sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer You have some locale setting errors.
What do I do? Bash /usr/bin/java Cannot Execute Binary File Centos At some point it tries to execute /bin/id to get your uid, which fails, causing integer expression error, and terminating the script before it can set up your $PATH. Why usually is the word "halfway" used with "down" rather than "up"? xparse processor with multiple arguments Why is Professor Lewin correct regarding dimensional analysis, and I'm not?
Why do languages require parenthesis around expressions when used with "if" and "while"? http://superuser.com/questions/515871/cannot-execute-java-command-on-ubuntu It has been already done. –user3440631 Sep 15 '14 at 5:22 From the same user try to run /usr/jdk64/jdk1.7.0_45/bin/java -version and check do you get any error –G.S Sep Java Cannot Execute Binary File Linux How often should I replace windscreen wiper blades? Java Cannot Execute Binary File: Exec Format Error So, if you had a text file such as "test.txt" which contains java -jar
It's likely the uname output confirms you are 64-bit and the file output confirms the file is compiled for 32-bit. –Duncan Jones Dec 6 '12 at 8:40 installation of The install script 'tem.sh' is excutable and so is the file it is trying to run. String os = System.getProperty("os.name").toLowerCase(); String shell = ""; if (os.contains("win")) shell = "cmd"; else shell = "/bin/sh"; logger.info(shell); Process process = Runtime.getRuntime().exec(shell + " java -jar " + reportToolJar); logger.info("Waiting for click site Then you would $tem.sh to execute the script.
asked 1 year ago viewed 2955 times active 1 year ago Related 1Oracle Java javac runtime error0I am trying to install the Oracle java sdk and jre manually on ubuntu 12.104Oracle Centos Cannot Execute Binary File Last edited by ertansinansahin; May 30th, 2012 at 12:59 AM. Also you may need to check permissions of parent directories as well –G.S Sep 15 '14 at 5:17 4 It might be wrong architecture.
The problem is due to conflict between same programs (32 and 64 bit that I installed) that uses the same library. (This is my thought, I'm not experienced on ubuntu by Shasta IDE 0001:03:0e.0 FireWire (IEEE 1394): Apple Inc. Remove advertisements Sponsored Links mncduffy View Public Profile Find all posts by mncduffy
Another thought to see where you are erroring is to edit the script (vi editor or other) and insert output comments such as: echo "SCRIPTDIR is now set" throughout the file. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Anyway, his installation is badly screwed... –Anony-Mousse Dec 6 '12 at 8:58 It is just for testing in order to find why it is not executable. What is this c. 1948 private plane with a sliding canopy?
Adv Reply May 30th, 2012 #7 Bachstelze View Profile View Forum Posts Private Message Visit Homepage Over 9000 Cups of Ubuntu Join Date Nov 2005 Location Bordeaux, France Beans 11,294 The time now is 10:42 PM. - Contact Us - UNIX & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top Ubuntu 16.04 installer cant see SSD drive What is a satisfactory result of penetration testing assessment? Commands such as halt, poweroff, reboot will return command not found.