JDK 1.4.2_10; problem with applet/classpath/OBJECT tag

I'm supporting an applet that needs to run in JDK 1.4.2_10 in order to work. (I don't own the code, so I can't fix the issue)
I'd like to force that particular applet to run under JDK 1.4.2_10, but allow other applets to run on the current default JVM.
I'm trying to do this by using the JDK's htmlconverter.exe utility to force the use of JDK 1.4.2_10. That part is working as expected, but I'm experiencing a side effect.
The problem is that, when I use the OBJECT tag instead of the APPLET tag, the browser attempts to download the class with this URL
http://hostname.here.com/app.testing/app.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class
instead of this URL
http://hostname.here.com/app.testing/app.testbed/classes/appls/DOLARS/user/Applet.class
The second URL works; the first does not. When I use the APPLET tag, it generates the second URL and downloads the class successfully.
I'd like to a) use the OBJECT tag. b) get it to use the correct URL to download the Applet.class file. What do I need to do to make this happen?
Thanks,
Tom Valesky

Here's the exception I'm getting (slightly sanitized):
Java Plug-in 1.4.2_10
Using JRE version 1.4.2_10 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\tvalesky
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to
load: class appls/DOLARS/user/Applet.class not found.
java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class
     at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
     at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
     at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://hostname.com/DOLARS.testing/dolars.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class
     at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
     at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPrivileged(Native Method)
     ... 7 more
Exception: java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class

Similar Messages

  • When installed JDK but I have problem with System vars may install bundle

    When installed JDK but I have problem with System vars may install bundle [netbeans&JDK] WITHOUT UNISTALLING initial JDK or needed uninstall first ?

    With the word 'automatically', yes you do need pulseaudio. I'm sure you could cook up some udev or related rule to do that in Alsa, but pulseaudio would be easier.

  • Problem with database schema objects in the entity object wizard

    Hi All,
    When creating a new entity object, I am facing a problem with database schema objects in the entity object wizard, database schema objects (check boxes for tables,synonyms...) are disabled. Actually I am using a synonym but I am not able to select the synonym check box.
    Can any of you folks tell me how to enable the database schema objects (check boxes for tables,synonyms...).
    Thanks in Advance.
    Raja.M

    Make sure your using rite version of jdeveloper..
    Make sure your using apps schema and check whether your able perform DML operations in the schema vis sql developer.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                           

  • Facing lot of problems with the DATA object  -- Urgent

    Hi,
    I am facing lot of problems with the data object in VC.
    1. I created the RFC initially and then imported the data object in to VC. Later i did some modifications to RFC Function module,and when i reload the data object, I am not able to see the new changes done to RFC in VC.
    2. Even if i delete the function module, after redeploying the IVIew, results are getting displayed.
    3. How stable is the VC?
      I restarted the sql server and portal connection to R3 is also made afresh.... still i am viewing such surprise results..
    please let me know what might be the problem.

    Hi Lior,
    Are u aware of this problem.
    If yes, please let me know...
    Thanks,
    Manjunatha.T.S

  • Problem with Copied Business Object : SELFITEM

    Hi,
    sub:    Problem with Copied Business Object : SELFITEM
    I want to use changed selfitem BOR for carbon copy functionality. For it, i copied the BOR : SELFITEM. it is giving error
    In SWI2_DIAG it is showing like this.
    Work item  cannot be read                                                
    Work item 000000639770: Object  method SWW_BI_EXECUTE_S cannot be executed
    The problem is with COPYING The Business Object. Because , generally we extend BOR ,not copy. But i did copy.
    Please help me regarding this.
    Balaji.T.

    hi Martin,
    The problem may not be in method. because simply we copied the BO:SELFITEM into ZSELF . And i want to test this for a mail at first , whether copied BOR  is working or not.The mail is not triggering . it is saying that it is Error.
    WF_BATCH error...
    I can see error in Tx: SWI2_DIAG ,
    this is Error :
    Work item 000000639770: Object  method SWW_BI_EXECUTE_S cannot be executed
    Once it is rectified i can modify the method in BO:ZSELF.
    Thank you in Advance..
    Balaji.T.

  • Still Having Problems With Applets!!!!

    First i'd like to thank all who responded to my last post regarding a downloadable copy of the J2SE API Documentation. I have downloaded it and am quite content.
    I am still, however having a problem with my applets (all applets at that). Like i said before. I can view any applets i want through the command prompt using appletviewer. My problem is residing in execution directly through Microsoft Internet Explorer 5.x.
    When i open the .html file containing my applet, the file loads in the browser but the applet does nothing. When i mouseover the applet a message is displayed in the browser's status bar stating "loading class. classname: class not found".
    I have tried every applet i can get my hands on including downloaded applets from applet resource sites (even the example applets that came with the JDK1.4 when i downloaded it). They all react the same way, but will execute fine with the direct command prompt reference to appletviewer.
    It's getting very irritating. I have tries everything including setting the classpath in the command prompt. I'm loosing hope of a solution so if anyone might have an idea of what i need to do to fix my problem, or anything i am doing wrong or haven't done, please give me a hint or help.
    I am loving the java language and wish to further my knowledge and farmiliarity with it but i need to make sure everything works.
    Sorry for rambling and i thank whoever offers a reply in advance.
    ChanceH

    1. Check the codebase parameter in the html file that calls the applet
    for example if you have an applet named MyApplet.class inside a directory applets and your html file outside that directory you should have a codebase like this "applets/".
    <applet CODE="MyApplet.class" codebase="applets/" WIDTH=640
    HEIGHT=480 ALIGN= center>
    </applet>
    2. Be sure that your IE support java check the properties and enable the JVM.
    3. If your JVM version does not support Java 2, applets build on Java 2 will not work.

  • Problem with applet, popup window and focus loss

    Hi all !
    I've got a problem when my applet lose the focus. Let me explain :
    I've got an applet embed in a jsp page. There are several buttons in it that allow the user to open modal windows.
    The problem comes when the user gives the focus to another application whithout closing the modal window first.
    When he tries to come back to the web page owning the applet (using the task bar), then the modal window stays behind it and blocks any action on the applet.
    Does anyone know how to force the modal window to be displayed in front of the applet, even when the user plays with focuses ?
    Thank's in advance.

    thank you for your help, sils.
    I've written that code :
    * Cr�� le 31 ao�t 05
    package com.scor.apricot.web.rpc.ltnp.applet.listener.ldf;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    public class AppletWindowListener extends WindowAdapter {
         private JPanel panel;
         private JDialog dialogWindow;
         public AppletWindowListener(JPanel panel, JDialog dialogWindow) {
              this.panel = panel;
              this.dialogWindow = dialogWindow;
         public void windowActivated(WindowEvent e) {
              if (dialogWindow!=null && dialogWindow.isShowing())
                   dialogWindow.toFront();
    }Is that right ?
    I don't know how to add the listener, where must I put the addWindowListener method ? It seems that this method cannot be used with a JApplet object.

  • Problem with Applets in same page

    Hai to all,
    I am having a problem with GUI in applets
    My first class extends a JPanel named A_a
    import javax.swing .*;
    import java.awt.*;
    import java.awt.event.*;
    public class A_a extends JPanel
    JButton jb;
    JTextArea text;
    public A_a()
    setLayout(new FlowLayout());
    jb=new JButton("Click me");
    //add(jb);
    text=new JTextArea(5,20);
    add(text);
    public void text_appendText(String aa)
    System.out.println("I AM IN A_a");
    text.append(aa);
    text.revalidate();
    revalidate();
    /*public static void main(String ags[])
    A_a a = new A_a();
    JFrame frame=new JFrame();
    frame.getContentPane().add(a);
    frame.pack();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) { System.exit(0); }
    frame.setSize(200,200);
    frame.show();
    and then I am using other class B_b which is an applet carries a exitsing panel (A_a) inside it .
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class B_b extends JApplet
    public A_a a;
    public void init()
    a=new A_a();
    getContentPane().add(a);
    public void text_appendText(String aa)
    final String aaa =aa;
    new Thread(new Runnable()
         public void run()
              a=new A_a();
              a.setBackground(new java.awt.Color(255,200,200));
              System.out.println("I AM IN B_b");
              a.text.append(aaa);
              a.text.revalidate();
              getContentPane().remove(a);
              resize(500,500);
         }).start();
    and the I am using the second applet C_c in which by performing a button action the old panel A_a should get removed and replace the new panel D_a (which is not here )in the applet B_b with all other components(namely button , text fields etc)
    import javax.swing .*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.util.*;
    public class C_c extends JApplet implements ActionListener
    JButton jbt;
    JTextArea jta;
    public void init()
    getContentPane().setLayout(new FlowLayout());
    jbt=new JButton("Click me");
    jbt.addActionListener(this);
    getContentPane().add(jbt);
    jta=new JTextArea(5,20);
    getContentPane().add(jta);
    public void actionPerformed(ActionEvent ae)
    Enumeration e = getAppletContext().getApplets();
    Applet applets = null;
              while(e.hasMoreElements())
                   applets=(Applet)e.nextElement();
                   if ( applets instanceof B_b)
                             System.out.println("I AM CLASS C_c");
                             ((B_b)applets).text_appendText(jta.getText());          
                             ((B_b)applets).remove());
                             ((B_b)applets).getContentPane().add(D_d);
    both the applets C_c and B_b are in same browser page
    How can i achive that pls help .

    please help me its urgent for my project

  • Problem with Applet for Microsoft VM

    Hi there!
    I implemented an applet (first for SUN JVM 1.4.1_02) that has to communicate with a servlet via serialized objects. Therefore the applet sends a request and expects the response :
    //establish connection
    URLConnection l_con= l_url.openConnection();
    l_con.setUseCaches(false);
    l_con.setDoOutput(true);
    l_con.setDoInput(true);
    l_con.setRequestProperty("Content-Type", "application/x-java-serialized-object");
    //send request to servlet               
    ObjectOutputStream l_outputStream = new ObjectOutputStream(l_con.getOutputStream());     
    l_outputStream.writeObject(l_obj);                    
    l_outputStream.flush();               
    l_outputStream.close();
    //get response
    ObjectInputStream l_obInStr = new ObjectInputStream(l_con.getInputStream());
    l_response = (MyResponseClass)l_obInStr.readObject();
    l_obInStr.close();This works absolutely fine for the Sun VM. Now I have to use the Microsoft VM (because I don't want the users to install anything on their clients).
    I compiled the client classes like that:
    javac -target 1.1 classname.javaThe applet starts correctly but there is a problem with the communication that I recognized in the console:
    java.io.IOException: Cannot write output after reading input.
         at com/ms/net/wininet/http/HttpURLConnection.getOutputStream (HttpURLConnection.java)
         at myclass/MyApplet.callToServlet (MyApplet.java:109)
    Does anyone know what this error means ?
    Thanks a lot in advance.

    Hi there!
    I solved my problem by removing all the System.out.println-statements that I used for debugging issues.
    Anyway, I want to know if there are more restrictions concerning this matter for using the Microsoft VM instead of the Sun VM. (Because it HAS worked with the debugging statements with the Sun VM).
    Thank you.

  • Error loading class problem with applet (Newbie)

    Hi,
    I am new to Java applets. I try to display a simple sample. I put this into html file: <APPLET codebase="classes" code="NewApplet.class" width=350 height=200></APPLET>
    And it always appears one problem:
    Error loading class: NewApplet
    java.lang.NoClassDefFoundError
    java.lang.ClassNotFoundException: NewApplet
         at com/ms/vm/loader/URLClassLoader.loadClass
         at com/ms/vm/loader/URLClassLoader.loadClass
         at com/ms/applet/AppletPanel.securedClassLoad
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.processSentEvent
         at com/ms/applet/AppletPanel.run
         at java/lang/Thread.run
    Can anybody help please? Thanks in advance.

    Now I am able to load the applet on MAC OS X 10.4.11. This is due to network issue.
    Now my problem with the applet functionality. My applet will display the map image. Applet contains the navigation arrow keys at the top left of my applet. These keys will be used to navigate through the map.
    The problem is while user using the navigation buttons, the image got squash and stretch.
    This is happened only on MAC OS X 10.4.11 and Its working fine on PC and MAC OS X 10.5.5.
    Please anyone help in this regard. Thanks in advance.

  • Any Problem with my classpath?

    SET JAVA_HOME=C:\JDK1.4
    SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\JDK1.4\BIN
    I have set the classpath in my windows ME os
    however I can successfully compile the java program but I can't run it, it gives the following error when using the command line java classname
    Exception in thread "main" java.lang.NoClassDefFoundError:
    Is that any problems of my classpath???

    PATH is not CLASSPATH - they are different.
    The Windows path is a set of pointers that Windows uses to locate programs that you execute, like javac.exe and java.exe. This setting is explained here:
    http://java.sun.com/j2se/1.4.1/install-windows.html
    Scroll down to: 5. Update the PATH variable
    (you should have already done this as part of the Java installation)
    The CLASSPATH is another set of pointers that is used by Java to find the files that you create and want compiled and/or run. This setting is explained here:
    Setting the Classpath:
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/classpath.html
    [NOTE: always start your classpath with ".;" which means the current directory. See my classpath, below]
    How Classes are Found:
    http://java.sun.com/j2se/1.4.1/docs/tooldocs/findingclasses.html
    Examples:
    This is my path
    PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BATCH;C:\J2SDK1.4.1\BIN;C:\PROGRA~1\UTILIT~1;C:\PROGRA~1\WIN98RK
    This is my classpath
    CLASSPATH=.;C:\mjava;C:\mnrx;C:\NetRexx\lib\NetRexxC.jar;C:\j2sdk1.4.1\lib\tools.jar;C:\NetRexx\NrxRedBk

  • Problems with applets.

    Hi to everybody.
    I've got a problem with simple applets.
    I've built several applets using Swing components (JApplet, JPanel, JButton, etc.)
    In my browser, the background color of my applets does correctly appear.
    But none of my components does !!!! No text fields, no buttons etc.
    Can someone explain to me which could be the reason of that ?
    Thank's.

    I've just tried appletviewer. And I discovered that there is a problem while trying to acces to a jpeg file for my JBuutons and JLabel.
    Appletviewer considers these files are on the client machine and refuses the acces.
    But when I try my site, the server is my computer too ! So the jpegs are on the server side !
    Furthermore, when I start my web page (that contains my applets), nothing does appear (no exception) in the java console...
    How can I solve this problem (I'm newer with applets)?

  • Problem with applet file loading

    I have a problem with loading files into a java applet. import java.applet.*;
    import java.awt.*;
    import java.io.*;
    import java.util.*;
    import java.net.*;
    public class main extends Applet {
         private static ArrayList<String> SGM;
         public void init() {
              SGM = new ArrayList<String>();
              String gameDir = getParameter("game_dir");
              try {
                   File fHandle = new File(gameDir+"game.sgm");
                   Scanner fScanner = new Scanner(fHandle);
                   while(fScanner.hasNextLine()) {
                        SGM.add(fScanner.nextLine());
                   //System.out.println(SGM.get(0));
              } catch(Exception e) {
                   System.out.println("Applet threw error: "+e);
    ...The problem is with File fHandle = new File(gameDir+"game.sgm"); I tried putting File(gameDir+"/game.sgm"); and appending / to the folder in the <PARAM> tag, but it still changes it to \, which means I can only run it locally, and in Windows. Why is it doing this, and how can I fix it?

    This file you were hoping to load: it's on the server, right? Not on the computer where the applet is running in a browser?
    (At least that's a common mistake made by people when they write their first applet.)
    If that's the case then you can't use a File object to access a file on a different computer. To access a file on the server, first you will have to put the file in a place on the server where it can be downloaded. Then in your applet you need to get a URL for the file. (The getDocumentBase() method can be used to prevent you from having to hard-code the full URL for the file.) Next, "this.getClass().getResourceAsStream(URL)" gets you an InputStream from which you can read the data from the file.

  • Problem with wsdeploy classpath

    We are facing a problem with wsdeploy of jwsdp1.4.
    Problem is the option "-classpath <path>" of wsdeploy is not taking more than one jar file, so while executing it is unable to find the classes which are used in service endpoint interface. If I include those classes in war file it is going thro without any problem.
    The wsdeploy target is as below.
    <target name="wsdeploy" depends="makewar">
    <exec executable="${JAXRPC_HOME}\bin\wsdeploy.bat">
    <arg line="-classpath c:\mvc_facsrchwslib/MVC_FACSRCHWS.jar;C:\j2sdkee1.4\lib\j2ee.jar;"/>
    <arg line="-o c:\mvc_facsrchwslib\MVC_FACSRCHWS.war " />
    <arg line="-tmpdir c:\mvc_facsrchws\assemble" />
    <arg line="-verbose"/>
    <arg line="c:\mvc_facsrchwslib\${portable-war}"/>
    </exec>
    </target>
    The classes referred by Service endpoint interface are in MVC_FACSRCHWS.jar, but wsdeploy is niether identifing this jar file nor build classpath property and the output is misleading as if I have passed to war files
    The output is as below.
    clean:
    FacsrchService Cleaning...
    Deleting directory C:\mvc_facsrchws\mvc_facsrchwsoutput
    Deleting directory C:\mvc_facsrchws\assemble
    Clean Completed. Please check for any errors...
    init:
    Creating required directories...
    Created dir: C:\mvc_facsrchws\mvc_facsrchwsoutput
    Created dir: C:\mvc_facsrchws\assemble
    Init Completed. Please check for any errors...
    compile:
    Compiling the server-side source code....
    Compiling 30 source files to C:\mvc_facsrchws\mvc_facsrchwsoutput
    makeejbjar:
    Creating the MVC_FACSRCHWS.jar file...
    Building jar: C:\mvc_facsrchwslib\MVC_FACSRCHWS.jar
    makewar:
    Creating the mvc_facsrchws-portable.war file...
    Deleting: C:\mvc_facsrchwslib\mvc_facsrchws-portable.war
    Copying 4 files to C:\mvc_facsrchws\assemble\WEB-INF\classes
    Copying 6 files to C:\mvc_facsrchws\assemble
    Copying 3 files to C:\mvc_facsrchws\assemble\WEB-INF
    Building jar: C:\mvc_facsrchwslib\mvc_facsrchws-portable.war
    wsdeploy:
    error: only one input war file can be specified: c:\mvc_facsrchwslib\mvc_facsrchws-portable.war
    Usage: wsdeploy <options> <war file>
    where <options> include:
    -classpath <path> specify an optional classpath
    -keep keep temporary files
    -o <output war file> specify where to place the generated war file
    -tmpdir <directory> specify the temporary directory to use
    -verbose output messages about what the compiler is doing
    -version print version information
    -source <version> generate code for the specified JAXRPC SI version.
    supported versions are: 1.0.1, 1.0.3, 1.1, 1.1.1 and 1.1.2 (default)
    The -o option is required.
    Examples:
    wsdeploy -o target.war myapp.war
    Result: 1
    BUILD SUCCESSFUL
    Total time: 2 seconds

    Try using the Ant task provided by JAXRPC. Set the whitepapers at:
    Part 1 is available at https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html and Part 2 is available at https://jax-rpc.dev.java.net/whitepaper/1.1/index-part2.html.
    for more information.

  • Problems with packages, classpath and BouncyCastle Library

    Hi everybody!
    Shortly, after adding BC's crypto library to my MOBILE (J2ME) project, when I build it returns a NoClassDefFoundError about java.math.BigInteger class.
    Its package is the same of J2SE but is included in this library. Now, this should not be a problem, 'cause java.math.BigInteger is not included in J2ME, and library's release is (I'm sure) for J2ME...I think it's a problem of classpath but I can't find a way to go on with my project!
    Please, if anybody knows where I'm wrong let me know!!!
    ...and sorry for my bad english...;-)
    b4kk3

    I think the update is buggy. Many people (inc. me) are having problems with it. Am not able to play any songs/videos .. terrible !

Maybe you are looking for

  • How to hide the warning Dialog box in illustrator?

    I need to open the pdf file in 'illustrator cs3' through visual basic coding and then save it as eps. But if i open the pdf file in illustrator some times 'warning dialog box' opened due to the font missing. I need to hide that warning dialog box whi

  • Problem using actionlisteners on Jtable

    i have used actionlistener on a jtable1 on panel1 but the same actionlistener is being called by jtable2 on panel2 on the event and gives me error.Both panels are on same internal frame. Any way to avoid this error?

  • Need phone to get 4G SIM?

    I'm sure this has been answered, but I can't find it: I have a 4G phone on the way from a private party; my current phone is a 3G Incredible 2.  I understand that the new phone will need a 4G SIM, and that I can get one for free from a corporate stor

  • Centering a table in a document

    I have a fairly simple Pages '09 document, which I am writing. It is all text with one table. I want to center the table horizontally on a page, but for the life of me, I can't figure out how to do it. If anyone knows how to center a table, please le

  • Range Partitioning of Table

    Hi all, I need to do range partitioning on a table using current system timestamp. sth like CREATE TABLE SAMPLE(ID NUMBER, SAMPLE_DATE TIMESTAMP)PARTITION BY RANGE(SAMPLE_DATE)(PARTITION P1 VALUES LESS THAN (LOCALTIMESTAMP)); Is there any way I can a