Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hello i am getting warnings after i have installed java on kubuntu 11.10. The java programs run but i always get 4 warnings:

$ java
Warning: no leading - on line 1 of `/usr/lib/jvm/java-6-sun-'
Warning: missing VM type on line 1 of `/usr/lib/jvm/java-6-sun-'
Warning: no leading - on line 1 of `/usr/lib/jvm/java-6-sun-'
Warning: missing VM type on line 1 of `/usr/lib/jvm/java-6-sun-'

What am i missing? Thanks in advance!

Here is the file content /usr/lib/jvm/java-6-sun- :

# %W% %E%
# Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
# ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
# List of JVMs that can be used as an option to java, javac, etc.
# Order is important -- first in this list is the default JVM.
# NOTE that this both this file and its format are UNSUPPORTED and
# WILL GO AWAY in a future release.
# You may also select a JVM in an arbitrary location with the
# "-XXaltjvm=<jvm_dir>" option, but that too is unsupported
# and may not be available in a future release.
-server KNOWN
-client IGNORE
-hotspot ERROR
-classic WARN
-native ERROR
-green ERROR
share|improve this question

migrated from Apr 1 '12 at 7:54

This question came from our site for professional and enthusiast programmers.

How did you install it? – Thorbjørn Ravn Andersen Mar 31 '12 at 11:44
The folks over at might be able to help you. – Vache Mar 31 '12 at 11:50
well i installed repository and then through install manager muon (for the on for kubuntu version). It installed many dependencies and it works even with eclipse but i get those warnings. I also see those warnings in the eclipse console but the programs run... – Geo Papas Mar 31 '12 at 12:00
Please attach the contents of the /usr/lib/jvm/java-6-sun- file to your question. – daveb Mar 31 '12 at 13:14
@Dave I just uploade the file content :) – BugshotGG Apr 1 '12 at 10:44

Have you gone through the following procedures?

Open terminal and run the following commands

Add partner repository using the following command

sudo add-apt-repository “deb lucid partner”

Update the source list

sudo apt-get update

Now install sun java packages using the following commands

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

The above command will download all the required packages and begins the installation, you’ll get a screen that contains the Sun Operating System Distributor License for Java and hit Enter to continue.

You’ll see a dialog that asks you if you agree with the DLJ license terms. Select Yes, and hit Enter; the JRE will finish installing.

Testing Java Runtime Environment

You’ll want to confirm that your system is configured properly for Sun’s JRE. This is a two-step process.

First, check that the JRE is properly installed by running the following command from a terminal.

share|improve this answer
Yes i have installed it correctly. As i said programs can run but i always get those errors... – Geo Papas Mar 31 '12 at 12:07
glad to help you can accept my answer – harry Mar 31 '12 at 12:14
Well your answer didnt solve anything. Btw check again your answer... Did you want to add something in the end and you forget it? "running the following command from a terminal." ?? – Geo Papas Mar 31 '12 at 13:05
up vote 0 down vote accepted

The problem was a missing # in the first line before the /usr/lib/jvm/java-6-sun in jvm.cfg file. I have not figured out why it was missing. Now its working fine without any warnings. Thanks.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.