This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 213437 - java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"
Summary: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in th...
Status: RESOLVED INVALID
Alias: None
Product: installer
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.2
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-02 23:09 UTC by TomFoolery408
Modified: 2017-02-06 18:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "main"


Attachments
install.log (33.23 KB, text/plain)
2012-06-09 22:12 UTC, TomFoolery408
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TomFoolery408 2012-06-02 23:09:29 UTC
I have a virtual dedicated server running Centos 6.2, JDK 1.7.2 and am trying to install netbeans-7.2.1-ml-linux.sh.

This is my first installation.  

[...]$ which java 
alias java='java -Xms8m -Xms64m'
    /usr/bin/java

[...]$java -version
java version "1.7.0"
Java (TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot (TM) Server VM (build 21.0-b17, mixed mode)


I was getting a "headless" error but I set DISPLAY=:0.0 and that got me past that.
Comment 1 Jiri Rechtacek 2012-06-04 08:44:23 UTC
(In reply to comment #0)
> I have a virtual dedicated server running Centos 6.2, JDK 1.7.2 and am trying
> to install netbeans-7.2.1-ml-linux.sh.
> 
> This is my first installation.  
> 
> [...]$ which java 
> alias java='java -Xms8m -Xms64m'
>     /usr/bin/java
> 
> [...]$java -version
> java version "1.7.0"
> Java (TM) SE Runtime Environment (build 1.7.0-b147)
> Java HotSpot (TM) Server VM (build 21.0-b17, mixed mode)
> 
> 
> I was getting a "headless" error but I set DISPLAY=:0.0 and that got me past
> that.

Run the installer with a switch for install.log[*] and post the log here.
[*] ./netbeans-7.1.2-javase-linux.sh --verbose --output /tmp/install.log
Comment 2 TomFoolery408 2012-06-09 22:12:59 UTC
Created attachment 120603 [details]
install.log

Here is the install log you requested.
Comment 3 TomFoolery408 2012-06-09 22:14:18 UTC
Please note that prior to logging this install attempt I did NOT set the $DISPLAY variable.
Comment 4 Jiri Rechtacek 2012-06-21 12:36:24 UTC
It's intention. Without setting DISPLAY environment variable (it's usually set by X11 Window Manager if starting X session) you cannot open any UI component). If you access your vbox via ssh, use can use --silent mode of NetBeans installer.
Comment 5 Jan_Parcel 2013-11-07 22:54:49 UTC
I struggled with this on one of my Solaris machines when my exported
DISPLAY was :0

But it had worked OK on a different machine.

First I had no DISPLAY set, then it complained about X11 DISPLAY
set DISPLAY=:0 ; export DISPLAY

Then got this java.lang error

Tried a lot of things that didn't work.

Finally set display to myhostname:0

That worked.

(running with --verbose is how I finally found it )
Comment 6 Peripeteia 2017-02-06 18:01:04 UTC
I ran into this and after reading what you wrote, I tried the --verbose option. Then, on a hunch, I thought it had something to do that I was running the installer as root in a gnome terminal I opened under my own user name. I suspect that's the cause.