I can't run an applet

When I run the sample applets that come with jdk1.4, the HTML code displays OK, but the applet part only shows a solid grey box.
Have any ideas why?

hi,
can you tell my your HTML code?
if you use<applet> tag,then your applet will not run,
beacause the iE or NS don't not support the jdk1.0 up!
so if you want run the applet ,there are two way:
1)
compile your code: javac -target 1.1 yourcode.java
2)
you can use the jre plug-in
first, edit your HTML code use <applet> tag
second,use the HTMLconverter(java_home/bin) tool convert the HTML code

Similar Messages

  • How can I run one applet from enother

    Hi,all!
    I have two applets.And I want to open(run) the second one bypressing a button on a first one.
    Any help will be appreciated.

    "Running an applet" means loading a HTML file that has another Applet tag. I assume this is what you want.
    In that case you can call the following methods (in your codes in the 'first' Applet):
    this.getAppletContext().showDocument(anotherUrlName, targetName);
    anotherUrlName is the URL of the second html file that has another Applet tag. Check API documention for different values for targetName.
    jerry

  • How can I run an applet from an application (frame)?

    I have an application (frame) that render images and save it, and then I want to create an animation with those images using Animator applet from the application itself, but I do not how to call the applet from the application, is this possible?
    Thanks in advance, Jorge

    You can simply run a JApplet in a JFrame. Just create a frame object, an object of your applet, add the applet to the frame and call the init() function of your applet. It could look like this:
    JFrame anyFrame = new JFrame("MyTitle");
    YourApplet yourApplet = new YourApplet();
    anyFrame.getContentPane().add(yourApplet, BorderLayout.CENTER);
    yourApplet.init();
    anyFrame.setSize(new Dimension(800,600));
    anyFrame.setVisible(true);
    You will not necessarily have to write the applets default constructor.

  • How can i run an applet from a webpage????

    can someone PLEASE tell me how i can run an applet from my webpage. a detailed response would be extremely appreciated.
    sam

    Here's a web page that you can use as skeleton. You should be able to start with that.
    <HTML>
    <HEAD>
    <TITLE>Title</TITLE>
    </HEAD>
    <BODY>
    <APPLET CODE="your.class" WIDTH=400 HEIGHT=300 IGNORE=""></APPLET>
    </BODY>
    </HTML>

  • Help me:I can't run my applet in the browser.

    I use JCreator developed an applet, I can run its "htm" file inside JCreator, everything is Ok,but when I try to run it directly (Double click "htm" file) on the browser, it always shows a blank area with a cross on top-left.
    Please help me,thanks!
    (OS: xp, my "htm" file is in the same folder with classes files )

    Could be due to classes not being found or wrong version of java...

  • Can't run an applet with Internet Explorer for Windows

    I'm not sure this is the right news group, if not please direct me to the correct one.
    I have an applet at http://209.55.115.36/webfit/Instructions/instructio_list.php?section_id=1&instructionsPage=2 It works in various browser except internet explorer for Windows. I've tried it with IE on windows XP, 98 and ME. Here is what I do.
    1) I uninstall any copies of the Java Plugin.
    2) I install a new copy of the Java Plugin
    3) I test that I can see the Java Coffee cup in IE
    I try loading in my applet and I get a big grey spot.
    The applet works with all Mac Browsers, Netscape and Opera, but not IE. I don't get any error messages, just nouthing.
    Any pointers or thoughts would be helpful. I'm under a time crunch because I wanted to show it off at a trade show this weekend.
    -Gary

    HEY! I saw what you're talking about! I was working on my own stuff, and my applet said it loaded and init'd, but was still blank. The only difference was I had upgraded to the Plug-In 1.4.1 this morning. So I went back to version 1.4.0 and it worked perfectly again. Maybe that's what's happening to you. So ignore the link I just posted and go to this one:
    http://java.sun.com/j2se/1.4/download.html
    That'll let you download version 1.4.0 instead, and I'll bet you that one works. Let me know. Good luck!

  • Can't run JMF Applet in IE

    OS: win2000 professional
    JRE: Jdk-1.4.0._01
    JMF: 2.1
    Borwser: IE 5.0
    I have completed installing the JMF, but no JMF Applet
    can be shown in IE, the messages always are
    "class Not Found, javax.media.ControllerListener" or
    "class Not Found, javax.media.Player"
    anyone can help me? thanks!

    I think I found where the problem comes from.
    In one machine I installed jmf as admin I found following registy key:
    LocalMachine--software--microsoft--javavm
    there is one value called classpath which contains the jmf directory.
    I suppose this key make java plug-in find our jmf library.
    However in anothre machine I installed jmf without admin privalages. I didn't see that key contain my jmf directory. This is because I don't have the privalages to modify this key. The installation doesn't give me any warning messages. I think this is the problem.
    When Iinclude that tag <APPLET archive="jmf.jar" in the html pages. The java console said that the applet don't have the permission to use capture audio devices. So..... It still don't work
    Any suggestions?

  • Can not run nm-applet as user

    I think this happened after last update on network-manager.
    nm-applet --sm-disable
    ** (nm-applet:7942): WARNING **: <WARN>  request_name(): Could not acquire the NetworkManagerUserSettings service.
      Error: (9) Connection ":1.45" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file
    There is nothing in daemon.log about any errors.
    Runnig nm-applet works with root.

    ammon wrote:
    wonder wrote:paste ~/.xinitrc
    Nothing special
    exec ck-launch-session syndaemon -t -i 2 & openbox-session
    that is pretty much the problem. you are doing it wrong.
    you only run syndaemon with ck-launch-session.
    you should do
    exec ck-launc-session dbus-launch openbox-session

  • I can't run an applet from the browser

    I created an applet using the JDeveloper 3.1 wizard. The applet works in the JDeveloper environment and from the command line using the appletviewer. However, it won't work from the browser (ie 5.0 or netscape 4.7). The error I am receiving from the java console is:
    Failed to query environment: 'access denied (java.util.PropertyPermission jbo.debugoutput read)'
    Diagnostics: Silencing all diagnostic output (use -Djbo.debugoutput=console to see it)
    Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.show.timing read)'
    Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.show.function read)'
    Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.show.level read)'
    Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.show.linecount read)'
    Failed to query environment: 'access denied (java.util.PropertyPermission jbo.logging.trace.threshold read)'
    Failed to query environment: 'access denied (java.util.PropertyPermission jbo.jdbc.driver.verbose read)'
    Exception occurred during event dispatching:
    java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.sql.SQLPermission setLog)
    Please help.

    these are java 2 security permissions you'll need to address ..
    review the java 2 security permission chapter of the "java developer's guide"
    you can find the documentation in the "java documentation" section of documentation for your rdbms version at the following link : http://otn.oracle.com/docs/products/oracle8i/doc_index.htm
    null

  • How can i run applets in kawa?

    how can i run compiled applet programs in KAWA
    help me

    If you always have the external display connected, you can configure the OS to consider it as the default or main display. Once everything is connected and set to your liking (resolution, color depth, etc.), "bless" the external display by clicking & dragging the menubar from the Mac's internal display onto the external. This only works if you are not using video mirroring.
    Once this is done, applications will open by default on the external and now "main" display and you can configure them to go fullscreen or whatever.

  • Which command i use to run SWING APPLET

    Hi friends,
    i m a new in swing technology i got and problem when i run swing applet .
    i make a file and complie it with -deprecation it work and make a .class file but how can i run this applet [i use jview command , appletviewer command but it can't work]
    i hope that someone hellp me.

    Just as a matter of interest and i know its a stupid question, but did you create a html file to access the class file/jar
    Here is some example code of an applet html page
    Hope it helps...
    Also have you put it in a Jar file?
    <html>
    <head>
    <title>(Whatever title youu want)</title>
    <BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000">
    <TR>
    <APPLET CODE = "ClassName.class" ARCHIVE = "JarName.jar" WIDTH = "800" HEIGHT = "600"></XMP>
    <PARAM NAME = CODE VALUE = "ClassName.class" >
    <PARAM NAME = ARCHIVE VALUE = "JarName.jar" >
    <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
    <PARAM NAME="scriptable" VALUE="false">
    <dont worry about this>(they just variables for my applet)
    <PARAM NAME = SERVER_IP VALUE ="192.1.1.209">
    <PARAM NAME = SERVER_PORT VALUE =8701>
    <PARAM NAME = DEBUG VALUE =true>
    <PARAM NAME = REFRESH VALUE =10000>
    <PARAM NAME = TAIL_REFRESH VALUE =2500>
    <PARAM NAME = MESSAGE_TIMEOUT VALUE =60>
    </dont worry about this>
    </APPLET>
    </body>
    </html>

  • Make IE ready to run the applet in ubuntu machine

    Dear friends,
    I want to check JMF installation using diagnostic code in IE6/IE7 on ubuntu.
    I have downloded these browsers. When I was checking the JMF installation, using this below URL,
    http://ku-prism.org/virtualprism/explorations/JavaTest/javatestpage.html
    Applet wasn't run, and it hasn't display the any messages ( success/Failure) inside the applet window.
    Can any one tel me that, How can I run the applet in IE6/IE7 on ubuntu ?
    Note:
    When I was checking this to windows xp ( IE) , it says below nmessages,
    For JRE => jre Version... 1.5.0_10
    For JMF => JMF Version... 2.1.1e
    All Java Build
    Native Libraries found success.
    Thank you,

    As an Applet does not have a method main, then obviously you need to convert it to an application, which does.

  • Applet can not run in browser, but it wroks in appetviewer. Why?

    I wrote a very simple applet, and it works well when I use appletviewer. But when I use browser to open the html file which contains the applet, it always gives no class found error. My browsers are IE5.0 and Netscape4.77. Hwo can I make the applet run in browser?
    Quick response is greatly appreciated.

    see you have to put the proper code base in your html file.check if your browser is java enabled or not.Java plugin comes with IE 5 and it automatically get installed if you won't disagree with that.Check in optin menu of ur browser that java is enabled or not.
    Applet works fine with all browser.
    2nd thing when you r running applet through appletviewer,it runs as an application from your local JVM while running through browser means you are running applet through browser 's JVM.

  • Can't run JRE 1.2.2 applets once 1.4.1 installed

    I have an applet developed with JDK 1.2.2 (uses 3rd-party jars) which was working perfectly with the 1.2.2 plug-in
    that comes with the JDK.
    The OBJECT tag specifies the dynamic versioning clsid clsid:8AD9C840-044E-11D1-B3E9-00805F499D93 (which is the
    only possibility for 1.2.2?).
    However, when users who have downloaded the 1.4.1 plug-in run the applet (quite apart from the fact that I have had
    to solve a problem where plug-in 1.2.2 accepts PARAMs with initail _ but plug-in 1.4.1 does not!) they are
    getting an ExceptionInInitializerError inside one of the 3rd-party libraries. I have reproduced this
    error on my Windows XP PC (IE 6). The stack trace is as follows :
    (this has been reproduced outside of the browser using JRE 1.4.1 because the 1.4.1 plug-in console won't display,
    even after manually running the Console and setting the Show Console checkbox,
    and the icon doesn't appear on the System menu, presumably all because I have JDK 1.2.2 + plug-in installed)
    java.lang.ExceptionInInitializerError
    at javax.crypto.Mac.getInstance(DashoA6275)
    at com.baltimore.jpkiplus.pkcs12.PFX.fromASN1Object([DashoPro-V1.3-01300
    0])
    at com.baltimore.jpkiplus.pkcs12.PFX.fromBER([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.pkcs12.PFX.<init>([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKCS12Provider.openFile([DashoPro-V1
    .3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKCS12Provider.openFile([DashoPro-V1
    .3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKCS12Device.initInstance([DashoPro-
    V1.3-013000])
    at com.baltimore.jpkiplus.pkidevice.PKIDeviceManager.getPKIDevice([Dasho
    Pro-V1.3-013000])
    at com.baltimore.jpkiplus.vaults.Vault.a([DashoPro-V1.3-013000])
    at com.baltimore.jpkiplus.vaults.Vault.openVault([DashoPro-V1.3-013000])
    at mailsign.signer.signAndSend(signer.java:262)
    at mailsign.AppletSigner.signAndSend(AppletSigner.java:329)
    at mailsign.AppletSigner.action(AppletSigner.java:521)
    at java.awt.Component.handleEvent(Unknown Source)
    at java.awt.Component.postEvent(Unknown Source)
    at java.awt.Component.postEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs
    at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
    ... 24 more
    Caused by: java.lang.UnsupportedOperationException
    at java.security.cert.CertificateFactorySpi.engineGenerateCertPath(Unkno
    wn Source)
    at java.security.cert.CertificateFactory.generateCertPath(Unknown Source
    at javax.crypto.SunJCE_d.a(DashoA6275)
    at javax.crypto.SunJCE_d.a(DashoA6275)
    at javax.crypto.SunJCE_b.i(DashoA6275)
    at javax.crypto.SunJCE_b.h(DashoA6275)
    at javax.crypto.SunJCE_v.run(DashoA6275)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 25 more
    In my opinion, this has something to do with the way service providers are handled. The 3rd party jar requires
    a Security.insertProviderAt () call. My suspicion is that there is some kind of conflict with the JCE stuff
    that comes bundled with JRE 1.4.1 to handle RSA signed applets. I found a similar conflict with the 1.2.2 JRE
    when I tried to jarsign the 3rd-party libraries - I was getting, at runtime, either some kind of infinite loop hanging or
    a stack overflow due to recursive function calls.
    The fact that I can run the applet as a main and that I get the exact same error running the app from the DOS
    prompt would indicate that this is a JRE 1.4.1 problem (surely the JREs are supposed to be downwardly-
    compatible??!!! - i.e. the JRE 1.4 should run apps compiled with JDK 1.2.2 without any problem). Yes, I have
    run the app as a main with JRE 1.2.2 and all works fine.
    However, I could get around this if I could force the 1.2.2 plug-in to run instead of the 1.4.1 plug-in (quite
    how the users are going to be able to get the 1.2.2 plug-in if they have plug-in 1.4.1 installed
    without being Java experts is a problem I will leave
    till later when I try to figure out how to make my applet an RSA signed applet (which if the documentation is
    correct are only available from 1.3 onwards, hence solving this 1.4.1 problem would be VERY nice)).
    But the problem is that once the 1.4.1 plug-in is installed, it always takes precedence over lower versions.
    It's not obvious from the documentation whether older plug-in versions get executed when static versioning
    is used for the clsid in the OBJECT tag. I can't be bothered to download a 1.3 plug-in and try.
    However, unless I am mistaken, there is not a static versioning clsid for plug-in 1.2.2 ?????
    In summary, once users download a plug-in version greater than 1.2.2 (presumably by running another applet from some
    other site that requires eg 1.4.1 - I guess Sun's aim is to make the Plug-In as prevalent as possible, hence
    this is not a far-fetched scenario), it is no longer possible for my applet to be run by a 1.2.2 JRE !!!!!!!
    Because the 1.4.1 JRE is not downwardly-compatible, it can't run my 1.2.2-developed applet and my deployed
    application is broke.
    Unless I am missing something somewhere (which is possible because I am getting fed up of solving problem after
    problem with the Plug-In - eg the mess of setting the right codebase to get different plug-ins to be downloaded
    automatically - the HTML converter doesn't always set up the codebase correctly), this seems like a nightmare
    for applet developers - from one day to the next your applications will break because of Sun's plug-in upgrading.
    Please tell me there is a way to force the 1.2.2 JRE/plug-in to execute instead of 1.4.1 and that there is a
    way for the 1.2.2 plug-in to be downloaded automatically by users even when they have 1.4.1 already installed.

    Are you using signtool? I had a problem where applets stopped working when I went from JRE 1.3.1_01a to 1.3.1_07. I updated the signtool from 1.1 to 1.3 and now my applets run.
    Mark

  • Applet can not run without JRE

    I have compiled the applet with J2SE 1.4.0. When I tested on the browser IE 5.0 in my computer, it could run because there is JRE included by J2SE 1.4.0 in my computer. When I tested in other computers, it can not run.the display only gray rectangle and there was a statement x.class is not found in bottom bar.The browser IE 5.0 is java enable. But when I access the webpage that include java application in the same computer without JRE, that could run.
    what wrong?
    thanks

    It is likely that the applet you compiled is using bytecode or features that the other machines don't recognize/have. If the other machines have the MS Java virtual machine but don't have the Sun virtual machine, try compiling the applet with the compiler option "-target 1.1" and see if that helps. It may, unless you used Java features that don't exist in Java 1.1 (for instance Swing classes). If so, then the other machines won't be able to run the applet unless they have the Sun jvm installed (like your machine).

Maybe you are looking for

  • An internal error occurred while writing imported graphics in this document. The file has been saved

    An internal error occurred while writing imported graphics in this document. The file has been saved, but has lost some image data. Please report this error to Adobe Technical Support. How do i fix this, there are no images in the document thanks emm

  • My Iphone 4 has no sound???? Please how do i fix it

    My Iphone 4 sound has just stopped working, i can hear it when it rings, but i cant hear anything else, like messages, notifications, sounds from my apps or when i play music. it is not on mute and the volume is up on my sounds setting. when i use th

  • JPanel Scrollable mimic Windows Explorer Icon View

    I am developing an image viewer application, and I want my thumbnail image JPanel to mimic MS Windows Explorer's layout in icon view. However, I have not been able to accomplish this. I have searched high and low, finding many others with my same pro

  • Reader 9 is not displaying existing form data.

    Hello, We have a series of files that were created using a form designed in Acrobat 7.0.  When we open any of the files with Reader 7.0 we can see the form data that was entered, but when we open the same files with Reader 9 the data is not displayed

  • Date format into "YYYY/MM" format

    Hi Team, I have two tables having date field in common.I want to apply inner join between two tables on date field.However joining condition is based on date with format as "YYYY/MM" Format. Somehow, it should look like below. Select Date from A inne