Results 1 to 10 of 10

Thread: Can't run java apps with stock 12.1 install

  1. #1
    Join Date
    May 2011
    Location
    BMore City
    Posts
    36

    Default Can't run java apps with stock 12.1 install

    Hi all:
    I have a relatively recent Opensuse 12.1 x64 install. Running on an intel processor.

    I tried installing eclipse and fiji (another java app) and both apps return the error message: cannot execute binary file. That's under bash.

    Under csh, the error message becomes: Exec format error. Binary file not executable.

    Both executables think they are ELF files.

    I have OpenJDK installed. Is this a case where you need to install some JVM that isn't part of the distribution to run things?

    Does anyone know other configuration issues that might cause all java apps to fail?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,164

    Default Re: Can't run java apps with stock 12.1 install

    Hello,

    I will not be able to help you directly (sorry). But you can improve your posting by not telling stories alone, but backing them with computer facts. Thus everybody can see what you did end what you got. And it spares you a lot of work, because instead of typing things like "both apps return the error message: cannot execute binary file. That's under bash." you only have to copy/paste from your terminal (prompt, command, output, next prompt) in one swoop to the post between CODE tags (using he # button in the tool bar).

    Same for other things here: "Both executables think they are ELF files.", but
    Code:
    henk@boven:~> file /bin/bash
    /bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=0x389a0a8fb3ed548c12ffd2d6a5e212adc804b5a4, stripped
    henk@boven:~>
    is more informative. Because it does not tell what you think that the executable thinks of itselve, but it tells what tool I used on what and what the results are.
    Henk van Velden

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,164

    Default Re: Can't run java apps with stock 12.1 install

    I have 12.2 here, so this is not exactly the same as you, but though I can find eclipse in the OSS repo (in package ecj), I can not find fiji. When this is the same in 12.1 you must have got fiji from somewhere else, but you falied to explain where you installed it from.
    Henk van Velden

  4. #4
    Join Date
    May 2011
    Location
    BMore City
    Posts
    36

    Default Re: Can't run java apps with stock 12.1 install

    Eclipse-swt is not the same thing as the Eclipse IDE (integrated development environment) Eclipse. The only entry in the OSS repository is eclipse-swt, the toolkit.

    I have attempted to run two java applications (Eclipse IDE) and Fiji (see fiji.sc) scientific image manipulation software installed from third party websites, not from a repository, because, java applications usually don't show up in linux repositories. According to what I've read from people who package java applications for linux, it's somewhat tricky and almost pointless because java apps are usually so easy to install.

    Both java applications failed to run with the following error message from bash (bourne again shell): "cannot execute binary file". I with I could give you more information, but, that is the situation.

    Using a hexadecimal editor (ghex), I examined the main application file for both applications (filename "eclipse" for eclipse-swt and "ImageJ-linux64" for Fiji The headers for both files begin with ".ELF", therefore, they are executable files. They contain various java-related error messages in the strings table near the end of the executable file, therefore, they are probably java applications.

    Both java applications work on other versions of Linux and are, in fact, major packages in scientific fields. Thus, the problem probably lies with OpenSuse, specifically with java applications.

    I suspect that the problem is a lack of an effective java virtual machine with the default OpenSuse installation, but I wouldn't know because I'm not that good at Java. I'm going to be testing this idea by downloading Novell's JRE, however, if anyone has the Eclipse IDE working under Opensuse, I could use some help.

    Quote Originally Posted by hcvv View Post
    I have 12.2 here, so this is not exactly the same as you, but though I can find eclipse in the OSS repo (in package ecj), I can not find fiji. When this is the same in 12.1 you must have got fiji from somewhere else, but you falied to explain where you installed it from.

  5. #5
    Join Date
    Jun 2008
    Location
    NZ
    Posts
    1,547

    Default Re: Can't run java apps with stock 12.1 install

    to install Sun (oracle) Java you'll need to follow this guide to get it working properly

    https://en.opensuse.org/SDB:Installing_Java

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Can't run java apps with stock 12.1 install

    I doubt installing oracle java will help. Both programs work with
    openjdk (I use both eclipse and also fiji and plain imagej.
    It sounds more as if the starter applications have no executable bit set
    or something similar.

    --
    PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GTX 650 Ti
    ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.4 | HD 3000
    eCAFE 800: oS 11.4 i586 | AMD Geode LX 800@500MHz | 512MB | lamp server

  7. #7
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Can't run java apps with stock 12.1 install

    @X61_usr
    I had this same problem of eclipse not starting when i moved from 32 bit to 64 bit openSUSE
    I tried to use 32 bit eclipse on 64 bit
    Can you double check your version of eclipse.
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

  8. #8
    dd NNTP User

    Default Re: Can't run java apps with stock 12.1 install

    On 12/14/2012 09:26 PM, X61 usr wrote:
    > installed from third party websites, not from a repository


    from those sites did was downloaded source and then compiled locally? or
    did they offer .rpm or .bin or .zip files..

    did they offer installation instructions for several different versions
    of Linux?

    if you downloaded an rpm file, did you install it with YaST?

    i ask all those questions because there are sufficient differences
    between the different distros to require specific installation
    instructions....and, if the third party site only provides info for
    (say) Debian based systems then....welllll if the installation is
    botched, it won't run...(which i _guess_ is the case here)

    [Martin's runs ok because he knows how to install all of those things on
    openSUSE....and, maybe should/could help those third party sites produce
    good install directions....or maybe a packager could stuff the bits into
    a SUSE-friendly rpm or or or *or* one could compile from source and i'm
    just nearly completely sure it would then work--if one were to compile
    and make correctly, for the OS in use....]

    --
    dd

  9. #9
    Join Date
    May 2010
    Location
    Space Colony Lagrange Point 22° à, 77° Ƅ, 56° ɤ, 99° ɜ
    Posts
    3,166

    Default Re: Can't run java apps with stock 12.1 install

    Quote Originally Posted by X61_usr View Post
    if anyone has the Eclipse IDE working under Opensuse, I could use some help.
    I use 64 bit OS (GNOME 3.4.2/openSUSE 12.2)
    I can use eclipse(J2EE version) on my system
    I have openJDK installed ,also have installed Sun Java from one click from this page, repo is home:enzokiel
    I downloaded the eclipse archive using torrent
    After downloading i just extract and double click on the executable

    YaST

    Eclipse Works and i am able to get output by running the java program
    GNOME Version 3.20.2
    openSUSE Leap 42.3 64-bit

    www.vazhavandan.blogspot.com

  10. #10
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Can't run java apps with stock 12.1 install

    I did a few simple tests, removing the executable bit from the eclipse
    starter application just leads to
    Code:
    martinh@ganymed:~/bin/eclipse37> ./eclipse
    bash: ./eclipse: Permission denied
    so not the error message which we heard about.

    Introducing intentionally a typo to start the application makes it
    reproduce the error
    Code:
    martinh@ganymed:~/bin/eclipse37> . eclipse
    bash: .: eclipse: cannot execute binary file
    (of course as I source now an elf file as if it were a script).

    Please X61usr show us exactly with copy and paste how you try to start
    the application in a terminal.

    --
    PC: oS 12.2 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.5 | GTX 650 Ti
    ThinkPad E320: oS 12.2 x86_64 | i3@2.30GHz | 8GB | KDE 4.9.4 | HD 3000
    eCAFE 800: oS 11.4 i586 | AMD Geode LX 800@500MHz | 512MB | lamp server

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •