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 60904 - Java application doesn't started.
Summary: Java application doesn't started.
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-13 07:37 UTC by caribbeanboy
Modified: 2008-12-22 22:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Here's My Message Log. (138.75 KB, text/plain)
2005-07-18 23:15 UTC, caribbeanboy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description caribbeanboy 2005-07-13 07:37:14 UTC
Everytime I try to run a Java applet, it is saying that "Start: Applet is not
initialized".  Also, my java applications are not launching either.  I tested my
programs using another IDE and they're working so I'm not sure why it is not
working on NetBeans 4.1

I uninstalled the IDE and I deleted all directories associated with Netbeans,
including the user dir.  After that, I did a clean installation of Netbeans 4.1
and went through the  installation (everything installed in default dirs) and it
did see the version of JAVA (J2SE 5.0).  I went through the usual "creating a
project" (HowtoProgram) steps and renamed the default package of the project to
HowToProgam.  After that, I copy and paste a working application into the IDE
and saved it under a name.  Then I tried both "build -> build main project and
run -> run file (since it was just one file)" step and just "run -> run file". 
But the application doesn't launch in netbeans as it does in other IDE's and via
windows command prompt. Here is version of Netbeans I'm using and the output I'm
getting.

Specs: product version Netbeans 4.1 (Build 200505031930)
IDE versioning: IDE/1 spec=5.9.1 impl=200505031930
Java 1.5.0_04

init:
deps-jar:
Compiling 1 source file to C:\Documents and Settings\CaribbeanBoy\My
Documents\NetBeans_projects\HowToProgram\build\classes
compile-single:
run-single:
java.lang.NoClassDefFoundError: HowToProgram/TimeTest1
Exception in thread "main" 
Java Result: 1
BUILD SUCCESSFUL (total time: 4 seconds)

Im pretty sure that my class path is setup correctly, but maybe im missing
something.
Comment 1 zikmund 2005-07-13 08:15:42 UTC
It is most probably general problem if it fails for all java application.
Did you try run simple 'HelloWorld' java project?
Comment 2 caribbeanboy 2005-07-13 23:32:45 UTC
Yes.  I've tried using both system.out.println and joption.pane but I'm still
getting the "java.lang.NoClassDefFoundError: ...Exception in thread
"main"...Java Result: 1"

And for the applet viewer,  i'm still getting the "applet is not initialized"
message.
Comment 3 Jaromir Uhrik 2005-07-18 15:47:09 UTC
Could you please attach the messages.log. It can be found in your
userdir/var/log/messages.log.
Comment 4 caribbeanboy 2005-07-18 23:15:29 UTC
Created attachment 23145 [details]
Here's My Message Log.
Comment 5 Jaromir Uhrik 2005-07-19 09:58:21 UTC
IMHO it is openide.loaders problem. Feel free to reassign to other component.
Comment 6 Marian Mirilovic 2005-07-20 14:17:23 UTC
Hi caribbeanboy,
I am sorry but I am absolutely lost, probably there is more than just one problem :

1. Your stack traces show that the problem is in one of your module (plug-in)
integrated to NetBeans), looks like there has been an module and it added some
actions to menu/toolbars or set shortcuts, this module isn't available after the
restart and that's the reason of all NoClassDefFoundError in your log file.

2. We've tried to create new JApplet (HelloWorld) and it works without any problems.

Probably we missed something, so if you can provide us steps to reproduce from
the scratch (start NetBeans with new userdir and create new JApplet / Hello
World or anything else) we would be very thankful. 

So thank you for your time and please reopen this issue after providing more
informations. Thanks in advance.