Getting "random" NoClassDefFoundError in applet

I'm developing a JDK 1.3.1 applet (JApplet), and I test it by loading it in Netscape Navigator (6.1). However, I frequently get the message "Applet <applet> notinited" in the browser, and when I look at the Java Console I see the message "java.lang.NoClassDefFoundError:" followed by one of my classes. If I close and restart the browser, I sometimes can get the applet to run and I sometimes get the NoClassDefFoundError again (sometimes on a DIFFERENT class!). Sometimes, I have to try 6 or 8 times before I can get the applet to run, and then it runs just fine.
Does anyone know why this is happening? My platform is a 1 GHz Pentium 3 with 256 Mb of memory running Windows 2000 SP2.
Thanks for any help,
Carl Rapson

I could do that, except I would have to deal with setting up the plug-in. I was trying to avoid that, in the interest of simplicity - plus, I don't seem to have any security issues with Navigator 6 (I don't have to sign the applet to get it to run). I guess I will give IE a try and see if it makes a difference.
Thanks,
Carl Rapson

Similar Messages

  • Random NoClassDefFoundError problems

    I hope some can point me in the right direction.
    I seem to be getting random NoClassDefFoundError errors when trying to run my application. This is since I upgraded to 1.4.2_08.
    If I try to run the same applet again I get a different NoClassDefFoundError. I know the classes exist because they are all found if I start the applet several times.
    If I put the classes in a .jar file it works all the time. Running on java 1.5 works too (I can't use 1.5 because it's too slow!).
    Has anyone experienced this before?
    Much appreciated

    Yes the applet writer CAN choose the version of JVM. For example, if the applet is to be used by one company on an intranet where all the client machines are pre-built. This is the case in this instance.
    Well it's quite tedious to make changes to software, then have to build a jar file, clear out your broweer cache just to ensure that the changes you made work. So 'my solution' isn't an adequate solution.
    Thanks for your help though.

  • NoClassDefFoundError in applet

    hi, my applet does compile and run I get the NoClassDefFoundError but it does run. When I move the .class to another folder, it doesn't run.
    Here is what I get:
    Java Plug-in 1.6.0_03
    Using JRE version 1.6.0_03 Java HotSpot(TM) Client VM
    User home directory = C:\Users\Gabo
    java.lang.NoClassDefFoundError: SequencerSound
         at Stochastic1Applet.init(Stochastic1Applet.java:87)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)any idea on how to fix it?

    Hi,
    I had a similar problem. After moving the httml file one step down in the directory tree, the error is gone. However, I still have a problem to load the JDBC driver from Applet, but the same driver loads fine from JFrame.
    appletviewer -J-Djava.security.policy=test.policy TestApplet.html
    I have set following permission in test.policy file.
    grant {
    permission java.security.AllPermission;
    Then, I get following error.
    java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:168)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:119)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:164)
    I have loaded the driver as below.
    try {
    Class.forName("org.gjt.mm.mysql.Driver");
    }catch(Exception e){e.printStackTrace();}
    DriverManager.getConnection(url, username, password);
    I am pretty sure that I have set the CLASSPATH variable correctly, otherwise it would NOT have worked from JFrame.
    Does anybody out there know why it doesn't work from Applet although it works from Frame?
    Thanks in advance.

  • My iphone 3gs is acting weird, every time i get a call or if i try and call some one my iphone gets random black lines down it) so what can I do to fix it?

    My iphone 3gs is acting weird, every time i get a call or if i try and call some one my iphone gets random black lines down it) so what can I do to fix it?

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • I get random "Mario Bros" sound clips playing when I open Firefox.

    I get random "Mario Bros" sound clips playing when I open Firefox.
    == This happened ==
    Every time Firefox opened
    == I rebooted my computer ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; FunWebProducts; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.4; OfficeLivePatch.0.0; .NET CLR 3.0.30729)

    More like whoever coded the add-on is an idiot. Google used a brilliant piece of HTML5 to bring the iconic Pacman to the masses for its 30th Anniversary, and not only do people not recognize its ubiquitous sounds, people are annoyed at Google and Firefox, not the creators of the add-on.
    No one did this on purpose, and the ones at fault are the ones who coded the Add-on. Now shut up, your problem is fixed.

  • Laptop Keyboard problem, some keys get randomly ignored

    Hello,
    This is a problem that occurs with all razer blade notebooks when running linux (does not occur in Windows 8); some keys get randomly ignored when you type at your normal speed, and it is very frustating especially when typing passwords or programming. At the moment we have to type very slowly in order to get all keystrokes caught. The keyboard has antighosting technology, maybe that info is useful.
    This is the further we went in this post:
    https://bbs.archlinux.org/viewtopic.php?id=161634
    In that post, a forum partner proposed to modify "drivers/hid/usbhid/hid-core.c" and set "interval = 1;" right after the mouse pooling interval was set, around line 1134 of the file. When we use that modified kernel, the keyboard feels a little better but i still get ignored keys when typing at normal speed.
    This are my usb devices:
    [cristobal@orion ~]$ lsusb -vv -d 1532:
    Bus 001 Device 003: ID 1532:0116 Razer USA, Ltd
    Couldn't open device, some information will be missing
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 0 (Defined at Interface level)
    bDeviceSubClass 0
    bDeviceProtocol 0
    bMaxPacketSize0 64
    idVendor 0x1532 Razer USA, Ltd
    idProduct 0x0116
    bcdDevice 1.00
    iManufacturer 1
    iProduct 2
    iSerial 0
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
    bDescriptorType 2
    wTotalLength 123
    bNumInterfaces 4
    bConfigurationValue 1
    iConfiguration 0
    bmAttributes 0xa0
    (Bus Powered)
    Remote Wakeup
    MaxPower 500mA
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 3 Human Interface Device
    bInterfaceSubClass 1 Boot Interface Subclass
    bInterfaceProtocol 2 Mouse
    iInterface 0
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.11
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 75
    Report Descriptors:
    ** UNAVAILABLE **
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0008 1x 8 bytes
    bInterval 8
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 0
    bAlternateSetting 1
    bNumEndpoints 1
    bInterfaceClass 0 (Defined at Interface level)
    bInterfaceSubClass 0
    bInterfaceProtocol 0
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x81 EP 1 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0040 1x 64 bytes
    bInterval 8
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 1
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 3 Human Interface Device
    bInterfaceSubClass 0 No Subclass
    bInterfaceProtocol 1 Keyboard
    iInterface 0
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.11
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 159
    Report Descriptors:
    ** UNAVAILABLE **
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x82 EP 2 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0010 1x 16 bytes
    bInterval 8
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 2
    bAlternateSetting 0
    bNumEndpoints 1
    bInterfaceClass 3 Human Interface Device
    bInterfaceSubClass 1 Boot Interface Subclass
    bInterfaceProtocol 1 Keyboard
    iInterface 0
    HID Device Descriptor:
    bLength 9
    bDescriptorType 33
    bcdHID 1.11
    bCountryCode 0 Not supported
    bNumDescriptors 1
    bDescriptorType 34 Report
    wDescriptorLength 71
    Report Descriptors:
    ** UNAVAILABLE **
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x83 EP 3 IN
    bmAttributes 3
    Transfer Type Interrupt
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0008 1x 8 bytes
    bInterval 8
    Interface Descriptor:
    bLength 9
    bDescriptorType 4
    bInterfaceNumber 3
    bAlternateSetting 0
    bNumEndpoints 2
    bInterfaceClass 255 Vendor Specific Class
    bInterfaceSubClass 240
    bInterfaceProtocol 0
    iInterface 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x01 EP 1 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Endpoint Descriptor:
    bLength 7
    bDescriptorType 5
    bEndpointAddress 0x02 EP 2 OUT
    bmAttributes 2
    Transfer Type Bulk
    Synch Type None
    Usage Type Data
    wMaxPacketSize 0x0200 1x 512 bytes
    bInterval 0
    Does anyone know, based on their experience, what could be the cause of the keyboard malfunction?
    Does this type of error occur for some other notebooks too?
    It would be great if someone could point me in the right direction for where to look.
    Last edited by labotsirc (2013-08-31 17:27:38)

    Jeroen)Mathon wrote:
    A lot of people i know that  are running arch with a Razorblade keyboard are seeming to be having a lot of problems.
    Did the same happened to another keyboard like an (HP,Dell,Logitech,etc).
    For all i know (Not a lot) I'm thinking it might have something to do with your usb?(Worst answer ever!)
    Did you try a different port.
    Please let me know if this worked .
    On the side(What kernel version are you running?)
    Hi. Well in this case the problem is with the Razer Blade Laptop's keyboard, therefore i cannot choose another port. You gave me an idea however, i will try to get any usb keyboard, plug it into the razer blade and make sure it works so that i can discard any major problem.

  • Getting random LCK_M_SCH_M on convert and bulk insert task

    I starting getting random LCK_M_SCH_M locks with huge wait time, which hung my etl proccess.
    The ssis package runs like this:
    I have 4 containers that run in parallel and do the same thing:
    -Convert a tab delimited file from unicode->utf8
    -Truncate the table (within a foreach loop)
    -Bulk insert the data
    Also transactionoption is set to NotSupported.
    What could be causing the lock?
    All foreach loops do not overlap ragarding tables/files.
    Do they contest somehow?
    Elias

    The truncate table command imposes the schema lock so you will have to not to run in parallel this task
    Arthur
    MyBlog
    Twitter

  • How to get database connection in applet

    Hi,
    I am trying to prepare database connection in applet. After preparing connection with database it'll read same values from table.
    At the time of development it works fine. I have used esclipse IDE for coding and testing.
    But when I try to call that applet from browser. It is giving ClassNotFound exception.
    Does anybody know How to get database connection in applet ?
    Please help me if anybody know solution for this.
    Thanks,
    Rajesh

    As per my knowledge is conserned
    1 u can get the database connection in a jsp page and u send the result set as param to the applet and u can use retrieved values as if they were of the same applet if u r interested i can send the db connetion coding for jsp my id [email protected]

  • How to get rid of "Java Applet Window"  from JDialog

    Hi Friends,
    I am developing an applet that uses JDialog class. I want to get rid of "Java Applet Window" that appears at the bottom of my JDialog.
    When I run my application from the web, I do not want that to show up.
    Is there any way of doing it ?
    Many thanks in advance.
    Ramesh

    http://search.java.sun.com/search/java/index.jsp?qp=&nh=10&qt=%22Java+Applet+Window%22&col=javaforums&x=36&y=9

  • How do I get random shuffle to work in an album?

    How do I get random shuffle to work in an album and why am I unable to turn off the music Photos selects? I used to listen to my iTunes playlist while I was watching an album in random shuffle mode.

    There is no random shuffle in Photos.
    http://www.apple.com/feedback/macosx.html is the place for feature requests and feedback

  • I am getting random crashes, but every time I go to downloads. Is there a fix here?

    When I use Firefox I get random crashes but if I try to Download it will crash every time. I get no warning just this program has stopped working and is shutting down then I will get to you wish to restore your session when I restart Firefox or I get there is already a version of Firefox running even when it has been shut down and I have to restart my computer to get Firefox back up. I think this might be a conflict with adobe flash or one of these programs but I can not find any info on this problem.

    This article should help - [[Firefox crashes when trying to download a file]]

  • Java update & now getting random music playing

    My mac updated java and now right after that I'm getting random music playing songs that aren't on my mac every once in a while. Like about 7 in the last hour. This is crazy.
    How do we stop this?
    Java for os x 2013-005 1.0
    safari version 6.0.5
    Mac OS X
    Version 10.8.5
    Dave

    This happened to me this morning too!  Unfortunately at 4:00 am, I had been about to change my alarm settings and it started happening.  Pushing the upper right hand button temporarily stopped it but it kept happening - had to turn my phone off and take battery out.  I have no songs on my torch and it was a song I had never heard before.  I checked that I hadn't accidentally turned on you tube or something but that was off - I can't figure it out!  Any ideas?

  • When selecting playback from itunes library on Mac (purchased album from itunes!) i get random song played from that album and my selected song disappears from view. Nothing to do with shuffle.Mac OSX 10.6.8. Help, doing my nut in!!

    When selecting playback from itunes library on Mac (purchased album from itunes!) i get random song played from that album and my selected song disappears from view. Nothing to do with shuffle.Mac OSX 10.6.8. Help, doing my nut in!!

    What is your iTunes version?
    If iTunes 11, have you checked the "Up Next" list? If it is not empty, try if clearing "UP Next" will help:

  • Partial Get via   IE Browser/applet failing ... need help !?

    Partial Get via IE Browser/applet failing ... need help !?
    I recall someone saying that IE client would not receive a partial get initiated by http URL with setRequestProperty("range","bytes=2-");
    Can anyone elaborate on why the client seems to balk at the returned result and the getinputStream seems to result in a FileNotFoundException
    Do I have to use sockets ??????

    Partial Get via IE Browser/applet failing ... need help !?
    I recall someone saying that IE client would not receive a partial get initiated by http URL with setRequestProperty("range","bytes=2-");
    Can anyone elaborate on why the client seems to balk at the returned result and the getinputStream seems to result in a FileNotFoundException
    Do I have to use sockets ??????

  • My Brand New iMac Gets Random lines On Screen

    Hiya,
    I Bought a custom 27" iMac top of the range,
    after a while somenights the screen goes like this [See Pictures
    i get random lines and things not loading properly as in the reflection of the dock, menu bar and black lines around applications?
    I dont know what it is or what is happening,
    Please help i spent so long getting the money for my imac and now its not working 100%

    Emalexander89 you are welcome to install Photoshop CS4 on your new Mac.  You can download a fresh copy of the installation files at Download CS6 products.

Maybe you are looking for

  • Activation error but no messages

    Hi I have a DSO into which 2 transformations are happening. We have a issue with space and processing power, but only during the testing. The first transformation brings over about 800 000 entries, then I activate the DSO, the 2nd transformation brin

  • Re: How can I change from one subscription to anot...

    I understand that.  But my question was "How can I transfer the money / credit that was paid for the subscription and use that as credits instead? My mom purchased the subscription no more than an hour ago and has not made a single call with it b/c i

  • IMovie Trouble

    Hello I'm having  little troubel with iMovie. I'm making a movie which have over 700 photos in it including comments. What i did was adding all 700 photos at once and adding comments to each photo and make chapters, so that i could edit it later. But

  • How to Reverse MB1A (261) ?

    Dear Experts I am posting in wrong process order in MB1A (movement type 261) . How to Reverse ?

  • Solid state drive= wrong choice for the newmacbookpro 2010?

    Hi i've been exchanging on the logic pro forum about the ssd vs the hdd serial to configure a macbook pro for logic. I would love to hear your point of view or experience about that . also since it's the apple forum i hope there should be some advice