Bridge2Java wrapper IE Browser cannot load applets

I download the bridge2java library and modify one of the samples (QuickIE.java) to visit a url that contains a simple applet (e.g. http://java.sun.com/docs/books/tutorial/uiswing/components/applet.html)
Once the page is loaded, a alert box popped out and said 'Java(TM) Plug-in Fatal Error, Attachment to a running virtual machine failed'. The page is fine when i view it in IE alone.
My machine is WINXP, heard that no such problem in WIN2K. It has 2 jdk, one j2sdk1.4.0_01 and a j2sdk1.4 jre bundled with JBuilder. (Also, j2sdk1.4.2 just uninstalled when i tried to fix the problem). I have set JAVA_HOME to C:\j2sdk1.4.1_01 and add 'C:\j2sdk1.4.1_01\bin' at the beginning of the path.
Anybody knows why that happen? Is it due to my configuration or just a bug in bridge2java? Thanks.

read my message at
http://forum.java.sun.com/thread.jsp?forum=30&thread=500577&tstart=45&trange=15

Similar Messages

  • My Browser cannot load web pages. I get The URL is not valid and cannot be loaded"

    I can no longer use Firefox. EVERY PAGE I attempt to load produces the following message alert: "The URL is not valid and cannot be loaded"
    I have already cleared everything in my browser, rebooted my computer and absolutely nothing works. This just started happening constantly today.

    Do other about: pages work properly?
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    See also:
    *[[/questions/908165]] The URL is not valid and cannot be loaded

  • Cannot load applet

    Hello to all,
    I am developing an application, using JSF, in which I have used applet to upload the directory. But I am not able to load that applet in the browser.
    My code is
    <jsp:plugin codebase="." code="DirUpload"      height="100" jreversion="1.6" type="applet" width="250">
             <jsp:fallback>Your browser can't display this applet.</jsp:fallback>
    </jsp:plugin>It gives me error on the Browser's Java Console
    load: class DirUpload not found.
    java.lang.ClassNotFoundException: DirUpload
         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://localhost:8080/SendMailApp/DirUpload.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: DirUploadI have created a jar file, sign it and put it in to the lib of my application.
    I have also tried to change the codebase to my lib folder
    Thanks in advance.

    rajskhr wrote:
    ...I had tried the same code with simple HTML and it is working fine. I am willing to bet the HTML was accessed from a file based URL such as..
    C:/path/to/server/WebContent/WEB-INF/applet.html..rather than..
    http://localhost:8080/WEB-INF/applet.html
    ..My applet is responding as it should.What exact applet element were you using? What is the path to the applet HTML?
    I am using eclipse for my application in which the lib folder is under the "WebContent/WEB-INF" I suspected as much, by the combination of 'JSF and lib'.
    Resources under WEB-INF are only for the servers use. If you try a direct fetch in the browser (using the http://.. style address) the server will provide a message to the effect that the resource is not available. Long story short, the archive used for the applet, as well as the applet web page, must both be in locations where the server will provide them to a browser (by http://.. URL in the browser).
    In future, you might do a test in your browser, for each resource mentioned.

  • IE 6.0 cannot load Applet file

    I've found big number of topics about same problem, but I still cannot fix it. I have java 131_2 with SUN plugin. When I try to run very simple applet, IE stopped in "loading Java Applet...".And I've got the following exceptions:
    java.lang.NoClassDefFoundError: sun/misc/ClassFileTransformer
    at sun.plugin.security.JDK11ClassFileTransformer.init(Unknown Source)
    at sun.plugin.AppletViewer.initEnvironment(Unknown Source)
    java.lang.NoSuchMethodError
         at sun.plugin.ClassLoaderInfo.find(Unknown Source)
         at sun.plugin.AppletViewer.onPrivateClose(Unknown Source)
         at sun.plugin.AppletViewer$1.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)
    I'll really appretiate any help.

    Ahh, I was stuck with this problem
    The solution is within one of the options you can select when compiling
    Java 1.4 gives the user the option to compile into 1.3, 1.2 and 1.1
    try using the following command
    c:\>javac -target 1.2 SourceCode.java
    Hope this helps
    Dale M

  • Cannot load applet; coffee cup and exclamation point shown, or black box

    I am having trouble loading several Java applets under Safari for Windows. These will load with a coffee cup image with an exclamation point over top, or sometimes will simply show a black retangle. How can I go about troubleshooting this? I see no Java Console anywhere in Safari and no other trace of what's going on. How can I debug this?

    Are you using the webkit version of Safari? I think it has more diagnostic information than the public releases.

  • After update to Firefox 9 the browser cannot load any webpage.

    When I try to visit any webpage there is an error message saying that Firefox cannot connect to the server and suggesting that I check the internet connection, regardless of what webpage I try to visit. I am using Internet Explorer right now to be able to report this problem...

    Thanks! After rebooting and updating Norton Internet Security the problem was fixed.

  • Could not load applet in a browser using jre 1.6.0_06

    Hi,
    I am facing problem with loading applets when the browser uses jre 1.6.0_06.
    Not able to understand what actually the problem is, I tried to check with a small applet that would simply print Hello World on the java console. Even this applet also could not be loaded on the browser. I could load this applet in the test environment of eclipse, but not able to load it on the browser when the applet is deployed on Tomcat.
    We have no problems in loading applet if the browser is using an earlier version of the jre.
    One more thing we have found out that, if we change the SSL cipher suite of the ssl.conf file such that it can support weaker protocols, my applet works with jre 1.6.0_06 also.
    But one thing we could not understand is that why changes in SSL cipher suite of the ssl.conf file creates problem in loading the applet, only in case the browser is using jre 1.6.0_06. I mean to say that changes in the SSL cipher suite does not create any problem in loading the applet if my browser is using an earlier version of jre 1.6.0_06.
    Please help me out as I don't have any clue regarding this problem.
    Thanks in advance.

    Hi,
    We have found a wor around for this problem.
    The following option has been unchecked and the applet could be loaded.
    Go to java control panel
    Under the Advanced Tab
    Under the Security section
    Uncheck the last option "Use TLSv1.0".
    This makes the applet work.
    But could not understand as why this is creating a problem.
    We have tried to include TLSv1.0 in the cipher suite of our apache server, while keeping the above option in java plugin control panel checked, but even that did not solve the problem.
    Please help me of how should I proceed for this problem, as I am totally stuck.
    Thank you.

  • Cannot invoke Applet on browser...HELP!

    I cannot invoke Applet on browser however I can invoke the applet on appletviewer.
    Anyone that can help me?
    Thanks.

    youre gonna have some major headaches if your applet uses the swing package..
    IE's support for it is so flaky its not even funny
    If youre using awt then you really shouldnt have a problem viewing in a browser..
    just add this to your HTML code and you should be set
    <applet> code = "yourapplet.class" width = somenumber height = somenumber </applet>

  • Limitations of trial version 13? I cannot load pictures into the photomerge panorama window either from' browse' or 'add open files'.

    On Adobe's web site it states the trial version has all functionality.  FAQ, common questions & answers | Adobe Photoshop Elements 13 "These trial versions are fully functional, so every feature and aspect of the product is available for you to test-drive. Product trials can easily be converted for unrestricted use without the necessity to reinstall the software in most cases."
    However, I cannot load pictures into the photomerge panorama window either from' browse' or 'add open files'. When I select either way nothing happens.This happens if I enter panorama from photo editor and/or organizer.
    Can anybody enlighten me about this?
    Thanks,
    Barry

    It seems your Samba is denying access to these files & dirs. My best guess would be that either the Samba user is not allowed to write (and read) those (in which case you'd have to modify the permissions accordingly) or Samba sets, when the share is mounted, the permissions such that your user is not allowed to read and write (you may in this case try to just set permissions for you to allow you what you want to do; or use "create mask" or "directory mask" or "writable" in your samba config. ).
    Also, what do the logs say about this? According to your samba conf they are in /var/log/samba/%m.log where %m is the hostname or IP.

  • Cannot load an applet in a local file

    With
    Fedora Core 3
    JDK 1.5.0_05
    Firefox 1.0.7 or Appletviewer
    I can load most applets loaded fron web sites. But I cannot load a simple file:
    <html>
    <head><title>diagnostics</title></head>
    <body>
    <h1>example applet1</h1>
    <applet codebase="." code=Applet1" width=120 height=120>
    </applet>
    </body>
    </html>
    with a simple hello world applet like:
    import java.awt.*;
    import java.applet.*;
    public class Applet1 extends Applet {
    public void paint(Graphics g) {
    g.drawString("Hello World", 10, 10);
    Loading the page it reports a General exception:
    java.lang.ClassNotFoundException: Applet1
    Both files are in the same directory.
    It happens both with firefox and appletviewer.
    I would appreciate any help or feedback of similar behaviour.
    Manchu.

    I just let your code run in JCreator and I found 1 error in yout HTML code:
    <applet codebase="." code="Applet1" width=120 height=120>(that is how the line should look like, corrected)

  • Appletviewer cannot load Swing Applet

    Hi. there
    I'm facing the problem that appleviewer cannot load
    my swing applet.
    Acctually, a few days ago, before I implemented Button Event Handling, appleviewer work properly.
    But now It's not working.
    java -verbose appletviewer jadmin.html
    -> Exception in thread "main" java.lang.NoClassDefFoundError: appletviewer
    I already reinstall JDK1.3 because I chaged java.policy file.
    and then this is not a source-level problem, I put into source System.out.pritln(), but not printed.
    This is my classpath and path.
    [classpath]
    .;C:\jdk1.3\jre\lib\rt.jar;C:\jdk1.3\lib\tools.jar;C:\jakarta-tomcat-3.2\lib\servlet.jar;C:\jkjdbc\jkjdbc.jar
    [path]
    .;C:\jdk1.3\bin;C:\jdk1.3\Jre\bin;C:\Program Files\Microsoft SDK for Java 4.0\Bin
    Please Let me Know about it.
    Thank you for reading.
    p.s In Current source, several inner classes(event handling class), but appletviewer work properly with inner class prev. source that I mentioned.

    Hi,
    You don't have to call java to run the appletviewer. You'll onlyhave to run:
    appletviewer jadmin.html
    to make it work.
    Regards,
    Kurt.

  • Java security dialog freezes Java & browser when loading signed applet

    Hi,
    I have a slightly unusual scenario: I have two signed applets. One is developed by me and another one by somebody else. Let's call them Applet A and Applet B.
    Here is what hapens:
    1)Applet A loads
    2)Security dialog for Applet A - "yes, trust this vendor"
    3)applet A loads applet B with the following code taken from this sample:
    http://www.java-tips.org/java-se-tips/java.applet/have-an-applet-launch-another-applet.html
    Class appletClass = Class.forName(appletToLoad);
    Applet realApplet = (Applet)appletClass.newInstance();
    realApplet.setStub(this);
    setLayout( new GridLayout(1,0));
    add(realApplet);
    realApplet.init();
    realApplet.start();
    4) Applet B loads
    5) Applet B security dialog shows up, but it is gray. From this point on, nothing resonds. The java console is gray, all browser windows are frozen, the dialog is gray and frozen. I can move it around, but it leaves trails.
    The only hint that I have is that the last security dialog is a modal dialog, but it seems like it's pushed twice, possibly causing a deadlock?
    This is what I see in the trace file:
    security: Certificate has been verified with Root CA certificates successfully
    security: No timestamping info available
    basic: Modality pushed
    basic: Modality pushed
    Usually a "Modality pushed" is followed by a "Modality Popped".
    Does anyone have any idea how I can go about resolving this problem? This is not an issue if I manually import the certificate for Applet B into the java cert. store.
    Thanks.

    Were you able to figure out the problem? I have the same issue and it is killing me. Please share with me anything you found.

  • Firefox cannot load websites but other browser can

    background - family community home pc...mozilla worked great for the longest time (along side IE)...all of a sudden mozilla can't connect to any website...IE always can (yuk)
    troublshooting steps (still can't connect to web w/firefox):
    1. Removed Mozilla, re-installed, same results
    2. Searched for all mozilla folders. Deleted two folders and also daughter's mozilla iphone folder. Removed Mozilla, re-installed, set connection to "no proxy", same results.
    3. Ran "House Call" - no malware found.
    Help! do not like IE!

    Have you already seen [[firefox cannot load websites but other programs can]]
    *What exactly happens, or does not happen and do you get any error messages ?
    *Is it all websites you have a problem with, or only some ?
    * What happens if you work offline, can you load web pages that are saved on your own computer ? <br> (save something with IE, -as HTML web page files - maybe this page, then try opening it with both Firefox and IE)
    Can you use firefox to look at your local disk such as (depending on your setup) ''file:///C:/''
    Try checking security settings, and security logs, is firefox being blocked ?

  • Unable to load applet on one machine, but runs fine on others

    Hi there
    I have created and deployed, successfully, a JavaFX applet which I tested on my development machine and a separate machine and all is fine. The Applet with its associated HTML, JNLP and JAR file reside on a webserver, and my testing was still successful (and another colleague tried also).
    I proudly announced the location to others within the organisation (sorry I am not able to share the URL) and one person reported that all was fine, they loaded and used the application, the other reported the following error message:
    Ignored exception: java.lang.NullPointerException
    exception: JNLP file error: xxx_browser.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct..
    java.io.FileNotFoundException: JNLP file error: xxx_browser.jnlp. Please make sure the file exists and check if the "codebase" an "href" in the JNLP file are correct.
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$appletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown source)
    Exception: java.io.FileNotFoundException: JNLP file error: xxx_browser.jnlp
    This person, who is in a remote site (so not yet been able to visit the machine) is using Windows XP, IE 6.0. I have a machine which also runs this setup and can load the application.
    I am really unsure what could be the problem. I have even asked the user to load the Winter Olympics JavaFX visualisation to see if that works (it does).
    Can anyone give me any advise? I am guessing it is a problem local to that machine, rather than the JavaFX application?

    Hi there
    An update on this situation. I managed to visit said machine on Friday and found the following:
    1 - The error in the Java console is:
    java.io.FileNotFoundException: JNLP file error: XXX_browser.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
    2 - I was able to browse, and resolve, the XXX_browser.jnlp file
    3 - The client was able to load other JavaFX applets from the same server/website but they were not behind any password protection.
    4 - The client is able to use the JavaFX application via the XXX.jnlp file (i.e. web start)
    Whilst on site I noticed that IE was reporting "Could not find privacy policy for http://dl.javafx.com/ping.js". I added this site to the browsers accepted list, and marked this as Always allow this site to use cookies but to no avail.
    Remember, this site does work for another user.
    My thinking now is, when executing the URL to load the HTML you have to enter a password, (which we did), this loads the HTML which then tries to load the JAR file (in the same location) but for some reason it in turn cannot load it XX_browser.jnlp file and it is does not challenge for a username and password again (like it does when you run it as a web start).
    Any thoughts?

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

Maybe you are looking for

  • Photoshop CS5 Flickers Under Windows 8 64

    I just upgraded my Win7 64 desktop to Win8 pro 64, and now photoshop cs5 is behaving very strangely. Any mouse click operation causes the entire working window to flicker, and the background to cycle between the normal pale gray background, a window

  • How can I locate the owner of a lost Ipod Touch 4g?

    A friend found a lost Ipod Touch 4th generation and gave it to me because he's given up trying to locate the owner. Now I am trying to find its owner (last ditch effort). I've never seen this message before, but when I got it, there is a screen sayin

  • Wrong currency in intrastat XML file for Zhech Republic

    I'm having problem with intrastat XML file for Zhech Republic currency code. In selection I have defined to have report in EUR currency and all entries are correctly in EUR. But when created XML file the currency code is CZK even values are EUR value

  • Improving the LabVIEW Help: Working with Data Types

    Have you ever had trouble figuring out how to work with the waveform data type, the dynamic data type, or some of the other more complex data types in LabVIEW? As a tech writer on the LabVIEW team, I'd like to improve our documentation about working

  • JPEG Vs PNG

    hi there, here is a question i have but first i want to apologise for my writting im still learning english ok here it is, hoping that some one who can backup his/her answer read this if every time i use png results in small file size WHY do i want t