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 65145 - java.lang.NoClassDefFoundError: org.netbeans.upgrade.AutoUpgrade
Summary: java.lang.NoClassDefFoundError: org.netbeans.upgrade.AutoUpgrade
Status: CLOSED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Import Settings (show other bugs)
Version: 5.x
Hardware: PC Windows ME/2000
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-26 20:39 UTC by pcgoober
Modified: 2008-12-22 20:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pcgoober 2005-09-26 20:39:50 UTC
After installing 

netbeans-5_0-daily-bin-200509251800-windows-25_Sep_2005_1800.exe

I run the exe to startup the IDE and receive this error in the log. The IDE
never shows and the nb & jvm hang open.

Do you really have a getKlass() function instead of getClass() -> (see line 2).

Using Sun JSDK v1.4.2_08
NB 4.1 is installed on the same system.


*********************************************************************
java.lang.NoClassDefFoundError: org.netbeans.upgrade.AutoUpgrade
	at org.netbeans.core.startup.Main.getKlass(Main.java:462)
	at org.netbeans.core.startup.Main$1ImportHandler.run(Main.java:513)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:171)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Comment 1 pcgoober 2005-09-26 22:36:36 UTC
I uninstalled that build and pulled down the 9/22 build. It runs fine so either
I had a bad download or there is something fishy in the start of the 9/25 build.
Comment 2 Jan Chalupa 2005-09-27 07:53:16 UTC
Re: "getKlass()" - yes, we do have such fancy names in the code. Nothing to
worry about.

However, it does seem that your installation might have been corrupted somehow
and the o.n.u.AutoUpgrade class could not be found.

Yarda, over to you. Any other ideas?
Comment 3 Marian Mirilovic 2005-09-27 07:59:44 UTC
I can't reproduce it with 
NB 5.0 beta (200509261930) , JDK 1.4.2_09 
on Linux RH9/ Gnome

BTW: the build you've been testing on is not a Beta ! So this isn't
Beta-stopper, but we need to check it.
Comment 4 Jaroslav Tulach 2005-09-27 08:23:14 UTC
Less important things first - sure we have getKlass as getClass is final in  
java.lang.Object...  
  
The problem you describe is due to the fact that the class cannot be found in 
nb5.0/core/org-netbeans-upgrader.jar maybe the file is corrupted. 
 
Anyway I changed the code to just report the error can continue. 
 
/cvs/core/startup/src/org/netbeans/core/startup/Main.java,v  <--  Main.java 
new revision: 1.7; previous revision: 1.6 
done 
Checking in 
startup/test/unit/src/org/netbeans/core/startup/NonGuiHandleImportOfUserDirTest.java; 
/cvs/core/startup/test/unit/src/org/netbeans/core/startup/NonGuiHandleImportOfUserDirTest.java,v  
<--  NonGuiHandleImportOfUserDirTest.java 
new revision: 1.2; previous revision: 1.1 
 
Comment 5 pcgoober 2005-09-27 14:57:33 UTC
Thanks fellas. Just thought I would report it in case it wasn't a corrupt
download since I haven't had one in quite some time.
Comment 6 Marian Mirilovic 2005-09-28 21:05:52 UTC
*** Issue 65256 has been marked as a duplicate of this issue. ***
Comment 7 Tomas Danek 2005-12-12 12:19:25 UTC
unreproducible, fix was "prevention", closing..