Applet HelloWorld class HelloWorld could not be loaded.

Dear Colleagues
I am very new to Java, but have followed the advice of a number of people here and read one or two tutorials.
I thought I had managed to write my first HelloWorld! application/applet in that I can see HelloWorld.java and HelloWorld.class in the bin folder in MS-DOS, but once I had coded the HTML page to view it (both in Netscape and Explorer) I received the following message in the status bar:
Applet HelloWorld class HelloWorld could not be loaded.
The HTML page has been written exactly as it should be and the HelloWorldApp class file, the HelloWorldApp (File for Forte for Java), the HelloWorld (File for Forte for Java), and the HTML page are all located together in the bin folder of the jdk1.3.1 directory.
In my C:\Autoexec.bat file I have the following:
SET BLASTER=A220 I7 D1 T2
SET SNDSCAPE=C:\WINDOWS
rem - By Windows Setup - C:\WINDOWS\COMMAND\MSCDEX.EXE /D:CD1
@ECHO OFF
PROMPT $P$G
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.3\BIN
SET PATH=%PATH%;C:\WINDOWS\Twain_32\Scanwiz;C:\WINDOWS\Twain\Scanwiz
SET PATH=%PATH%;C:\PROGRA~1\COMMON~1\MDLSHA~1\ISIS
SET CLASSPATH=
Any advice on what I am doing wrong would be appreciated.
Thank you.
Steve Higham

The could be several things here that are the problem. Firstly doe the applet runb using the appletviewer. If so then there is problably a problem with the HTML code you are using to call the Applet. If the HTML file esides in a different directory than the .class file then make sure the 'CODEBASE' field points to the directory containing the .class file. Can you post your HTML for us to see?
Ash..

Similar Messages

  • Class could not be loaded

    Appserve says it cannot load the class.
    It sya some problem with class directory and choosing class file

    Hi
    I am having the same problem. It occurs for me whilst creating an EJB and adding the contents. All the classes have been compiled correctly but it says...
    The Class (<<Class Name>>) Could Not Be Loaded
    Please consult the online help for assistance in setting up the class root directory and choosing class files.
    Thanks

  • Applet ... could not be loaded !

    Hi !
    This is a variation of the problem with my applet-Servlet communication.
    I placed the applet in Apache doc-root and commented out following :
    // package com.omh.security;
    I then replaced the code in the servlet as follows :
    out.println("<applet width=200 height=120");
    out.println("< name=\"LoginApplet\"");
    out.println("< codebase=\"/\"");
    out.println("< code=\"var/www/html/LoginApplet\">");
    out.println("<param name=\"servlet\" value=\"" +
    svreq.getRequestURI() + "\">");
    out.println("<param name=\"id\" value=\"" +
    session.getId() + "\">");
    out.println("</applet>");
    ... etc
    Using Netscape to load the servlet, I still encounter the error :
    Applet var/www/html/LoginApplet class var.www.html.LoginApplet could not be loaded.
    Can anyone tell me where I have gone wrong or what I might have missed ???
    I am too close and involved to see the wood for the trees at the moment.

    Hi !
    I forgot to mention ... svreq.getRequestURI() returns following string :
    /servlet/com.omh.security.AppletLogin
    Hence my suspicions that the line
    out.println ("<param name=\"servlet\" value =\"" + ...etc
    may be spurious...
    THX

  • Class or interface could not be loaded?

    I am very new to coding in general, ini fact this is my fisrt crack at it, and right now I'm just going off a tutorial, but for whatever reason i'm having an issue that the class/interface not being loaded.
    My code right now is:
    class ship extends MovieClip
         var velocity;
         function onLoad()
              velocity = 10;
         function onEnterFrame()
              _x = _x + velocity;
    Essentailly when I test play this i should see my object going across the screen, but instead it does nothing and i get the error:
    "Symbol=Ship, layer=1, frame=1, Line 1      The class or interface 'Ship' could not be loaded."
    I do have the .fla and .as saved in the same file, but does it matter where that file is located, or have I come across some basic mistake or..?
    I'm using ActionScript2.0 for this.
    (Very secondary, but does anybody have any tutorial reccomendations?)

    You have the .fla and .as saved in the same file? Or the same folder?
    Also you will notice that you have
    class ship extends MovieClip
    But it looks like for your symbol you have given it a defintion of Ship. (Caps matter!)
    Your code should be capitalized, as should the name of the Ship.as file. You will notice that the Flash classes all start with a cap and that instances start with lowercase letters. You don't have to do this, but it makes it easier to know what is what.
    As a recommendation I would recommend the book by Keith Peters, Making things move. And also unless you have an overwhelming need to learn AS2, I would recommend skipping it and moving right to AS3.

  • The MBean class could not be loaded by the default loader repositor

    Im trying to register a custom MBean to WebLogic 8.1 Sp5 Application Server but i get this error :
    The MBean class could not be loaded by the default loader repository .
    i have make a servelt that registers the Managed Bean i added the MBean jar file to the WAR file of the servelt and I added the Mbean jar file to the CLASSPATH in setEnv.cmd for the domain
    the code for the servlet is this :
    try
    Hashtable props = new Hashtable();
    props.put( Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory" );
    props.put( Context.PROVIDER_URL, "t3://naiden:7001" );
    props.put( Context.SECURITY_PRINCIPAL, "admin" );
    props.put( Context.SECURITY_CREDENTIALS, "secret:)" );
    InitialContext ctx = new InitialContext( props );
    mbeanServer = ( MBeanServer )
    ctx.lookup( "weblogic.management.server" );
    logger.debug( "domain name e " + mbeanServer.getDefaultDomain() );
    catch( NamingException ne )
    error=ne.getMessage();
    logger.debug( ne.getMessage() );
    try {
    ObjectName objName = new ObjectName("isy:Name=NaidenStandardMBean");
    mbeanServer.createMBean("samplembean.Standard", objName);
    catch( MalformedObjectNameException ex )
    }

    You should use jre 1.5 or 1.6 for migmon from 7.10. It looks like your jre is 1.4.

  • The class or interface 'MouseEvent' could not be loaded

    I am creating a swf file that would get populated with images
    and text taken entirely from an XML file from the local folder. All
    i need to do now is manouver between the images using a click of a
    button. Say there are some images lined up one below the other and
    there would be a button on screen.. on click of which the focus has
    to shift from one image to the other. To achieve this functionality
    i have created a Movie Clip that would act as the BG for the Images
    to show that the image is in Focus. I check the current location of
    the Movie Clip on cick of the button and then set the next location
    of the Bg movie clip accordingly.
    The Functionality of moving/changing coordinates of the movie
    clip on click of a button works fine when done separately in a new
    file, but when combined with the code where the XML gets parsed and
    the Imges are set on the UI, it gives me an error -- "The class or
    interface 'MouseEvent' could not be loaded"
    I'm adding my code below
    RPNext_btn.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent):void {
    trace("here");
    var XCo = SwatchBGRght_MC.x;
    var YCo = SwatchBGRght_MC.y;
    trace("X coordinate::"+XCo);
    trace("Y coordinate::"+YCo);
    if(YCo==145){
    //SwatchBGRght_MC.y = 282.2;
    if(YCo==282.2){
    //SwatchBGRght_MC.y = 419.4;
    if(YCo==419.4){
    //SwatchBGRght_MC.y = 145;
    __________________________________

    Well, I guess I'll have to see the code, that is NOT
    functioning, to track this error down.

  • The class or interface could not be loaded...?

    I'm doing a simple link code. I've tried many diferrent ways to do this but this error keeps comming up saying The class or interface could not be loaded...
    home_btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(event:MouseEvent):Void
    navigateToURL(new URLRequest("my site"));
    This is the most recent method I've tried in doing this. I've tried changing the publishing settings of the document to and from Action Script 3.0- using an import command. But thats too complicated. I know this is simple... but can anyone please help?

    Thanks, but whenever I change the publish settings back to As3 the flash tween gets caught in a loop and it doesn't end, it just re-runs the swf over and over again. I'm not sure how to fix this problem now.
    I even tried to add a stop(); at the beginning of the new script.
    stop();
    home_btn.addEventListener(MouseEvent.CLICK, gotoURL);
    function gotoURL(event:MouseEvent):Void
    navigateToURL(new URLRequest("http://www.knirv.com"));
    I'm still getting an error message saying "1046: Type was not found or was not a compile-time constant: Void."...However, I'm sure your advice to upload to my server will solve this. Much thanks for the expertise

  • The class or interface 'flash.utils.ByteArray' could not be loaded.

    Hi all, I am trying to use some of the new functionality that
    is available in AS3 and I keep getting an unfathomable error
    message. The code that I am using is at the bottom of this post.
    No matter what I do I keep getting the following error when I
    compile this code
    The class or interface 'flash.utils.ByteArray' could not be
    loaded.
    And the source line is
    var pixels:ByteArray = srcBmp.getPixels( new
    Rectangle(0,0,imageWidth,imageHeight) );
    Can anybody see what I am doing wrong here? This is driving
    me crazy!!

    I AM THE ULTIMATE CHUMP!!!!!
    I finally figured it out, you can tell I am new to Flash!
    Anyway, I assumed that by selecting ActionScript 3.0 in my
    Actions frame then this ias the version that would be used when the
    movie was exported. However I have found out that I should also
    have been setting the ActionScript version to 3.0 in the Publish
    settings page to. I feel like such an idiot!!!

  • The class or interface 'mx.remoting.Service' could not be loaded.

    Flash 8 was reinstalled on a new machine upgrade. Application
    that uses flash remoting is unable to be updated after this new
    install error when trying to publish application is :
    The class or interface 'mx.remoting.Service' could not be
    loaded.
    is this because I do not have the "Flash Remoting for Flash 8
    ActionScript 2.0" extension installed?
    and if so do I have to re purchase this or can it be
    reinstalled from the old hard drive of the replaced machine? would
    it be a *.mpx file?
    The application works but I can't publish any new
    modifications without getting this error. and this just started
    since my machine was upgraded.. so I hope this is the problem...
    thanks in advance....
    chuck

    The flash remoting components are on adobes website for
    download
    here

  • Class could not be loaded or is not an entity class

    Hello,
    I am using Berkeley DB JE 3.3.75 in a web application. I have a class which extends a Persistent class.
    @Entity
    public class XMessageInMemoryAdapter extends XMessage implements Serializable {
    private static final long serialVersionUID = 1L;
    @SecondaryKey(relate=Relationship.MANY_TO_ONE)
    private int objectStatus;
    @Persistent
    public class XMessage extends YMessage implements Serializable {
    private static final long serialVersionUID = 1L;
    @SecondaryKey(relate=Relationship.MANY_TO_ONE)
    private String serviceVariant;
    @Persistent
    public abstract class YMessage implements Serializable {
    private static final long serialVersionUID = 42L;
    @PrimaryKey
    private String messageGroupId;
    But when I try to query the PrimaryKey, an IllegalArgumentException is thrown:
    java.lang.IllegalArgumentException: Class could not be loaded or is not an entity class: com.mycompany.common.model.XMessageInMemoryAdapter
    at com.sleepycat.persist.impl.Store.checkEntityClass(Store.java:1175)
    at com.sleepycat.persist.impl.Store.getPrimaryIndex(Store.java:313)
    at com.sleepycat.persist.EntityStore.getPrimaryIndex(EntityStore.java:257)
    at com.mycompany.common.memorydb.impl.StoreRefImpl.queryPrimaryIndex(StoreRefImpl.java:49)
    at com.mycompany.common.memorydb.dao.MessageDao.init(MessageDao.java:67)
    And here is the MessageDao ve StoreRefImpl ( I deleted irrelevant parts )
    public class MessageDao {
         protected void init() {
              primaryKey = this.store.queryPrimaryIndex(String.class, XMessageInMemoryAdapter.class);
    public class StoreRefImpl {
         public PK queryPrimaryIndex(Class<?> indexClass, Class<?> objectClass) {
              try {
                   PrimaryIndex index = this.store.getPrimaryIndex(indexClass, objectClass); // this is where the exception is thrown
                   return new PKImpl(index);
              } catch (DatabaseException e) {
                   throw new DBException(e);
    Everything working nice in my local machine but when we deploy the application on test server we keep getting this exception.
    Thank you for your help.

    Hi Yusuf,
    This sounds like a classpath problem on your test server. This exception will occur if the class cannot be loaded.
    Please make sure that the je-3.3.75.jar file and your app classes or jar are in the same classpath location, and that there are not multiple copies in different locations. For example, if you're deploying a servlet, be sure to place the JE jar and your app jar in the same lib directory.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • AS 2 Error: The class or interface 'Event' could not be loaded.

    Hey, I'm new to the forums and I have problems with Flash that i just cant fix. I have this error that keeps telling me how "The class or interface 'Event' could not be loaded. The error is on the 5th line of the code:
    1  stop();

    3  addEventListener(Event.ENTER_FRAME, preLoad);

    5  function preLoad(e:Event):void{
    6      var bytestoLoad:Number = loaderInfo.bytesTotal;
    7      var numberLoaded:Number = loaderInfo.bytesLoaded;
    8      if(bytestoLoad == numberLoaded){
    9          removeEventListener(Event.ENTER_FRAME, preLoad);
    gotoAndStop(2);
    } else {
    _root.preLoader.preLoaderFill.scaleX = numberLoaded/bytestoLoad;
    _root.preLoader.bytesPercent.text = Math.floor(numberLoaded/bytestoLoad*100) + "%";
    I know that the code is for AS3 but I cant switch to AS3 atm and I need the same code, but for AS2. So, can anyone convert this for me? By the way, this is supposed to be a preloader and I am putting this on the 1st frame. I have so extensions (.as), just the .fla file.
    Also, I am using the newest Flash, Adobe Flash CS6.

    Just search Google for an AS2 preloader tutorial instead of trying to convert AS3 to AS2.

  • Class or Interface could not be loaded error on standard components

    I am trying to learn how to use Event Listeners. I created a
    TextInput field on my screen. In action script I have:
    var my_ti:TextInput;
    var enterHandler:Object = new Object();
    enterHandler.enter = function(e:Object):Void{
    trace("entered field");
    my_ti.addEventListener("enter", enterHandler);
    When I test the movie, I receive the error:
    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: The
    class or interface 'TextInput' could not be loaded.
    var my_ti:TextInput;
    Any tips on fixing this would be greatly appreciated. All
    references that I have found to this error message have to do with
    paths. Given that this is a standard component, I don't know why it
    would be failing or what path to add, if that is indeed the
    problem.
    TIA

    You have the .fla and .as saved in the same file? Or the same folder?
    Also you will notice that you have
    class ship extends MovieClip
    But it looks like for your symbol you have given it a defintion of Ship. (Caps matter!)
    Your code should be capitalized, as should the name of the Ship.as file. You will notice that the Flash classes all start with a cap and that instances start with lowercase letters. You don't have to do this, but it makes it easier to know what is what.
    As a recommendation I would recommend the book by Keith Peters, Making things move. And also unless you have an overwhelming need to learn AS2, I would recommend skipping it and moving right to AS3.

  • The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded with jws

    Hi,
    When I execute my executable jar file, there is no problem but when I open my .jnlp with web start, I obtain my main frame but the queries don't work.
    I have the error message below :
    Java Web Start 1.2 Console, d�marr�e Fri Apr 25 14:55:59 CEST 2003
    Environnement d'ex�cution Java 2 : version 1.3.1 par Sun Microsystems Inc.
    See com.borland.dx.dataset.DataSetException error code: BASE+83
    com.borland.dx.dataset.DataSetException: The driver: sun.jdbc.odbc.JdbcOdbcDriver could not be loaded. This could be a problem with the driver itself, or that the driver is not found on the classpath.
         at com.borland.dx.dataset.DataSetException.a(Unknown Source)
         at com.borland.dx.dataset.DataSetException.driverNotLoadedAtRuntime(Unknown Source)
    Anyone can help me please?

    Almost certainly, you need to include the JAR file that contains the class in question as a resource in your JNLP. My personal preference for this kind of thing is to have an entry that actually points to another JNLP for the driver (database, e-mail, whatever you need).
    In general, the whole application has to be packaged so that JWS is aware of all the pieces (other than the JRE)--one other thing I've done in some cases is put the driver JAR's into the jre/lib/ext directory.
    HTH,
    J M Craig

  • Import flash.geom.Rectangle could not be loaded?

    Hello everyone,
    I currently have a .fla file in folder a/. I have a .as
    called CollisionDetection file under a/com/gskinner/sprites/.
    In the .fla, I am importing the .as like this:
    import com.gskinner.sprites.CollisionDetection;
    In my .as file, I have these four lines of code in the
    beginning:
    import flash.display.BitmapData;
    import flash.geom.ColorTransform;
    import flash.geom.Matrix;
    import flash.geom.Rectangle;
    However, for each of them, it tells me that
    "The class or interface 'flash.geom.BitmapData' could not be
    loaded."
    Any ideas of why this is happening?
    Thanks,
    iloveisrael.

    Hello,
    I figured out what my error was: I was using Flash Player 7
    instead of Flash Player 8.
    Stupid mistake, but it made everything work perfectly.
    Thanks,
    iloveisrael.

  • Getting error "LifeCycle implementation could not be loaded. JBIFW2004"

    I deployed a BC, getting following error in the server.log file :
    [#|2006-01-04T19:17:31.144-0800|SEVERE|sun-appserver-pe8.1_02|com.sun.jbi.framework|_ThreadID=10;|JBIFW2003: LifeCycle implementation could not be loaded. JBIFW2004: Required class ms.sun.jbi.binding.file.FileBindingComponent was not found.|#]
    Can you please help me about how to resolve this issue?
    Another Question:
    Can two BC can have same "endpoint-name" value declared in their endpoints.xml on same domain?

    Thanks,
    I followed the instructions, and getting follow relavent records in server.log
    [#|2006-01-05T09:55:38.913-0800|FINEST|sun-appserver-pe8.1_02|com.sun.jbi.framework|_ThreadID=10;|JBIFW0206: Custom ClassLoader - loadClass: ms.jbi.binding.file.FileBindingComponent|#]
    [#|2006-01-05T09:55:38.913-0800|FINEST|sun-appserver-pe8.1_02|com.sun.jbi.framework|_ThreadID=10;|JBIFW0206: Custom ClassLoader - loadClass: ms.jbi.binding.file.FileBindingComponent|#]
    [#|2006-01-05T09:55:38.923-0800|SEVERE|sun-appserver-pe8.1_02|com.sun.jbi.framework|_ThreadID=10;|JBIFW2003: LifeCycle implementation could not be loaded. JBIFW2004: Required class ms.jbi.binding.file.FileBindingComponent was not found.|#]

Maybe you are looking for