NoClassDefFoundError & Applet

Hi !
I ve got a problem with a java applet ...
I try to transform an application into an applet : as i run it into JBuilder, the applet runs normally
As i call it from an HTML file, i've got an "NoClassDefFoundError" , and nothing happens ... ( that should mean the classloader is looking for a method or a constructor he does not find)
I also try to make an HelloWordApplet (taken from a book ! ) with only one class, but the problem is the same !
Can some tell me what's wrong !
nb : my applet has a "init" method, even a "start" and "stop" !
Thanks in advance

thanks for your answer
i don't think that it comes from my browser (but i'm not sure)
I downloaded the java plug-in directly for it to be installed in the browser but i ve the same error.
Does it mean it has nothing to do with the brwser ???

Similar Messages

  • Signed Applet: NoClassDefFoundError

    I'm using a signed applet with a jar file. I have five class file in the jar file but when I try to run the applet in appletviewer it shows this error message:
    java.lang.NoClassDefFoundError: Project1$5
         at Project1.showFieldCombo(Project1.java:328)
         at Project1.ComboBoxShow(Project1.java:472)
         at Project1.init(Project1.java:489)
         at sun.applet.AppletPanel.run(AppletPanel.java:344)
         at java.lang.Thread.run(Thread.java:484)
    The jar file is in my classpath and all of the class files are listed in manifest file.
    (when I change the code to a JFrame and run it as an application it works but I want to connect a local database in a JApplet code and I have to use signed applet but it dosn't work)
    How can I solve this problem?
    Thanks a lot
    Payam

    The source code of showFieldCombo is (line num:328):
         public void showFieldCombo ()
              db.getTable("SELECT Fields FROM Fields ");
              Vector items = new Vector();
              for (int i=0; i<db.rows.size(); i++)
                   items.addElement( db.rows.elementAt( (i)));
              //--- Field Combo Box
              mycom.initFieldCombo(items);
              mycom.fieldCombo.addActionListener(new ActionListener()
                   public void actionPerformed ( ActionEvent e2)
                             if (reservoirTag == 1)
                                  c.remove(mycom.reservoirCombo);
                                  reservoirTag = 0;
                             if (wailTag == 1)
                                  c.remove(mycom.wailCombo);
                                  wailTag = 0;
                             showReservoirCombo();
              mycom.addFieldCombo(c);
              //show();
              validate();
              goToReport();
         }

  • JXL -- Applet -- NoClassDefFoundError

    First off, I have no clue if this is the correct place to post this, and I'm sorry if it isnt but I couldnt find a forum more specific.
    I am building a project that will be an applet and ran from my school's web server. The program will work similarly to how freerice.com does their thing, only it will include latin vocabulary and there is no free rice for the poor.
    In order to hold all of the vocab words/user data I have decided to use an excel sheet. This is because the data has already been created and it is in an excel sheet, so its just easier that way. So since I will be using an excel sheet for my databasing, I found jxl to be a potentially useful tool.
    I ran a test/learning program to figure out how jxl works, the possible issues I would run into, ect. THAT program was an application. So after getting to a place where I feel comfortable with jxl, I decided to make the necessary changes to my applet to include jxl. However I had some issues which I will talk about below. Here is the code and output for each program.
    Test/Learning Application Code:
    //Imports
    import java.io.File;
    import java.util.Date;
    import jxl.*;
    import jxl.write.*;
    import java.io.*;
    public class Excel
        //Main
        public static void main(String[] args) throws Exception
             //Read
             //Get workbook
             Workbook workbook = Workbook.getWorkbook(new File("myfile.xls"));
             //Get sheet
             Sheet sheet = workbook.getSheet(0);
             //Get Cells
             Cell a1 = sheet.getCell(0,0);
              Cell b2 = sheet.getCell(1,1);
              Cell c2 = sheet.getCell(2,1);
              //Get cell content
              String stringa1 = a1.getContents();
              String stringb2 = b2.getContents();
              String stringc2 = c2.getContents();
              //Print out cell content
              System.out.println(stringa1);
              System.out.println(stringb2);
              System.out.println(stringc2);
              //Close workbook
             workbook.close();
             //Write
             //Get workbook
             Workbook workbook2 = Workbook.getWorkbook(new File("myfile.xls"));
             //Create copy
             WritableWorkbook copy = Workbook.createWorkbook(new File("myfile.xls"), workbook2);
             //Get sheet to be written to
             WritableSheet sheet2 = copy.getSheet(0);
             //Get cell to be written to
              WritableCell cell = sheet2.getWritableCell(1, 2);
              //Write
              if (cell.getType() == CellType.LABEL)
                     Label l = (Label) cell;
                     l.setString("modified cell");
              //Write and Close workbook
              copy.write();
              copy.close();
              //Read again to check for changes
              workbook = Workbook.getWorkbook(new File("myfile.xls"));
             sheet = workbook.getSheet(0);
             a1 = sheet.getCell(0,0);
              b2 = sheet.getCell(1,1);
              c2 = sheet.getCell(2,1);
              stringa1 = a1.getContents();
              stringb2 = b2.getContents();
              stringc2 = c2.getContents();      
              System.out.println(stringa1);
              System.out.println(stringb2);
              System.out.println(stringc2);
             workbook.close();
    }Output:
    (0,0)
    (1,1)
    (2,1)
    (0,0)
    (1,1)
    (2,1)That is exactly what I wanted to get, so there are no issues here.
    Applet Code (edited for space and importance):
    //Imports
    import jxl.*;
    import jxl.write.*;
    import java.io.File;
    import java.io.*;
    public class Host
         ArrayList<User> userArr = new ArrayList<User>();
         JApplet app;
        public Host(JApplet j)
             app = j;
             readUsers();
             for(int i=0;i<userArr.size();i++)
                  User user = userArr.get(i);
                  System.out.println(user.getName()+" "+user.getPassword()+" "+user.getLevel()+" "+user.getPoints());
        //Method having trouble
        public void readUsers()
             try
                    //Runtime Error Occurring here
                  Workbook workbook = Workbook.getWorkbook(new File("data.xls"));
                  Sheet sheet = workbook.getSheet(1);
                  for(int i=0;i<sheet.getRows();i++)
                       Cell nameC = sheet.getCell(i,0);
                       Cell passC = sheet.getCell(i,1);
                       Cell lvlC = sheet.getCell(i,2);
                       Cell ptsC = sheet.getCell(i,3);
                       String name = nameC.getContents();
                       String password = passC.getContents();
                       int level = Integer.parseInt(lvlC.getContents());
                       int points = Integer.parseInt(ptsC.getContents());
                       userArr.add(new User(name,password,level,points));
                  workbook.close();
             catch(Exception e)
                  System.out.println(e);
    }Output (RUNTIME error):
    java.lang.NoClassDefFoundError: jxl/Workbook
        at Host.readUsers(Host.java:47)
        at Host.<init>(Host.java:35)
        at Vocab.init(Vocab.java:26)
        at sun.applet.AppletPanel.run(AppletPanel.java:424)
        at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: jxl.Workbook
        at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:210)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:143)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 5 moreSo I'm not sure why this is happening here. The only significant difference between the two projects is that one is an application and the other is an applet.
    I understand what the error is saying, but I cant seem to find out how to fix it. I just wanted to provide as much information as possible in hope for better solutions. Any help is greatly appreciated.

    Aussiemcgr wrote:
    Ok, well just for clarification, it is possible to have the library and excel file on the server correct? I seriously doubt it. I would expect that the library you are using requires access to a file. The applet runs on the client thus the file system that the library will use will be that of the client.
    So at some point the excel file will need to be on the client. Alternatives to this
    1. The library supports a stream rather than a file. Then you would need to write quite a bit of code to create a stream that loads the data across the network.
    2. The client OS has a mapped drive with the server. This is an OS feature not a java feature. It is also unsecure on the internet so only suitable, at best, on a private network.
    This is because the excel file will be both written to and read from by each user. I think you need to start over from the architecture and design point of view.
    Consider this what exactly happens in an excel file when two users try to write to it at the same time. This is NOT a java question.
    I already told you that the easiest way to do is to have a copy of the file on the client machine. Your requirement above completely rules this out. The only possible solution using only an applet requires a mapped drive. And that has the previously mentioned limitations. And even then you are going to need a design that deals with that.
    A better solution
    1. Use an actual java server, not just an applet.
    2. Move the data into a real database.

  • Signed Applet  gives "java.lang.NoClassDefFoundError" message

    I am using a Signed Applet to access resources on the disk and as well as to write on to the disk.
    My Applet class "Applet.class" is bundled along with other required jar files(SignedA.jar , SignedB.jar) into a single jar file "SignedApplet.jar". The external jar files have also been signed using the same key.
    When I run this applet, it gives an error " java.lang.NoClassDefFoundError" for the classes that Applet.class tries to access in the external jar file SignedA.jar
    Please help

    You need to set your classpath correctly. Search the forums for NoClassDefFoundError and you will find hundreds of posts on this topic. Many of them have answers explaining how to set your classpath.

  • Java.lang.NoClassDefFoundError: com/sun/j3d/utils/applet/MainFrame         at HelloUniverse.main(Compiled Code)

    I'm getting this error
    java.lang.NoClassDefFoundError: com/sun/j3d/utils/applet/MainFrame
    at HelloUniverse.main(Compiled Code)
    I receive this error when I try to run the demos that are in the /usr/java1.1/demo folder.
    I followed the directions to install java3d. I installed the java3d binary in the top part of
    the JDK directory then ran the binary. Everything installed o.k., but I cannot run
    any of the demos. I also have J2SE 1.2.2_05a, JDK 1.1.8_10, and.
    JRE 1.1.8_10 installed. My operating system is SunOS 5.6, Solaris 2.6. My workstation
    is an Ultra 5 with 374mb ram.
    Here is part of the install intructions.
    Place the java3d1_2-solsparc.bin file into the top level directory
    of the JDK you wish to install Java 3D into. Execute the
    java3d1_2-solsparc.bin file (ex: sh java3d1_2-solsparc.bin).
    After installation, you may remove this file.
    The Java 3D(TM) SDK includes several demo programs that can
    verify correct installation. Assuming your Java 2 SDK is installed
    at ~/Solaris_JDK_1.2.2_05, try the following:
    cd ~/Solaris_JDK_1.2.2_05/demo/java3d/HelloUniverse
    java HelloUniverse
    Note: Many more demos are available under the demo/java3d/
    directory. Some of the demos require a maximum memory
    pool larger than the default in java. To increase the
    maximum memory pool to 64 meg, add the following command
    line options to java or appletviewer:
    java: -mx64m
    appletviewer: -J-mx64m
    You do not need to include the J3D jar files in your CLASSPATH,
    nor do you need to include the J3D shared libraries in your PATH.
    You should include "." in your CLASSPATH or ensure that CLASSPATH
    is not set.
    I'm not sure how to set set/unset the CLASSPATH and I'm not sure if I was supposed to
    place the binary file in the /usr/java1.1 or /usr/java or /usr/java1.2 directory.
    Can anyone help?
    tomjones

    -- If jar size isn't an issue, I recommend using thick "weblogic.jar" instead of the thin "wl*.jar" jars. The thick jar is a better performer, is used by more customers, and has more features. Otherwise:
              -- It might help to use the thin client jars from a later service pack - several service packs have been released since SP2, or you might even try using jars from a recent 9.2 SP or even 10.0.
              -- Also, check to see if the 1.4.2 JVM is up-to-date and/or try switching from the Sun JVM to the JRockit JVM (or vice-versa).
              -- Finally, it might help to check if your XP environment matches your Linux environment (JVM command-line, classpath, etc).
              -- Also: The IIOP newsgroup may also have some advice. The thin client uses the IIOP protocol even when a "t3:" URL is specified by the application.
              Tom

  • 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

  • [applet] CODEBASE = NoClassDefFoundError

    Hi,
    I've got a big problem:
    Look, it's my html file (applet part):
    <APPLET codebase="votes/" code = "AppletVote.class" width = "500" height = "250" ></applet> (not work)
    BUT
    <APPLET  code = "votes/AppletVote.class" width = "500" height = "250" ></applet> (work)
    why????
    The tree:
    C:.
    |   AppletVote.htm
    |
    \---votes
            AppletVote.class
            AppletVote.jar
            Categorie.class
            FrameJeux.class
            Jeux.class
            ListeCategorie.class
            PanelCategorie.class

    Sorry, I forget the error:
    [core]java.lang.NoClassDefFoundError: AppletVote (wrong name: votes/AppletVote)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:502)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:148)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
    at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
    at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)
    at sun.applet.AppletPanel.createApplet(AppletPanel.java:567)
    at sun.applet.AppletPanel.runLoader(AppletPanel.java:496)
    at sun.applet.AppletPanel.run(AppletPanel.java:293)
    at java.lang.Thread.run(Thread.java:536)

  • NoClassDefFoundError when trying to run an applet

    Hi,
    I'm new to java and am having a problem when I try to run an applet. It compiles OK, but when I try to run it using the appletviewer the console window shows this message:
    java.lang.NoClassDefFoundError: HelloApplet (wrong name: fund2/lesson1/HelloApplet)
    The last bit (fund2/lesson1) is the last bit of the path to the HelloApplet.
    and the applet window shows:
    Start: applet not initialized
    The code for the applet is:
    import java.applet.Applet;
    import java.awt.*;
    public class HelloApplet extends Applet {
         public void paint(Graphics graArg) {
              graArg.drawString("Hello World!", 50, 100);
    }The code for the html is:
    <html>
    <h1>Hello Applet Example</h1>
    <object code="HelloApplet.class"
            height=200
            width=300>
    </object>
    </html>Not even the H1 title appears in the applet window.
    The Classpath variable does contain the path to my applet folder and both the class and html files are in the same folder under this path.
    I hope someone can suggest where I'm going wrong as I've been tearing my hair out trying to get this working.
    Thanks in anticipation.
    Debbie-Leigh

    The H1 tag wouldn't appear in the applet anyway. It would appear in the HTML page itself. I think the appletviewer may ignore all non-applet markup though.
    The ".class" shouldn't be in the HTML. The code attribute refers to a class name, not the file name of the class. However I get the impression that the appletviewer and a lot of browsers just ignore the ".class", even though it's technically incorrect.
    I believe that the object tag doesn't take a code attribute. The code attribute is used in the applet tag. I suspect that's your problem. Look up and read the docs on this site re: proper use of the applet or object or embed or whatever the hell the tag you're supposed to use is, for details. I may be and probably am misremembering.

  • 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.

  • Applets: DriverManager.registerDriver  NoClassDefFoundError

    Basically, I can get a Java Program to work, but an applet with the same code fails. I'm running j2sdk 1.4.1.02 under Windows 2000, with Oracle 9i and Internet Explorer 6.0.
    CreateJoltData is just a plain Java program; JoltData is an Applet (Included below). Both use the same statement to register the Oracle Driver. It's the one that is used in all of the books and the Oracle webpages:
    DriverManager.registerDriver(new Oracle.jdbc.OracleDriver());
    I can connect and access an Oracle database from the Java program (CreateJoltData)...but not the Applet (JoltData).
    If I use the Classpath: .;C:\oracle\ora92\jdbc\lib\classes12_g.zip:
    - The program compiles and executes just fine.
    - The Java Applet compiles but gets a runtime error that usually means that the Classpath is not set correctly:
    java.lang.NoClassDefFoundError: orable/jdbc/OracleDriver.
    If I use the Classpath: .;C:\oracle\ora92\jdbc\lib\ojdbc14_g.zip
    (which Oracle recommends), both the program and the applet get a compile error:
    Package Oracle.jdbc does not exist.
    Any help would greatly be appreciated!!!
    Donna
    ------------------ JoltData.java:
    /* JoltData
    compile: javac JoltData.java
    execute: JoltData.html
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.*;
    public class JoltData extends Applet {
    String database= "Coffee";
    String username = "Donna";
    String password = "v1v1enne";
    Connection conn=null;
    // Constructor
    public JoltData () {
    System.out.println("username " +username );
    System.out.println("password " +password );
    registerDB();
    connectDB();
    // Register Driver
    private void registerDB() {
    System.out.println("registerDB " );
    try {
    DriverManager.registerDriver(new
    oracle.jdbc.OracleDriver());
    System.out.println("registerDB done.");
    } catch (Exception e) {
    System.err.println("problems registering .");
    // Connect To Database
    private void connectDB() {
    System.out.println("connectDBURL." );
    try {
    conn = DriverManager.getConnection
    ("jdbc:oracle:oci8:@" + database,
    username,
    password);
    // Create a statement
    Statement stmt = conn.createStatement ();
    stmt = conn.createStatement();
    System.out.println("connectDB: Connection done. ");
    } catch (Exception e) {
    System.err.println("connectDB: problems connecting to
    database. ");
    public void main (String[] args) {
    JoltData converter = new JoltData ();
    }

    After much (MUCH) hair pulling, I have my Applet accessing my database (and, more troubles to come, I'm sure :-) . Without Rauf Sarwar's help, I'd probably be bald!
    Here's what the final solution is (first example line is generic; the second, is my setting):
    - Make sure that the Classpath includes an entry for the Oracle drivers:
    .;[driver].zip
    .;C:\oracle\ora92\jdbc\lib\classes12.zip
    - The subdirectory containing the java class file (executable) should also
    contain the Oracle driver.
    - HTML file needs to contain: archive=[driver].zip
    <APPLET CODE="[name].class" archive="[driver].zip ">
    <APPLET CODE="JoltData.class" archive="classes12.zip ">
    - Java.policy needs a line for SocketPermissions:
    permission java.net.SocketPermission "[hostname]", "connect,resolve";
    permission java.net.SocketPermission "Waltz", "connect,resolve";
    - Java.policy needs a line for PropertyPermission for Oracle:
    permission java.util.PropertyPermission "oracle.jserver.version",
    "read, write";
    Oh, and, in the "catch" put the following line...it helped immensely!!
    System.out.println(e.toString());
    Again, lotsa thanks goes to Rauf Sarwar for this solution!!!
    Donna

  • NoClassDefFoundError trying to load an applet

    First off I am developing on a macintosh with os x and eclipse. I am developing a web site which I am serving from my home/sites/ directory. The problem is I am doing something wrong in my java code because the applet gets this error when trying to load. Currently I have the php file with html in the sites directory and I copied the class file into that directory. no luck. If I copy the php/html file into the eclipse workspace directory it works. What I want and feel I will need to have happen is to have the class files in the sites/project directory - what do I need to do to get this to work. Is it a setting in eclipse with the classpath or ???
    Any help you can give will be greatly appreciated.
    Thanks,
    Dean

    If it's a class not found error, then it's an issue with the HTML invoking the applet -- basically, you're not telling it where to find the java class.
    You should probably ask on an Eclipse forum about how to configure it to run an applet using PHP. It's not clear what you're trying to accomplish -- you just want to run it locally for testing?

  • NoClassDefFoundError Exception when i run my applet in IE 5.5

    hi,
    i have written an applet which work witn UTF-8 files. i compile it with jdk 1.4 and i can run it with JRE2 but it doesn't start in computers with IE 5.5 with it's default JRE.
    i want to use it in a website so how can i change it or what can i do to make it work in any java enable browser.
    Regards !.

    i have written an applet which work witn UTF-8 files.No problem. Your applet uses UTF-8 encoding.
    i compile it with jdk 1.4 and i can run it with JRE2The applet is JDK 1.4 compiled.
    but it doesn't start in computers with IE 5.5 with
    it's default JRE.What is default JRE? The latest browsers don't have the java capability themselves. Rather they have a plug-in with your system's JRE. Do you mean 'default JRE' as this one? If yes, you should not have any problem. If yes, and you still have problem, check the settings in your browser. Enable Applets to run.

  • NOClassDefFoundError:  Listing   ----in applet

    hi,
    i got this typep of ERROR not exception what it mean
    plz, i am waithing here
    <applet code=aviplay.class widht=300 height=300 >
    <param name="File" value="mpgFile.mpeg">
    <applet > */
    import java.applet.*;
    import javax.media.*;
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import javax.media.protocol.*;
    public class aviplay extends java.applet.Applet implements ControllerListener {
    Player player = null;
    URL url = null;
    String fileName = null;
    DataSource ds = null;
    public void init() {
    MediaLocator ml = new MediaLocator("F:\\Param\\player 06-11\\recycleW.wav");
    System.out.println("the protocol going to used "+ml.getProtocol());
    System.out.println("the protocol removed string "+ml.getRemainder() );
    try{
    url = new URL(getDocumentBase(),(String)getParameter("File"));
    try{
    ds = Manager.createDataSource(url);
    }catch(IOException e)
    System.out.println("EXCEPTION "+e);
    try{
    player = Manager.createRealizedPlayer(ds);
    }catch(NoPlayerException npe)
    System.out.println("The exception for no player "+npe);
    }catch(CannotRealizeException cre)
    System.out.println("The exception for no player "+cre);
    }catch(IOException ioe)
    System.out.println("The exception for no player "+ioe);
    }catch(Exception e)
    System.out.println("EXCEPTION "+e);
    public void start()
    public void stop()
    public void destroy()
    public synchronized void controllerUpdate(ControllerEvent e)

    Since you use the applet tag I am assuming the msjvm runs your applet, you should compile it in the
    following way:
    javac -tartget 1.1 *.java
    If that is not the case than the applet tag must be wrong:
    http://java.sun.com/docs/books/tutorial/applet/appletsonly/appletTag.html
    This is an old page, where it says applet it should say object.

  • NoClassDefFoundError  when loading Applets from IIS5.0

    Hi
    I am having trouble loading applets from IIS 5.0. Here is my html code
    <applet code="Appli/Loader.class" width="100%" height="100%">
    </applet>
    All my clases and packages reside in the same directory from where this html is loaded.
    The trouble is that it behaves erratically. At times the Applet works fine and at times, the browser cannot locate some class.
    The funny part is this behaviour is not consistent. Some times the browser is able to load all the classes and the applet function very well.
    Any suggestion/advice/tip will be great help
    Thanks

    Add the codebase parameter and see if it works.
    <applet code="Appli/Loader.class" codebase="DIRECTORY_WHERE_YOUR_CODE_RESIDES" width="100%" height="100%">
    </applet>

  • Error during generation of the WSDL:  BUILD FAILED java.lang.NoClassDefFoundError: com/sun/javadoc/Type

    When I create an EJB Transport Business Service, after selecting the jar that has the EJB 2.1 artefacts (Remote, Home, etc) the oepe plugin fails and can't continue.
    As I understand it seems that there is a problem with the classpath of ant build.xml  that oepe creates inside folder /tmp/alsbejbtransport/ to compile the bs and generate the wsdl. I checked if tools.jar is in the classpath (in eclipse) and is included, so I can't figure out wich is the problem.
    I found this in Oracle, but not helps solve the problem:
    BEA-398120
    Error: The WSDL for the typed transport endpoint could not be accessed.
    Description
    There was a problem retrieving the WSDL from the typed transport service endpoint at the time of service registration
    Action
    Contact technical support
    This is the the full stacktrace that shows eclipse.
    Generate : Error during generation of the WSDL:
    BUILD FAILED
    java.lang.NoClassDefFoundError: com/sun/javadoc/Type
            at com.bea.util.jam.provider.JamServiceFactoryImpl.createSourceBuilder(JamServiceFactoryImpl.java:205)
            at com.bea.util.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:158)
            at com.bea.util.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:137)
            at com.bea.util.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
            at weblogic.wsee.util.JamUtil.parseSource(JamUtil.java:152)
            at weblogic.wsee.tools.anttasks.JwsLoader.loadJClasses(JwsLoader.java:186)
            at weblogic.wsee.tools.anttasks.JwsLoader.load(JwsLoader.java:75)
            at weblogic.wsee.tools.anttasks.JwsModule.loadWebServices(JwsModule.java:569)
            at weblogic.wsee.tools.anttasks.JwsModule.generate(JwsModule.java:369)
            at weblogic.wsee.tools.anttasks.JwsModule.build(JwsModule.java:256)
            at weblogic.wsee.tools.anttasks.JwscTask.execute(JwscTask.java:184)
            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
            at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:601)
            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
            at org.apache.tools.ant.Task.perform(Task.java:348)
            at org.apache.tools.ant.Target.execute(Target.java:357)
            at org.apache.tools.ant.Target.performTasks(Target.java:385)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
            at org.apache.tools.ant.Main.runBuild(Main.java:758)
            at org.apache.tools.ant.Main.startAnt(Main.java:217)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
            at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
    Caused by: java.lang.ClassNotFoundException: com.sun.javadoc.Type
            at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1400)
            at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1341)
            at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1088)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
            ... 27 more
    Total time: 0 seconds
    Eclipse Installation details:
    *** System properties:
    eclipse.application=org.eclipse.ui.ide.workbench
    eclipse.buildId=M20110909-1335
    eclipse.commands=-os
    linux
    -ws
    gtk
    -arch
    x86_64
    -showsplash
    -launcher
    {home}/Development/oepe-indigo/eclipse
    -name
    Eclipse
    --launcher.library
    {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so
    -startup
    {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    --launcher.overrideVmargs
    -exitdata
    1e418010
    -vm
    /usr/bin/java
    eclipse.home.location=file:{home}/Development/oepe-indigo/
    eclipse.launcher={home}/Development/oepe-indigo/eclipse
    eclipse.launcher.name=Eclipse
    [email protected]/../p2/
    eclipse.p2.profile=PlatformProfile
    eclipse.product=org.eclipse.platform.ide
    eclipse.startTime=1374623921455
    eclipse.vm=/usr/bin/java
    eclipse.vmargs=-Xms256m
    -Xmx768m
    -XX:MaxPermSize=512m
    -Dsun.lang.ClassLoader.allowArraySyntax=true
    -Dweblogic.home={home}/Oracle/Middleware/wlserver_10.3
    -Dharvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester
    -Dosb.home={home}/Oracle/Middleware/Oracle_OSB1
    -Dosgi.bundlefile.limit=750
    -Dosgi.nl=en_US
    -Dmiddleware.home={home}/Oracle/Middleware
    -jar
    {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    equinox.use.ds=true
    file.encoding=UTF-8
    file.encoding.pkg=sun.io
    file.separator=/
    guice.disable.misplaced.annotation.check=true
    harvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester
    http.nonProxyHosts=localhost
    java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
    java.awt.printerjob=sun.print.PSPrinterJob
    java.class.path={home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    java.class.version=50.0
    java.endorsed.dirs=/usr/lib/jvm/jdk1.6.0_45/jre/lib/endorsed
    java.ext.dirs=/usr/lib/jvm/jdk1.6.0_45/jre/lib/ext:/usr/java/packages/lib/ext
    java.home=/usr/lib/jvm/jdk1.6.0_45/jre
    java.io.tmpdir=/tmp
    java.library.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64/server:/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64:/usr/lib/jvm/jdk1.6.0_45/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
    java.protocol.handler.pkgs=null|com.bea.wli.sb.resources.url|com.bea.wli.sb.resources.jca.upgrade.url|weblogic.utils|weblogic.utils|weblogic.utils|weblogic.net|weblogic.net
    java.runtime.name=Java(TM) SE Runtime Environment
    java.runtime.version=1.6.0_45-b06
    java.specification.name=Java Platform API Specification
    java.specification.vendor=Sun Microsystems Inc.
    java.specification.version=1.6
    java.vendor=Sun Microsystems Inc.
    java.vendor.url=http://java.sun.com/
    java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
    java.version=1.6.0_45
    java.vm.info=mixed mode
    java.vm.name=Java HotSpot(TM) 64-Bit Server VM
    java.vm.specification.name=Java Virtual Machine Specification
    java.vm.specification.vendor=Sun Microsystems Inc.
    java.vm.specification.version=1.0
    java.vm.vendor=Sun Microsystems Inc.
    java.vm.version=20.45-b01
    javax.rmi.CORBA.PortableRemoteObjectClass=weblogic.iiop.PortableRemoteObjectDelegateImpl
    javax.rmi.CORBA.UtilClass=weblogic.iiop.UtilDelegateImpl
    jna.platform.library.path=/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib
    line.separator=
    middleware.home={home}/Oracle/Middleware
    oracle.eclipse.tools.weblogic.ui.isWebLogicServer=true
    org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
    org.eclipse.equinox.launcher.splash.location={home}/Development/oepe-indigo/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
    org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info
    org.eclipse.m2e.log.dir={home}/workspace/pragma/.metadata/.plugins/org.eclipse.m2e.logback.configuration
    org.eclipse.update.reconcile=false
    org.omg.CORBA.ORBClass=weblogic.corba.orb.ORB
    org.omg.CORBA.ORBSingletonClass=weblogic.corba.orb.ORB
    org.osgi.framework.executionenvironment=OSGi/Minimum-1.0,OSGi/Minimum-1.1,OSGi/Minimum-1.2,JRE-1.1,J2SE-1.2,J2SE-1.3,J2SE-1.4,J2SE-1.5,JavaSE-1.6
    org.osgi.framework.language=en
    org.osgi.framework.os.name=Linux
    org.osgi.framework.os.version=3.8.0
    org.osgi.framework.processor=x86-64
    org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2",osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6"
    org.osgi.framework.system.packages=javax.accessibility,javax.activation,javax.activity,javax.annotation,javax.annotation.processing,javax.crypto,javax.crypto.interfaces,javax.crypto.spec,javax.imageio,javax.imageio.event,javax.imageio.metadata,javax.imageio.plugins.bmp,javax.imageio.plugins.jpeg,javax.imageio.spi,javax.imageio.stream,javax.jws,javax.jws.soap,javax.lang.model,javax.lang.model.element,javax.lang.model.type,javax.lang.model.util,javax.management,javax.management.loading,javax.management.modelmbean,javax.management.monitor,javax.management.openmbean,javax.management.relation,javax.management.remote,javax.management.remote.rmi,javax.management.timer,javax.naming,javax.naming.directory,javax.naming.event,javax.naming.ldap,javax.naming.spi,javax.net,javax.net.ssl,javax.print,javax.print.attribute,javax.print.attribute.standard,javax.print.event,javax.rmi,javax.rmi.CORBA,javax.rmi.ssl,javax.script,javax.security.auth,javax.security.auth.callback,javax.security.auth.kerberos,javax.security.auth.login,javax.security.auth.spi,javax.security.auth.x500,javax.security.cert,javax.security.sasl,javax.sound.midi,javax.sound.midi.spi,javax.sound.sampled,javax.sound.sampled.spi,javax.sql,javax.sql.rowset,javax.sql.rowset.serial,javax.sql.rowset.spi,javax.swing,javax.swing.border,javax.swing.colorchooser,javax.swing.event,javax.swing.filechooser,javax.swing.plaf,javax.swing.plaf.basic,javax.swing.plaf.metal,javax.swing.plaf.multi,javax.swing.plaf.synth,javax.swing.table,javax.swing.text,javax.swing.text.html,javax.swing.text.html.parser,javax.swing.text.rtf,javax.swing.tree,javax.swing.undo,javax.tools,javax.transaction,javax.transaction.xa,javax.xml,javax.xml.bind,javax.xml.bind.annotation,javax.xml.bind.annotation.adapters,javax.xml.bind.attachment,javax.xml.bind.helpers,javax.xml.bind.util,javax.xml.crypto,javax.xml.crypto.dom,javax.xml.crypto.dsig,javax.xml.crypto.dsig.dom,javax.xml.crypto.dsig.keyinfo,javax.xml.crypto.dsig.spec,javax.xml.datatype,javax.xml.namespace,javax.xml.parsers,javax.xml.soap,javax.xml.stream,javax.xml.stream.events,javax.xml.stream.util,javax.xml.transform,javax.xml.transform.dom,javax.xml.transform.sax,javax.xml.transform.stax,javax.xml.transform.stream,javax.xml.validation,javax.xml.ws,javax.xml.ws.handler,javax.xml.ws.handler.soap,javax.xml.ws.http,javax.xml.ws.soap,javax.xml.ws.spi,javax.xml.ws.wsaddressing,javax.xml.xpath,org.ietf.jgss,org.omg.CORBA,org.omg.CORBA_2_3,org.omg.CORBA_2_3.portable,org.omg.CORBA.DynAnyPackage,org.omg.CORBA.ORBPackage,org.omg.CORBA.portable,org.omg.CORBA.TypeCodePackage,org.omg.CosNaming,org.omg.CosNaming.NamingContextExtPackage,org.omg.CosNaming.NamingContextPackage,org.omg.Dynamic,org.omg.DynamicAny,org.omg.DynamicAny.DynAnyFactoryPackage,org.omg.DynamicAny.DynAnyPackage,org.omg.IOP,org.omg.IOP.CodecFactoryPackage,org.omg.IOP.CodecPackage,org.omg.Messaging,org.omg.PortableInterceptor,org.omg.PortableInterceptor.ORBInitInfoPackage,org.omg.PortableServer,org.omg.PortableServer.CurrentPackage,org.omg.PortableServer.POAManagerPackage,org.omg.PortableServer.POAPackage,org.omg.PortableServer.portable,org.omg.PortableServer.ServantLocatorPackage,org.omg.SendingContext,org.omg.stub.java.rmi,org.w3c.dom,org.w3c.dom.bootstrap,org.w3c.dom.css,org.w3c.dom.events,org.w3c.dom.html,org.w3c.dom.ls,org.w3c.dom.ranges,org.w3c.dom.stylesheets,org.w3c.dom.traversal,org.w3c.dom.views,org.w3c.dom.xpath,org.xml.sax,org.xml.sax.ext,org.xml.sax.helpers
    org.osgi.framework.uuid=901615cd-f3f3-0012-11b6-a3bca4d97ac1
    org.osgi.framework.vendor=Eclipse
    org.osgi.framework.version=1.6.0
    org.osgi.supports.framework.extension=true
    org.osgi.supports.framework.fragment=true
    org.osgi.supports.framework.requirebundle=true
    os.arch=amd64
    os.name=Linux
    os.version=3.8.0-26-generic
    osb.home={home}/Oracle/Middleware/Oracle_OSB1
    osgi.arch=x86_64
    osgi.bundlefile.limit=750
    osgi.bundles=reference:file:javax.transaction_1.1.1.v201105210645.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.0.200.v20110502-1955.jar@1:start
    osgi.bundles.defaultStartLevel=4
    osgi.bundlestore={home}/Development/oepe-indigo/configuration/org.eclipse.osgi/bundles
    osgi.configuration.area=file:{home}/Development/oepe-indigo/configuration/
    osgi.framework=file:{home}/Development/oepe-indigo/plugins/org.eclipse.osgi_3.7.1.R37x_v20110808-1106.jar
    osgi.framework.extensions=reference:file:javax.transaction_1.1.1.v201105210645.jar
    osgi.framework.shape=jar
    osgi.framework.version=3.7.1.R37x_v20110808-1106
    osgi.frameworkClassPath=., file:{home}/Development/oepe-indigo/plugins/javax.transaction_1.1.1.v201105210645.jar
    osgi.install.area=file:{home}/Development/oepe-indigo/
    osgi.instance.area=file:{home}/workspace/pragma/
    osgi.instance.area.default=file:{home}/workspace/
    osgi.logfile={home}/workspace/pragma/.metadata/.log
    osgi.manifest.cache={home}/Development/oepe-indigo/configuration/org.eclipse.osgi/manifests
    osgi.nl=en_US
    osgi.nl.user=en_US
    osgi.os=linux
    osgi.splashLocation={home}/Development/oepe-indigo/plugins/org.eclipse.platform_3.7.1.v201109091335/splash.bmp
    osgi.splashPath=platform:/base/plugins/org.eclipse.platform
    osgi.syspath={home}/Development/oepe-indigo/plugins
    osgi.tracefile={home}/workspace/pragma/.metadata/trace.log
    osgi.ws=gtk
    path.separator=:
    securerandom.source=file:/dev/./urandom
    socksNonProxyHost=localhost
    sun.arch.data.model=64
    sun.boot.class.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/resources.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/rt.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/sunrsasign.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/jsse.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/jce.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/charsets.jar:/usr/lib/jvm/jdk1.6.0_45/jre/lib/modules/jdk.boot.jar:/usr/lib/jvm/jdk1.6.0_45/jre/classes
    sun.boot.library.path=/usr/lib/jvm/jdk1.6.0_45/jre/lib/amd64
    sun.cpu.endian=little
    sun.cpu.isalist=
    sun.desktop=gnome
    sun.io.unicode.encoding=UnicodeLittle
    sun.java.command={home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher {home}/Development/oepe-indigo/eclipse -name Eclipse --launcher.library {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505/eclipse_1407.so -startup {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar --launcher.overrideVmargs -exitdata 1e418010 -vm /usr/bin/java -vmargs -Xms256m -Xmx768m -XX:MaxPermSize=512m -Dsun.lang.ClassLoader.allowArraySyntax=true -Dweblogic.home={home}/Oracle/Middleware/wlserver_10.3 -Dharvester.home={home}/Oracle/Middleware/Oracle_OSB1/harvester -Dosb.home={home}/Oracle/Middleware/Oracle_OSB1 -Dosgi.bundlefile.limit=750 -Dosgi.nl=en_US -Dmiddleware.home={home}/Oracle/Middleware -jar {home}/Development/oepe-indigo//plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    sun.java.launcher=SUN_STANDARD
    sun.jnu.encoding=UTF-8
    sun.lang.ClassLoader.allowArraySyntax=true
    sun.management.compiler=HotSpot 64-Bit Tiered Compilers
    sun.os.patch.level=unknown
    svnkit.http.methods=Basic
    svnkit.library.gnome-keyring.enabled=false
    user.country=AR
    user.dir={home}/Development/oepe-indigo
    user.home={home}
    user.language=es
    user.name={username}
    user.timezone=America/Argentina/Buenos_Aires
    weblogic.home={home}/Oracle/Middleware/wlserver_10.3
    Thanks!!

    run this one in command prompt and then convert the applet using converter tool
    JC_HOME = C:\java_card_kit-2_2_2\bin\
    set CLASSES=%JCHOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;
    D:\NareshPalle\jcardRE\Smart\src>java -classpath %_CLASSES% com.sun.javacard.con
    verter.Converter -out EXP JCA CAP -exportpath .\exp -applet 0x0a:0x00:0x00:0x00:0x0e:0x01:0x02:
    0x03:0x04:0x05:0x06 PackageName appletName 0x01:0x02:0x03:0x04:0x05:0x0
    6:0x07:0x08 1.0
    or
    go to following directory and run the converter tool in command prompt
    step 1: cd C:\java_card_kit-2_2_2\bin\
    then run this command under the above directory
    step 2:converter -classdir E:\Pathof Your applet class file -out EXP JCA CAP -exportpath E:\path of exp files folder -applet AID PackageName AppletName PackAID major.minor no
    For more doubts mail me....
    *[removed by moderator]*
    Thanks and Regards
    NareshPalle
    Edited by: EJP on 31/03/2012 20:09: removed your email address. Unless you like spam and unless you think these forums are provided for your personal benefit only, posting an email address here serves no useful purpose whatsoever.

Maybe you are looking for

  • Report Painter Library: troubles with new field in the additional structure

    Hi, ALL! I'm  creating a new field in the Report Painter table  GLFUNCT. Do do it I created my field in the additional structure GLDBZ  for GLFUNCT and create an row in the T804C table for new field. Who has expirience in customizing using T804* tabl

  • Working on external monitor, dragging files glitches main monitor

    After installing 10.10 on my MBP 17" 2009 most things work all right. I have an 23" Apple HD attached. Every time I drag a file in finder the laptop screen glitches completely. It gets all garbled up. Also the menubar. Doesn't show on screenshot.

  • Image map in hidden DIV

    I've got an image map in a container div, which works fine... but when I use DW's behaviors to either hide or fade this div, the image map is still active... even though the container div (and thus image itself are hidden). Any thoughts are welcome..

  • Reg : Tcode for table maintance generator

    Hello,    I have created the Tcode for Table maintance generator of a table using SE93 which directly goes to the table maintaince generator. My requirement is if i open the tcode i  need to display the custom selection screen before going to the tab

  • Searching for the backslash character ("\") on the touchpad

    I just want to configure my wifi connection so I need to enter my network password. Problem is there is no backslash character "\" on the touchpad and this character is part of the network password !! On the touchpad we see or have access to three gr