You are not logged in.
Does anyone get this installing netbeans since 2014-02-06?
...
(17/17) installing netbeans
error: command failed to execute correctlyThen, when I try running netbeans I get:
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.SunToolkit
at sun.awt.AppContext$2.run(AppContext.java:271)
at sun.awt.AppContext$2.run(AppContext.java:260)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:260)
at sun.awt.AppContext.access$200(AppContext.java:133)
at sun.awt.AppContext$3.run(AppContext.java:314)
at sun.awt.AppContext$3.run(AppContext.java:298)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:297)
at sun.awt.AppContext$6.getContext(AppContext.java:841)
at sun.misc.SharedSecrets.getJavaAWTAccess(SharedSecrets.java:201)
at java.util.logging.LogManager.getUserContext(LogManager.java:372)
at java.util.logging.LogManager.getLogger(LogManager.java:1029)
at java.util.logging.LogManager.demandLogger(LogManager.java:424)
at java.util.logging.Logger.demandLogger(Logger.java:343)
at java.util.logging.Logger.getLogger(Logger.java:390)
at org.netbeans.core.startup.Main.<clinit>(Main.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.netbeans.MainImpl.main(MainImpl.java:97)
at org.netbeans.Main.main(Main.java:78)
Exception in thread "Thread-0" java.lang.NoClassDefFoundError: Could not initialize class sun.awt.SunToolkit
at sun.awt.AppContext$2.run(AppContext.java:271)
at sun.awt.AppContext$2.run(AppContext.java:260)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.initMainAppContext(AppContext.java:260)
at sun.awt.AppContext.access$200(AppContext.java:133)
at sun.awt.AppContext$3.run(AppContext.java:314)
at sun.awt.AppContext$3.run(AppContext.java:298)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.AppContext.getAppContext(AppContext.java:297)
at sun.awt.AppContext$6.getContext(AppContext.java:841)
at sun.misc.SharedSecrets.getJavaAWTAccess(SharedSecrets.java:201)
at java.util.logging.LogManager.getUserContext(LogManager.java:372)
at java.util.logging.LogManager.contexts(LogManager.java:407)
at java.util.logging.LogManager.reset(LogManager.java:1134)
at java.util.logging.LogManager$Cleaner.run(LogManager.java:248)I can't seem to find resolve this issue on one of my systems.
Last edited by Davini (2014-03-07 03:47:21)
Offline
Looks like it's trying to start up an Oracle Java JVM? What Java is installed on your system?
Offline
There seems to be a problem with your Java installation. Have you installed any out-of-tree JREs? If you haven't, reinstall jdk7-openjdk using pacman:
pacman -S jdk7-openjdkWhat's the output of the following command?
which javaLast edited by Pse (2014-03-05 03:57:21)
Offline
please use code tags as opposed to quote tags to post snippets.
See the difference now that I made the edits in your post ??
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
oops sorry. It's been a while since I've posted. I forgot how to use the BB.
I did a normal pacman -S netbeans on a basically fresh system.
It pulls with it: jdk7-openjdk-7.u61_2.4.5-1, jre7-openjdk-7.u61_2.4.5-1, and jre7-openjdk-headless-7.u61_2.4.5-1.
If I keep these packages,
$ which java
/usr/bin/javaOffline
Does anyone know how to resolve this?
Offline
Try installing the Oracle versions of Java from the AUR.
Please see https://wiki.archlinux.org/index.php/ja … le_Java_SE
Offline
Quite odd. I am running netbeans with OpenJDK, no problems whatsoever. Try to run other Java apps to see if we can narrow this down. Install eclipse or jedit or intellij-idea.
Offline
Installing jdk allowed Netbeans to install without an error and run as normal.
Marking as solved.
However, there still seems to be a problem with the Netbeans as it sits in the repo; one shouldn't need to install the jdk from the AUR to run this application. It's a simple fix, but seriously, no one else had this issue ? I can't be the only one. As a side note, I was able to run eclipse with no problems using openjdk.
Offline
Installing jdk allowed Netbeans to install without an error and run as normal.
Marking as solved.
However, there still seems to be a problem with the Netbeans as it sits in the repo; one shouldn't need to install the jdk from the AUR to run this application. It's a simple fix, but seriously, no one else had this issue ? I can't be the only one. As a side note, I was able to run eclipse with no problems using openjdk.
I just installed netbeans and it started up just fine. Here's my info:
archbox@christian ~ % pacman -Q netbeans jdk7-openjdk jre7-openjdk
netbeans 7.4-3
jdk7-openjdk 7.u51_2.4.5-1
jre7-openjdk 7.u51_2.4.5-1Looks like you run a newer version of Java, not sure why though since the repo currently lists 7.u51. Try downgrading openjdk to that version.
Last edited by cris9288 (2014-03-07 15:38:57)
Offline
Davini, is it possible you only had the JRE installed and not the full jdk? NetBeans needs the full JDK to run, so if you only had the Java Runtimes, that may have been the issue? Obviously, I am only SWAGging here.
Matt
"It is very difficult to educate the educated."
Offline