Problema ao abrir Netbeans no Linux

2 respostas
Sora

Olá gente!
Estou tendo um problema com o Netbeans no Linux aqui. Como estou usando Linux a pouco tempo, estão surgindo algumas dúvidas, mas o que acontece é o seguinte:
Toda vez que eu abro o Netbeans, aparecem dois erros:

Esse:

Detalhes:

java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at org.netbeans.JarClassLoader.doLoadClass(Unknown Source) at org.netbeans.ProxyClassLoader.selfLoadClass(Unknown Source) at org.netbeans.ProxyClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at org.netbeans.modules.mercurial.config.HgConfigFiles.loadSystemAndGlobalFile(Unknown Source) at org.netbeans.modules.mercurial.config.HgConfigFiles.<init>(Unknown Source) at org.netbeans.modules.mercurial.config.HgConfigFiles.getSysInstance(Unknown Source) at org.netbeans.modules.mercurial.Mercurial.loadIniParserClassesWorkaround(Unknown Source) at org.netbeans.modules.mercurial.Mercurial.init(Unknown Source) at org.netbeans.modules.mercurial.Mercurial.getInstance(Unknown Source) at org.netbeans.modules.mercurial.MercurialVCS.<init>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.openide.util.lookup.MetaInfServicesLookup$P.getInstance(Unknown Source) at org.openide.util.lookup.AbstractLookup$R.allInstances(Unknown Source) at org.openide.util.lookup.ProxyLookup$R.computeResult(Unknown Source) at org.openide.util.lookup.ProxyLookup$R.allInstances(Unknown Source) at org.netbeans.modules.versioning.VersioningManager.refreshVersioningSystems(Unknown Source) at org.netbeans.modules.versioning.VersioningManager.init(Unknown Source) at org.netbeans.modules.versioning.VersioningManager.getInstance(Unknown Source) at org.netbeans.modules.versioning.VersioningAnnotationProvider.getInterceptionListener(Unknown Source) at org.netbeans.modules.masterfs.ProvidedExtensionsProxy.fileLocked(Unknown Source) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(Unknown Source) at org.netbeans.spi.project.support.ant.PropertyUtils$2.run(Unknown Source) at org.netbeans.spi.project.support.ant.PropertyUtils$2.run(Unknown Source) at org.openide.util.Mutex.writeAccess(Unknown Source) at org.netbeans.spi.project.support.ant.PropertyUtils.putGlobalProperties(Unknown Source) at org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryTypeProvider$1.run(Unknown Source) at org.openide.util.Mutex.postRequest(Unknown Source) at org.openide.util.Mutex.postWriteRequest(Unknown Source) at org.netbeans.modules.java.j2seplatform.libraries.J2SELibraryTypeProvider.libraryCreated(Unknown Source) at org.netbeans.modules.project.libraries.LibrariesStorage.loadFromStorage(Unknown Source) at org.netbeans.modules.project.libraries.LibrariesStorage.initStorage(Unknown Source) at org.netbeans.modules.project.libraries.LibrariesStorage.getLibraries(Unknown Source) at org.netbeans.modules.project.libraries.LibrariesModule.initProviders(Unknown Source) at org.netbeans.modules.project.libraries.LibrariesModule.restored(Unknown Source) at org.netbeans.core.startup.NbInstaller.loadCode(Unknown Source) at org.netbeans.core.startup.NbInstaller.load(Unknown Source) at org.netbeans.ModuleManager.enable(Unknown Source) at org.netbeans.core.startup.ModuleList.installNew(Unknown Source) at org.netbeans.core.startup.ModuleList.trigger(Unknown Source) at org.netbeans.core.startup.ModuleSystem.restore(Unknown Source) at org.netbeans.core.startup.Main.getModuleSystem(Unknown Source) at org.netbeans.core.startup.Main.start(Unknown Source) at org.netbeans.core.startup.TopThreadGroup.run(Unknown Source) [catch] at java.lang.Thread.run(Thread.java:595)
E esse: A org.openide.filesystems.FileAlreadyLockedException exception has occurred. However, the system should continue working without further problems.
Detalhes:

org.openide.filesystems.FileAlreadyLockedException: /home/soraia/.netbeans/6.5/build.properties at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.registerLock(Unknown Source) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.LockForFile.tryLock(Unknown Source) at org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj.lock(Unknown Source) at org.netbeans.spi.project.support.ant.PropertyUtils$2.run(Unknown Source) at org.netbeans.spi.project.support.ant.PropertyUtils$2.run(Unknown Source) at org.openide.util.Mutex.writeAccess(Unknown Source) at org.netbeans.spi.project.support.ant.PropertyUtils.putGlobalProperties(Unknown Source) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule$1.run(Unknown Source) at org.openide.util.Mutex.postRequest(Unknown Source) at org.openide.util.Mutex.postWriteRequest(Unknown Source) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.updateBuildProperties(Unknown Source) at org.netbeans.modules.java.j2seplatform.J2SEPlatformModule.restored(Unknown Source) at org.netbeans.core.startup.NbInstaller.loadCode(Unknown Source) at org.netbeans.core.startup.NbInstaller.load(Unknown Source) at org.netbeans.ModuleManager.enable(Unknown Source) at org.netbeans.core.startup.ModuleList.installNew(Unknown Source) at org.netbeans.core.startup.ModuleList.trigger(Unknown Source) at org.netbeans.core.startup.ModuleSystem.restore(Unknown Source) at org.netbeans.core.startup.Main.getModuleSystem(Unknown Source) at org.netbeans.core.startup.Main.start(Unknown Source) at org.netbeans.core.startup.TopThreadGroup.run(Unknown Source) [catch] at java.lang.Thread.run(Thread.java:595)

Alguém saberia o que pode ser e como solucionar isso??? :frowning:

Vlw gente !!!

2 Respostas

R

Vejamos a seguinte linha do seu log:

Isso é indicativo de que você está tentando executar numa versão antiga do Java classes compiladas com uma versão mais nova (por exemplo, tentar rodar no Java 1.5 classes compiladas no Java 1.6). Atualize seu Java para a versão mais recente e creio que irá funcionar.

Sora

Eu entrei no site da Sun e baixei a versão mais nova do Java, mas não consigo instalar.
Assim que termina e baixar, eu tento instalar ele, e ocorre um problema.
Eu abro o terminal, logo como root e faço o seguinte:

chmod a+x jre-6u13-linux-x64-rpm.bin

Depois:

./jre-6u13-linux-x64-rpm.bin

Aí aparecem os termos de licensa e no final pede pra digitar "yes" ou "no".
Depois que eu digito yes, aparece a seguinte mensagem:

Unpacking...
Checksumming...
Extracting...
./jre-6u13-linux-x64-rpm.bin: line 365: ./install.sfx.8042: cannot execute binary file
 
Done.

E eu não consigo instalar o Java aqui, já baixei o arquivo bin sem ser rpm e acontece a mesma coisa. Utilizo o Mandriva Linux 2009.1.

Criado 28 de maio de 2009
Ultima resposta 29 de mai. de 2009
Respostas 2
Participantes 2