/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java is missing

Asked by Arnon

~/netbeans-7.1.2/bin $ ./netbeans --jdkhome /usr/lib/jvm/java-7-openjdk-i386
gives error :
Cannot find java. Please use the --jdkhome switch.

i used a netbeans that was downloaded from http://dlc.sun.com.edgesuite.net/netbeans/7.1.2/final/zip/
filename
netbeans-7.1.2-201204101705-ml-javase.zip
i unzipped that netbeans-7.1.2-201204101705-ml-javase.zip goes to 'bin' directory and tried running ./netbeans there

java was installed by using command : apt-get install openjdk-7-jdk

i discover the fix is that i must manually made a link
/usr/lib/jvm/java-7-openjdk-i386/bin/java
that links to
/usr/lib/jvm/java-7-openjdk-i386/jre/bin/java

in order for
~/netbeans-7.1.2/bin $ ./netbeans --jdkhome /usr/lib/jvm/java-7-openjdk-i386
to open netbeans successfully

strace -Ff -tt ~/netbeans-7.1.2/bin/netbeans --jdkhome /usr/lib/jvm/java-7-openjdk-i386 2>&1 | tee strace-netbeansjava7.log
told me that netbeans searched for /usr/lib/jvm/java-7-openjdk-i386/bin/java which was not available and then crash, not able to open netbeans successfully

i discover that java-6-openjdk installation has /usr/lib/jvm/java-6-openjdk/bin/java link available and
~/netbeans-7.1.2/bin $ ./netbeans --jdkhome /usr/lib/jvm/java-6-openjdk
always works

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu openjdk-7 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Arnon (arnon81) said :
#1

linuxmint 12 lisa is my distro
this is my /etc/apt/sources.list
deb http://packages.linuxmint.com/ lisa main upstream import
deb http://archive.ubuntu.com/ubuntu/ oneiric main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ oneiric-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ oneiric-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ oneiric partner
deb http://packages.medibuntu.org/ oneiric free non-free

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Mint isn't supported here, this is Ubuntu support. Mint has it's own forum, irc chhannels and so forth. I suggest you post here:
http://forum.linuxmint.com/

Revision history for this message
Arnon (arnon81) said :
#3

according to following info, i seems to obtain openjdk-7-jdk package from ubuntu repository http://archive.ubuntu.com/ubuntu/dists/oneiric-updates/universe/i18n/Translation-en

calm abc # apt-cache showpkg openjdk-7-jdk
Package: openjdk-7-jdk
Versions:
7~b147-2.0-0ubuntu0.11.10.1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric-updates_universe_binary-i386_Packages) (/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_oneiric-security_universe_binary-i386_Packages) (/var/lib/dpkg/status)
 Description Language: en
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric-updates_universe_i18n_Translation-en
                  MD5: eaff50443f15582a8beb0901034b62cf
 Description Language:
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric-updates_universe_binary-i386_Packages
                  MD5: eaff50443f15582a8beb0901034b62cf

7~b147-2.0~pre6-1ubuntu1 (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric_universe_binary-i386_Packages)
 Description Language: en
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric_universe_i18n_Translation-en
                  MD5: eaff50443f15582a8beb0901034b62cf
 Description Language:
                 File: /var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_oneiric_universe_binary-i386_Packages
                  MD5: eaff50443f15582a8beb0901034b62cf

Reverse Depends:
  openjdk-7-source,openjdk-7-jdk 7~b147-2.0-0ubuntu0.11.10.1
  openjdk-7-doc,openjdk-7-jdk
  openjdk-7-dbg,openjdk-7-jdk 7~b147-2.0-0ubuntu0.11.10.1
  openjdk-7-source,openjdk-7-jdk 7~b147-2.0~pre6-1ubuntu1
  openjdk-7-doc,openjdk-7-jdk
  openjdk-7-dbg,openjdk-7-jdk 7~b147-2.0~pre6-1ubuntu1
Dependencies:
7~b147-2.0-0ubuntu0.11.10.1 - openjdk-7-jre (2 7~b147-2.0-0ubuntu0.11.10.1) libc6 (2 2.0) openjdk-7-demo (0 (null)) openjdk-7-source (0 (null)) visualvm (0 (null)) libxt-dev (0 (null))
7~b147-2.0~pre6-1ubuntu1 - openjdk-7-jre (2 7~b147-2.0~pre6-1ubuntu1) libc6 (2 2.0) openjdk-7-demo (0 (null)) openjdk-7-source (0 (null)) visualvm (0 (null)) libxt-dev (0 (null))
Provides:
7~b147-2.0-0ubuntu0.11.10.1 - java7-jdk java6-sdk java5-sdk java2-sdk java-sdk java-compiler
7~b147-2.0~pre6-1ubuntu1 - java7-jdk java6-sdk java5-sdk java2-sdk java-sdk java-compiler
Reverse Provides:
calm abc # apt-cache policy openjdk-7-jdk
openjdk-7-jdk:
  Installed: 7~b147-2.0-0ubuntu0.11.10.1
  Candidate: 7~b147-2.0-0ubuntu0.11.10.1
  Version table:
 *** 7~b147-2.0-0ubuntu0.11.10.1 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric-updates/universe i386 Packages
        500 http://security.ubuntu.com/ubuntu/ oneiric-security/universe i386 Packages
        100 /var/lib/dpkg/status
     7~b147-2.0~pre6-1ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
calm abc #

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

sudo fuser -vvv /var/lib/dpkg/lock
sudo rm /var/lib/apt/lists/lock
sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*
sudo rm -rf /var/lib/apt/lists
sudo rm /var/cache/apt/*.bin
sudo mkdir /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists/partial
LANG=C;sudo apt-get clean -o APT::Cache-Limit=25165824
LANG=C;sudo apt-get autoclean -o APT::Cache-Limit=25165824
LANG=C;sudo apt-get --purge autoremove -o APT::Cache-Limit=25165824
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
sudo dpkg --clear-avail
sudo dpkg --configure -a
LANG=C;sudo apt-get -f install -o APT::Cache-Limit=25165824
LANG=C;sudo apt-get --fix-missing install -o APT::Cache-Limit=25165824
LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade

May help

Revision history for this message
Arnon (arnon81) said :
#5

may help with what?
according to the following line, the ubuntu package openjdk-7-jdk_7~b147-2.0-0ubuntu0.11.10.1_i386.deb has no /usr/lib/jvm/java-7-openjdk-i386/bin/java
calm abc # apt-get download openjdk-7-jdk
Get:1 Downloading openjdk-7-jdk 7~b147-2.0-0ubuntu0.11.10.1 [11.2 MB]
Fetched 11.2 MB in 3s (3,483 kB/s)
calm abc # ar p openjdk-7-jdk_7~b147-2.0-0ubuntu0.11.10.1_i386.deb data.tar.gz | tar zt
./
./usr/
./usr/lib/
./usr/lib/jvm/
./usr/lib/jvm/java-7-openjdk-i386/
./usr/lib/jvm/java-7-openjdk-i386/include/
./usr/lib/jvm/java-7-openjdk-i386/include/jni.h
./usr/lib/jvm/java-7-openjdk-i386/include/linux/
./usr/lib/jvm/java-7-openjdk-i386/include/linux/jni_md.h
./usr/lib/jvm/java-7-openjdk-i386/include/linux/jawt_md.h
./usr/lib/jvm/java-7-openjdk-i386/include/jvmti.h
./usr/lib/jvm/java-7-openjdk-i386/include/jvmticmlr.h
./usr/lib/jvm/java-7-openjdk-i386/include/classfile_constants.h
./usr/lib/jvm/java-7-openjdk-i386/include/jawt.h
./usr/lib/jvm/java-7-openjdk-i386/include/jdwpTransport.h
./usr/lib/jvm/java-7-openjdk-i386/lib/
./usr/lib/jvm/java-7-openjdk-i386/lib/jconsole.jar
./usr/lib/jvm/java-7-openjdk-i386/lib/sa-jdi.jar
./usr/lib/jvm/java-7-openjdk-i386/lib/tools.jar
./usr/lib/jvm/java-7-openjdk-i386/lib/ct.sym
./usr/lib/jvm/java-7-openjdk-i386/lib/orb.idl
./usr/lib/jvm/java-7-openjdk-i386/lib/ir.idl
./usr/lib/jvm/java-7-openjdk-i386/lib/dt.jar
./usr/lib/jvm/java-7-openjdk-i386/bin/
./usr/lib/jvm/java-7-openjdk-i386/bin/appletviewer
./usr/lib/jvm/java-7-openjdk-i386/bin/apt
./usr/lib/jvm/java-7-openjdk-i386/bin/extcheck
./usr/lib/jvm/java-7-openjdk-i386/bin/idlj
./usr/lib/jvm/java-7-openjdk-i386/bin/jar
./usr/lib/jvm/java-7-openjdk-i386/bin/jarsigner
./usr/lib/jvm/java-7-openjdk-i386/bin/javac
./usr/lib/jvm/java-7-openjdk-i386/bin/javadoc
./usr/lib/jvm/java-7-openjdk-i386/bin/javah
./usr/lib/jvm/java-7-openjdk-i386/bin/javap
./usr/lib/jvm/java-7-openjdk-i386/bin/jconsole
./usr/lib/jvm/java-7-openjdk-i386/bin/jdb
./usr/lib/jvm/java-7-openjdk-i386/bin/jhat
./usr/lib/jvm/java-7-openjdk-i386/bin/jinfo
./usr/lib/jvm/java-7-openjdk-i386/bin/jmap
./usr/lib/jvm/java-7-openjdk-i386/bin/jps
./usr/lib/jvm/java-7-openjdk-i386/bin/jrunscript
./usr/lib/jvm/java-7-openjdk-i386/bin/jsadebugd
./usr/lib/jvm/java-7-openjdk-i386/bin/jstack
./usr/lib/jvm/java-7-openjdk-i386/bin/jstat
./usr/lib/jvm/java-7-openjdk-i386/bin/jstatd
./usr/lib/jvm/java-7-openjdk-i386/bin/native2ascii
./usr/lib/jvm/java-7-openjdk-i386/bin/rmic
./usr/lib/jvm/java-7-openjdk-i386/bin/schemagen
./usr/lib/jvm/java-7-openjdk-i386/bin/serialver
./usr/lib/jvm/java-7-openjdk-i386/bin/wsgen
./usr/lib/jvm/java-7-openjdk-i386/bin/wsimport
./usr/lib/jvm/java-7-openjdk-i386/bin/xjc
./usr/lib/jvm/java-7-openjdk-i386/man/
./usr/lib/jvm/java-7-openjdk-i386/man/man1/
./usr/lib/jvm/java-7-openjdk-i386/man/man1/appletviewer.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/apt.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/extcheck.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/idlj.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jar.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jarsigner.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/javac.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/javadoc.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/javah.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/javap.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jconsole.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jdb.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jhat.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jinfo.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jmap.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jps.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jrunscript.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jsadebugd.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jstack.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jstat.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/jstatd.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/native2ascii.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/rmic.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/schemagen.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/serialver.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/wsgen.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/wsimport.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/man1/xjc.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/appletviewer.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/apt.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/extcheck.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/idlj.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jar.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jarsigner.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/javac.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/javadoc.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/javah.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/javap.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jconsole.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jdb.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jhat.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jinfo.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jmap.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jps.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jrunscript.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jsadebugd.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jstack.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jstat.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/jstatd.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/native2ascii.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/rmic.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/schemagen.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/serialver.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/wsgen.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/wsimport.1.gz
./usr/lib/jvm/java-7-openjdk-i386/man/ja_JP.UTF-8/man1/xjc.1.gz
./usr/share/
./usr/share/lintian/
./usr/share/lintian/overrides/
./usr/share/lintian/overrides/openjdk-7-jdk
./usr/share/doc/
./usr/share/doc/openjdk-7-jre-headless/
./usr/share/doc/openjdk-7-jre-headless/test-i386/
./usr/share/doc/openjdk-7-jre-headless/test-i386/mauve_output-hotspot.log
./usr/share/doc/openjdk-7-jre-headless/test-i386/jtreg_output-hotspot.log
./usr/share/doc/openjdk-7-jre-headless/test-i386/mauve_output-jamvm.log
./usr/share/doc/openjdk-7-jre-headless/test-i386/jtreg_output-jamvm.log
./usr/share/menu/
./usr/share/menu/openjdk-7-jdk
./usr/lib/jvm/java-7-openjdk-i386/include/jni_md.h
./usr/lib/jvm/java-7-openjdk-i386/include/jawt_md.h
./usr/lib/jvm/java-7-openjdk-i386/lib/jexec
./usr/lib/jvm/java-7-openjdk-i386/ASSEMBLY_EXCEPTION
./usr/lib/jvm/java-7-openjdk-i386/THIRD_PARTY_README
./usr/share/doc/openjdk-7-jdk
calm abc #

Can you help with this problem?

Provide an answer of your own, or ask Arnon for more information if necessary.

To post a message you must log in.