How may I install the right Java Virtual Machine?

24,907

Just install the latest version of Java by opening a Terminal (CTRL + ALT + T) and running

sudo apt-get install openjdk-7-jre
Share:
24,907
empedokles
Author by

empedokles

Updated on September 18, 2022

Comments

  • empedokles
    empedokles over 1 year

    I receive following error in terminal:

    No suitable Java Virtual Machine could be found on your system.
    The version of the JVM must be at least 1.5.
    Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
    You can also try to delete the JVM cache file
    

    I'm using 14.04.

    • agha rehan abbas
      agha rehan abbas almost 10 years
      what was the command to which this error came
    • empedokles
      empedokles almost 10 years
      Just a ./ xxxxx.sh file execution.
  • empedokles
    empedokles almost 10 years
    Unfortunately I now receive an error from my .sh installer: testing JVM in /usr ... Starting Installer ... Aug 01, 2014 7:59:02 PM java.util.prefs.FileSystemPreferences$1 run Information: Created user preferences directory. ago 01, 2014 7:59:32 PM java.util.prefs.FileSystemPreferences syncWorld Avvertenza: Couldn't flush system prefs: java.util.prefs.BackingStoreException: /etc/.java/.systemPrefs/com create failed.
  • jnuk
    jnuk almost 10 years
    Try running the script with root privileges. Just add sudo in front of the ./
  • empedokles
    empedokles almost 10 years
    I guess a restart did it. I could start it up, but can't open a file with the software.