Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2017
    Rep Power

    Default Which JVM install should I install?

    After switching from knoppix to debian-live, I started to get

    Java Code:
    java: cannot execute binary file: Exec format error
    kinds of errors. I thought, using a 32 bit JVM would solve the problems but it didn't

    Java Code:
    $ which java
    $ java -version
    bash: /media/sda4/inst/java/jdk1.8.0_121/bin/java: cannot execute binary file: Exec format error
    $ ls -l jdk-8u121-linux-x64.tar.gz 
    -rwxrwxrwx 1 user user 183246769 Mar 15 17:57 jdk-8u121-linux-x64.tar.gz
    $ md5sum -b jdk-8u121-linux-x64.tar.gz 
    91972fb4e753f1b6674c2b952d974320 *jdk-8u121-linux-x64.tar.gz
    $ ls -l jdk-8u121-linux-i586.tar.gz 
    -rwxrwxrwx 1 user user 185735871 Mar 15 18:10 jdk-8u121-linux-i586.tar.gz
    $ md5sum -b jdk-8u121-linux-i586.tar.gz 
    9e0e84f36427ce258abfca35fbeb0c55 *jdk-8u121-linux-i586.tar.gz
    $ echo $(arch)
    $ which java
    $ java -d64 -version
    Error: This Java instance does not support a 64-bit JVM.
    Please install the desired version.
    $ java -d32 -version
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.
    How is it possible that none of the JSE seems to install?


  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Rep Power

    Default Re: Which JVM install should I install?

    That error definitely sounds like a problem with executing the JVM and related commands - how did you install your current version? Just with APT?

  3. #3
    benji2505 is offline Senior Member
    Join Date
    Sep 2014
    MA, USA
    Rep Power

    Default Re: Which JVM install should I install?

    This error message usually occurs when you try to run an executable on the wrong architecture. I think line 20 tells us that he is on a 32 bit machine and Albrecht has installed a 64 bit version of JVM. From what I remember you can't just de-install the 64 bit version and re-install the 32 bit version, there are some libraries that have to be cleaned up, but I am sure Google will be able to help. To make a long story short: chances are, it is an OS problem and not a Java problem.

Similar Threads

  1. Please help I cannot install JRE
    By GAZ in forum Java JRE
    Replies: 0
    Last Post: 12-27-2013, 01:50 AM
  2. what do I have to install?
    By liber77 in forum New To Java
    Replies: 1
    Last Post: 12-13-2011, 03:48 AM
  3. Which JRE should I install?
    By okieman in forum New To Java
    Replies: 1
    Last Post: 06-14-2011, 04:19 AM
  4. How to only install Java SE and ME
    By mig in forum NetBeans
    Replies: 0
    Last Post: 12-17-2010, 08:28 PM

Posting Permissions

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