You are not logged in.

#1 2014-03-05 03:19:32

Davini
Member
Registered: 2010-04-29
Posts: 43

[SOLVED] potential netbeans 7.4-3 issue?

Does anyone get this installing netbeans since 2014-02-06?

...
(17/17) installing netbeans
error: command failed to execute correctly

Then, 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

#2 2014-03-05 03:53:54

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [SOLVED] potential netbeans 7.4-3 issue?

Looks like it's trying to start up an Oracle Java JVM? What Java is installed on your system?

Offline

#3 2014-03-05 03:56:36

Pse
Member
Registered: 2008-03-15
Posts: 415

Re: [SOLVED] potential netbeans 7.4-3 issue?

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-openjdk

What's the output of the following command?

which java

Last edited by Pse (2014-03-05 03:57:21)

Offline

#4 2014-03-05 06:20:51

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] potential netbeans 7.4-3 issue?

please use code tags as opposed to quote tags to post snippets.

See the difference now that I made the edits in your post ??


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2014-03-05 15:30:45

Davini
Member
Registered: 2010-04-29
Posts: 43

Re: [SOLVED] potential netbeans 7.4-3 issue?

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/java

Offline

#6 2014-03-06 03:54:37

Davini
Member
Registered: 2010-04-29
Posts: 43

Re: [SOLVED] potential netbeans 7.4-3 issue?

Does anyone know how to resolve this?

Offline

#7 2014-03-06 19:27:42

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [SOLVED] potential netbeans 7.4-3 issue?

Try installing the Oracle versions of Java from the AUR.

Please see https://wiki.archlinux.org/index.php/ja … le_Java_SE

Offline

#8 2014-03-07 02:18:01

Pse
Member
Registered: 2008-03-15
Posts: 415

Re: [SOLVED] potential netbeans 7.4-3 issue?

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

#9 2014-03-07 03:47:00

Davini
Member
Registered: 2010-04-29
Posts: 43

Re: [SOLVED] potential netbeans 7.4-3 issue?

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

#10 2014-03-07 15:19:30

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: [SOLVED] potential netbeans 7.4-3 issue?

Davini wrote:

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-1

Looks 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

#11 2014-03-07 16:30:26

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: [SOLVED] potential netbeans 7.4-3 issue?

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

Board footer

Powered by FluxBB