Avisos Java no jvm.cfg

1

Olá, estou recebendo avisos depois de ter instalado o java no kubuntu 11.10. Os programas java são executados, mas sempre recebo 4 avisos:

$ java
Warning: no leading - on line 1 of '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/jvm.cfg'
Warning: missing VM type on line 1 of '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/jvm.cfg'
Warning: no leading - on line 1 of '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/jvm.cfg'
Warning: missing VM type on line 1 of '/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/jvm.cfg'

O que estou perdendo? Desde já, obrigado! o conteúdo do arquivo /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/amd64/jvm.cfg é:

/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
    
por BugShotGG 31.03.2012 / 14:11

1 resposta

1

Parece que o atual jvm.cfg é inválido e não é esperado que o /usr/lib/jvm/java-6-sun esteja na primeira linha.

Comente esta linha (adicione # antes dela) e tente ver se os erros / avisos ainda aparecem.

    
por yossile 01.04.2012 / 13:01