Testing my applet

how can I cancel the temporary files feature in internet explorer so I can test my applet ?
any other solution for this frusrating situation ?

Thank you both
And how can I debug my applet in this case
(I cannot use AppletViewer cause I'm using
getAppletContext() for links)Hmm.. I answered that in a thread a couple of days ago. I'll try and see if I can find it.

Similar Messages

  • Test java applet not working in ie8

    I'm new to Java and I'm doing some tutorials from a Java programming book. I created an HTML document with the following applet code:
    <applet name="HelloWeb"
    code="HelloWeb.class"
    width=150
    height=100>
    </applet>
    It's a simple document meant to test a basic applet that displays "Hello, World Wide Web!". However, when I view the page in IE8, the applet displays an error message (which I can't seem to decipher). Can anyone help me with this?
    Edited by: 880537 on Aug 19, 2011 7:42 PM

    my bad...the error looks like this:
    java.lang.UnsupportedClassVersionError: HelloWeb : Unsupported major.minor version 51.0
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(Unknown Source)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
         at sun.plugin2.applet.Plugin2ClassLoader.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)
    Exception: java.lang.UnsupportedClassVersionError: HelloWeb : Unsupported major.minor version 51.0

  • Using Loadrunner to test Jinitiator applets

    I am not familiar with JInitiator, and I am currently researching using LoadRunner 7.5 to perform load testing on an applet using JInitiator 1.1.8.19. The applet also uses Java RMI as its messaging protocol.
    Is there any information about how to do load testing on JInitiator, or has anyone used Loadrunner for Jinitiator jvm-based testing before?
    If so, any assistance would be greatly appreciated. Of course, the deadline for my research was yesterday! :/
    Thanks,
    Brent Friedman

    You want to use LoadRunner 7.5 to load test Forms? This is possible, just make sure you use Oracle NCA. The rest should be straighforward.
    You don't test JInitiator, as such. LoadRunner will simulate the clients. So you don't need to do "Jinitiator jvm-based testing". Remember, you're testing Forms on the middle tier, no JInitiator on the client.
    Regards,
    Robin Zimmermann
    Forms Product Management

  • Test my Applet!

    Well, when I say test it, I mean, in the nicest possible way. It is nearly complete and represents about 6 months work, from a standing start (no Java experience). It is supposed to be a complete simulation of one of our visual\infrared camera products - so users can play with it online (these things cost over �15,000 each, so its easier to make a simulation than to give them out like sweets to agents etc.).
    Anyway, I have a few bugs\features not implemented yet, but the bulk is in there. One annoying thing I find is that sometimes when the applet first loads, some of the widgets are not rendered - there is just a white "block" where the widget should be. I cannot for the life of me work this one out, because I am waiting for all my media to load before I head off and "repaint" the entire scene.
    Comments appreciated very much....
    (the Jar is about 500k, then it loads around 16 temperature maps into memory, which is about another 500k - check the status bar for progress report!).

    Sorry for the double post - I didn't see this one come through, so I posted another :)

  • How to develop host application to test my applet

    Hi,
    Can anybody suggest how to develop host application for testing the small java card applets like heloworld..

    hi  Markusg,
    Why not look for Direct Input Program RV14BTCI for creating, changing and deleting price conditions. This will be convinient for you in handling bulk data as well.
    Regards
    Saurabh Goel

  • Testing for applet compatibility

    I have an AWT IRC Client applet that I want to work on multiple Java VMs. Are there any good tools / books / web-sites that easily lay-out what compatibility problems are experienced with different VMs.
    How about a web-site where I can easily download different VM versions to see if all the classes will load ? I am having problems even finding older versions of jview.exe, without explicitly installing an older version of Windows.
    Cheers

    Hi,
    I have the same problem. I tried to make my applet 1.1 compliant,
    but was compiling under 1.3. Even more, some applets are running under jre 1.1.5 but not with 1.1.2. For example, awt scrollpanes do not exist in 1.1.2.
    My general rule is : "if you see a deprecated method, use it! "
    Also, don't use the 1.1 event model, use 1.0 event model instead
    if you find any solution, please post it here under...

  • Please test my applet game

    try my tiny applet at http://www.mycgiserver.com/~goldenstudios
    it only 5.04 KB, trying to download 7-zip just now, to reduce it to 4K
    is the game is good enough to go with 4K contest :)
    anyway how to use 7-zip?
    thank you

    guys, how to use 7-Zip?
    i compress my classes with 7-Zip (Zip format), the size is bigger than with java jar
    if using 7-Zip (7z format), it's smaller, but java not recognize the zip file

  • How do I test a Java card applet with different AIDs on the fly?

    ... Like sweeping cards from employees in a queue of people lining up in the morning?
    When I created my applet, the aid is a fixed value inside the class.
    Whenever I wanted to test it with another value, I changed that AID and rerun the applet.
    I find it very cumbersome that needs to be rerun and rerun, over and over again.
    How do I test the applet easily with any values of AIDs that I'd like to put in, on the fly.
    I know I can't simulate the sweeps of card in the applet because I can't have a main method with a signature
    of Strings[] args or String[] args. I can only have JUnit to help me out, but still java card doesn't allow either
    main(Strings[] args) or TestCase to inherit from.
    Thanks
    Jack

    your question is hard to understand but:
    an applet always has one definite AID and you cant change it after install as far as i know
    a) you want to test many cards with diffrent AIDs?
    ->send a list of select commands and check the return values
    b)you want one card with the same applet to be available for many AIDs?
    ->install many dummy applets forwarding the commands to one core applet
    c)i think i didnt get your point :/

  • How to achieve (and test) the crossplatformity of an applet?

    I've written an applet which I put in jar. It is successfully being launched on my system both locally and from geocities web site. (WinXP JDK 1.4 Forte4.0)
    A friend of mine could not load the applet from the web site. He has XP as well, but could be he does not have Java plugin yet.
    Suppose my applet is correctly written, how do I know? How do I know that it is his problem, not my bug?
    How do I generally test my applet/jar to be crossplatform? (Win, UNIX, Mac, etc.)
    Is there a way to do it using my own set up only (my own computer/OS)?
    What does one do to be sure that he has written a correct applet that will run on as many platform as possible?
    Or what minmal precautions should be taken when writing such applet?
    Here is the link to the page my applet is located on. Comments are welcome.
    http://www.geocities.com/egor_kobylkin/applet_test.htm
    I would appreciate the links to the resources I should check!

    The JVM from Microsoft, which most users of Internet Explorer are likely to use, still is on the level of JDK 1.1. So check that you don't e.g. use Integer.parseInt() and other stuff added with J2SDK 1.2 or later.
    You probably installed Sun's JRE the way that your IE uses it instead of the MS JVM. I don't know how to disable this, but I think it's possible.
    You can test an applet on your computer if you have different browsers. Look at the home pages of the manufacturers to see whether they use their own JVM or Sun's JVM or whatever JVM they find on the PC. E.g. Opera uses Sun's JVM, so it won't help in testing. But I checked your site with Netscape 4.7 and the applet didn't work. So I guess it uses an older JVM. You can install multiple versions of Netscape on your PC, e.g. 4.7 and 6.2, and then use 4.7 to test your applets for compatibility. (You cannot install more than one version of Internet Explorer.)
    You can also install more than one JRE, and then change the classpath to the old JVM (i.e. 1.1) when checking whether your applet works with it, too.
    Monika.

  • At what percent e-tester can identify java applet objects. Plz see message.

    Hi,
    Me new to this group.
    I am here to find out whether e-tester can test java applet or not.
    I am testing a web application which is completely Java applet base.
    Envirnment used jdk1.1.8 and Jre1.4.
    I have been trying to identify applet object used in our application.
    problem i faced:
    when i set java option in option seting for both Microsoft applet and sun system applet. where my system having jdk1.1.8 and jre1.4.
    Recording on above envirnment I am able to record my application but i can not play that. On this case I marked Abbot script generated.
    when uninstall jdk and jre.
    I am able to record and play my application still some step. But I am not able to customize it.
    this application also uses StarTree a hyporbolic tree API from
    "Business Object" now bought by SAP (this api used inside applet
    frame).
    Is any one work on e-tester to automate in and out of an application which is built in java applet.
    Can some one help me to figure out where I am doing wrong.
    Before this I worked on e-tester year back to automate one of our application and still we are doing our regression on that.
    Expecting some help

    When you say customize, are you referring to parameters? They is handled differently with applets. I believe there is documentation on this.

  • Applet won't initialize when testing Applet

    I compiled my file with no errors, yet when I test the Applet it tells me that it can not initialize, can anyone help me.
    Thanks

    Some source code causing the problem would be nice. Also, if are viewing your Applet in a browser make sure you are using JDK 1.0/1.1 classes/methods.
    Open your java console in your browser to see exactly what the Exception (if any) that is being thrown. (To enable your java console your might have to edit your browser settings, in IE you can do this through your tools/internet options/advanced then check the java console box.)

  • Testing applets - how to clear cache?

    I test an applet. Fix a bug and retest, but the old applet's still in cache so my browser doesn't bother to reload. Closing and restarting the browser works, but is slow. Adding a version suffix (app_a, app_b, ...) is also slow.
    I'm testing in Netscape, IE, Firefox and Opera. They all cache applets much too tenaciously.
    This came to a head when I wrote a trivial applet to launch something, and had a typo-driven button that said "Lauch ...". Went back, added an "n" and retested. Of course it still said "Lauch ..." and I really don't like being reminded of how dumb I can be. Help!

    Answer found for IE 6:
    Tools/Internet Options/General/Delete Files...
    Three browsers to go and Netscape is probably the same as Firefox.

  • Applet testing / browser cache clearing

    The applet forum returns nil. Google returns misinformation. Here's a Duke a browser.
    I test an applet. Bug. Fix. Retest shows old result because browser cached applet and doesn't know that I've a newer version. Looking for a better solution than closing/reopening browser.
    Netscape (Mozilla/Firefox)?
    Opera?
    Solved IE: Tools / Internet Options / General / Delete Files

    eminformatics:
    Have a duke! Wish it was both dukes, but Opera (which has its own console) doesn't handle an 'x' in the java console. So this is the Netscape/Mozilla solution.
    all:
    The shift+reload trick is Google's favorite answer, but doesn't work in my browsers.
    This is serious progress - there are a lot of reasons why I prefer to develop with Netscape and now it's working for me with applets. Too bad for me that I happen to like Opera best. Where are all the "mouse gesture" fans?

  • How to compile and test SIM card applet

    Dear all
    I have a sample applet:
    package sim.access.sample;
    import sim.access.*;
    public final class helloFile extends Applet implements ToolkitInterface
           private static SIMView  theGsmApplet;
           private static USIMView aUsimApplet;
           private static AID theGSMAppletAID;
           private static AID theUSIMAppletAID;
           private static final byte[]  baGSMAID = {(byte)0xA0,(byte)0x00,(byte)0x00,(byte)0x00,(byte)0x09,(byte)0x00,(byte)0x01};
           protected helloFile(){
           public MyApplet () {
                theGSMAppletAID = new AID();
                // get a reference to the GSM interface
                theGsmApplet = SIMSystem.getTheSIMView(theGSMAppletAID);
           public void doSomethingWithAFile(){
                   // returns the SIMView of the currently selected Applet
                   // allows to implement services that are depend on specific
                   // file in GSM or USIM application as well as to implement
                   // technolgie independent applets.
                   SIMView theView = SIMSystem.getTheSIMView();
                   if(theView instanceof SIMView){
                        // do something with a GSM file
                   else if(theView instanceof USIMView) {
                        //do something with a USIM specific file
                   // Or request a View to a specific application
                   USIMView theView = SIMSystem.getTheSIMView(aUSIMAppletAID);
    }I want to compile and test it, how can i do it ???

    I am trying to compile it on eclipse using JCOP:
    package mytest;
    import sim.toolkit.ToolkitException;
    import sim.toolkit.ToolkitInterface;
    import javacard.framework.APDU;
    import javacard.framework.Applet;
    import javacard.framework.ISO7816;
    import javacard.framework.ISOException;
    public class Test extends Applet implements ToolkitInterface{
         public static void install(byte[] bArray, short bOffset, byte bLength) {
              // GP-compliant JavaCard applet registration
              new Test().register(bArray, (short) (bOffset + 1), bArray[bOffset]);
         public void process(APDU apdu) {
              // Good practice: Return 9000 on SELECT
              if (selectingApplet()) {
                   return;
              byte[] buf = apdu.getBuffer();
              switch (buf[ISO7816.OFFSET_INS]) {
              case (byte) 0x00:
                   break;
              default:
                   // good practice: If you don't know the INStruction, say so:
                   ISOException.throwIt(ISO7816.SW_INS_NOT_SUPPORTED);
         public void processToolkit(byte arg0) throws ToolkitException {
              // TODO Auto-generated method stub
    }It is giving following error on package name:
    resolving constant-pool of clazz Lmytest/Test; failed: missing export file for package sim/toolkit

  • Call Applet method from JavaScript, tiny test program works... SOMETIMES!?

    I have an embedded Applet in a web page, and I am trying to directly call a method in that Applet from the same page, using JavaScript.
    Here is the complete Applet:
    import java.applet.Applet;
    public class Test extends Applet {
      public String test() {
        return "test() method return value";
    }Here is the complete web page:
    <HTML>
    <HEAD><TITLE>Applet Invocation test</TITLE></HEAD>
    <BODY>
    <APPLET CODE="Test" WIDTH=10 HEIGHT=10 NAME="test"></APPLET>
    <HR>
    <SCRIPT>
    document.write( "JavaScript is working<br>" );
    document.write( document.test.test() );
    </SCRIPT>
    </BODY>
    </HTML>Is there anything wrong with this? Because it works about 15% of the time, displaying an <HR>, "JavaScript is working", and then "test() method return value" on the next line.
    The other 85% of the time, it just gets to "JavaScript is working", then I get a JavaScript error "Object does not support this property or method" for the line: document.write( document.test.test() );
    Now here's another weird quirk... I can get it to work ALL the time, if I delay the execution of the Applet method. For example, if the first line after <SCRIPT> is alert( "alert" ); then the user gets a little dialog box with "alert" message in it, and when they hit OK execution continues, and the applet method call ALWAYS works. (On a side note, if I make the Applet test() method static, it NEVER works. Why is this?)
    So it seems to me, that when it is failing, it is because the Applet is not completely loaded into the browser yet. My question is, how can I get around this?? Is there a way to instruct JavaScript to wait until the Applet is finished loading before attempting to call any methods on it?
    PS I am using Windows ME and IE 6

    Thanks for the reply, I appreciate it. I have another question, if you don't mind... here is what my new test web page looks like:
    <HTML>
    <HEAD>
    <TITLE>Applet Invocation test</TITLE>
    <SCRIPT>
    function testFunc()
      document.write( document.test.test() );
    </SCRIPT>
    </HEAD>
    <BODY onLoad="testFunc()">
    <APPLET CODE="Test" WIDTH=10 HEIGHT=10 NAME="test">
    </APPLET>
    <HR>
    </BODY>
    </HTML>What happens is: the page loads, I see a 10x10 grey applet box, and a <HR>... then a split second later, onLoad is fired, and everything on the page so far is REPLACED with the output of testFunc(), so the ONLY thing on the page after this all completes is "test() method return value"
    Why is a single document.write() statement CLEARING the page before outputting? I don't understand. If calling a document.write() from an onLoad event wipes out everything on the page, this is not extremely helpful solution.

Maybe you are looking for

  • Photoshop CS4 quits unexpectedly

    Hi, Please this issue is really freezing out our daily activities. I have a Mac in my office which has got a configuration as below, We are using PS CS4  on it since 2009 until couple of days back when it first popped up with an error report saying P

  • Custom Enjoy Screen for POs

    I'm trying to add two custom fields to ME21N/22N/23N.  I'm using the Business Add-In Builder for definition: ME_GUI_PO_CUST  Interface: IF_EX_ME_GUI_PO_CUST I can get my fields to work on display (ME23N), but do not see them on Create (ME21N) or Chan

  • Older Macbook and new 24-inch LED display

    Is it possible to connect a mid-2007 Macbook (I think this has the mini DVI connection) to the new LED Cinema Display? Is an adaptor needed? Does one exist? Thanks.

  • No versions after import for customer objects

    Hi all! I have a little problem with transporting of (customer dictonary objects) and the versions. The system enviroment is SAP ECC 6, software level SAPKB70016 SAPKA70016 SAPKH60302 On the developer system the customer objects have versions - after

  • Update activity..

    hi experts, i need to develop the rfc where i am taking activity ID, and 2 custom fields : SKU ID and SAP Vendor ID. SKU ID is present in  activity and sap vendor id is present in opportunity. ill get the opportunity id through activity id using 'CRM