Applet exception...

Hey guys... this is my first post on these forums.
I just recently created a Java applet to run on my webpage that will produce a graph (with the data being read from a text file that is populated by a CRONJOB php script). I decided to go object oriented in the design having 3 classes. Anyways, I keep getting a
java.security.AccessControlException
I only get this when it's on the server... whenever I run this applet on my local machine, everything works perfectly. I had never gotten this before, and I looked it up on the Java API, and it said something about that this indicates that access to a file system or network was denied. To make sure that it wasn't a Linux problem, each of my text files have Read, Write, and Execute auths. What could be causing this exception...
Is it some setting in the server?
Is there something I can do in the code to get around this?
HELP!?!?!?!?!
Thanks,
Trey

Applets can only access resources that are on the same server as the applet's codebase.
You can open an URL to the machine that hosts the applet or you have to give special
permission to the applet (sign it).
Signing applets:
http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
second post and reply 18 for the java class file using doprivileged
http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
Still problems?
A Full trace might help us out:
http://forum.java.sun.com/thread.jspa?threadID=656028

Similar Messages

  • Applet exception IE

    Hello everybody
    I've got this exception in my applet while running at IE. The applet is a Jtable and this exception occurs when a textfield lost focus, then have to show a message dialog. It isn't showed, unless I change to another browser window. I'm running with JRE 1.4.2_05.
    Thanks in advance.
    java.lang.IllegalArgumentException: null source
         at java.util.EventObject.<init>(Unknown Source)
         at java.awt.AWTEvent.<init>(Unknown Source)
         at java.awt.event.ComponentEvent.<init>(Unknown Source)
         at java.awt.event.WindowEvent.<init>(Unknown Source)
         at java.awt.event.WindowEvent.<init>(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.SentEvent.dispatch(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent.dispatch(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)
    PD. When the applet is loaded the first time, I got this exception
    java.lang.InternalError: obsolete interface used
         at sun.java2d.NullSurfaceData.getRaster(Unknown Source)
         at sun.java2d.loops.OpaqueCopyAnyToArgb.Blit(Unknown Source)
         at sun.java2d.loops.GraphicsPrimitive.convertFrom(Unknown Source)
         at sun.java2d.loops.MaskBlit$General.MaskBlit(Unknown Source)
         at sun.java2d.loops.Blit$GeneralMaskBlit.Blit(Unknown Source)
         at sun.java2d.pipe.DrawImage.blitSurfaceData(Unknown Source)
         at sun.java2d.pipe.DrawImage.renderSurfaceData(Unknown Source)
         at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
         at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
         at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
         at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
         at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
         at sun.plugin.AppletViewer.paintForegrnd(Unknown Source)
         at sun.plugin.AppletViewer.paint(Unknown Source)
         at sun.awt.RepaintArea.paint(Unknown Source)
         at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.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)
    but it's working anyway. i dn't know if this has some relationship with the event problem.

    Sorry, I forgot tell that this problem only happens when I accept the messageDialog typing the ENTER key. If I click with the mouse on the Ok button, it works perfectly. I hope this could help.
    Thanks

  • Applet: Null Pointer Exception in NN but not in IE???!!!!

    hi all,
    i have worked on a an applet that uses a nother Runnable class to implement an animated progress bar using MediaTracker, and i can control when to start animation and when to stop it! it worked great on IE. But when i came to test it on Netscape Navigator, it surprised me with THIS
    and now i don't know what to do
    # Applet exception: java.lang.NullPointerException
    java.lang.NullPointerException
    at sun.awt.windows.WGraphics.drawImage(Compiled Code)
    * at AnimationPanel.flip(Compiled Code)
    at AnimationPanel.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)
    java.io.IOException: CreateProcess: vcafe -netscape error=2
    at java.lang.Win32Process.<init>(Compiled Code)
    at java.lang.Runtime.exec(Compiled Code)
    * at java.lang.Runtime.exec(Compiled Code)
    at netscape.debug.Debugger.launchDebugger(Compiled Code)
    at netscape.debug.Debugger.uncaughtException(Compiled Code)
    at netscape.applet.AppletThreadGroup.uncaughtException(Compiled Code

    well, thanks everybody, seems i wasn't the only one troubled with this:
    for ppl who might read my Q next time,
    always run u'r applet from a web server! :)
    netscape has it's own way! in everything ...

  • Applet Parameters For Animated Gif Using AWT

    I need to have my applet except parameters to change from one type of animated gif (dog) to another animated gif (cat). There are two for each animal. If the animal parameter is "dog" the dog1.gif and the dog2.gif will be used for the animation. I'm not too sure on how to go about this.
    private String sDog;
    private String sCat;
    sDog = getParameter("");
    if (sDog.equalsIgnoreCase("dog"))
    How do I add both gifs in the control statement?
    Thanks so much,
    Jeff

    private String sDog;
    private String sCat;
    sDog = getParameter("dog");
    for(int i=1;i<3;i++){
    if (sDog.equalsIgnoreCase("dog" i".gif"))
    //code to display the gif
    remember your parameter should be <b>dog</b>

  • Finally.... Video captured from applet in Vista!!

    Hello!
    Hurray!! finally I can see myself smiling and waving back in browser in Vista.
    I mentioned in another thread just a day earlier that I will post a new topic if I succeed in capturing from applets in Vista, so thats what I am doing.... This thread is all about how achieved it.
    I have seen many posts mentioning problems in capturing from applets in vista. I was also one of the sufferer. And most people including me blamed that on restricted sandbox of Vista. But surprisingly it was all about classpath.
    I think I mentioned in some earlier thread that the 'Java console' shows the classpath to be *"{JREHOME}/classes"* instead of the classpath specified in CLASSPATH environment variable. You can check that by pressing 's' which *'dumps system and deployment properties'* in the Java Console. You can check the classpath by noting the value of *"java.class.path"* field which for my case was"C:\\PROGRA~1\\Java\\jre6\\classes". This turned out to be the main problem. The applet was not accessing any classes from the real CLASSPATH instead it was considering the classpath to be jrehome/classes. So, now I had enough hint what to do next. I simply created a folder 'classes' in {JREHOME} and copied the jmf registry files to that folder. By registry files I mean *'jmf.properties'* and *'jmf.properties.orig'* files in *'{JMF Install}/lib'* folder (actually i don't which among them has got some thing to do with the registry but I copied them both). So, after doing this, all my capture applets, whether signed or unsigned started running. Earlier they all were throwing *"java.lang.RuntimeException: No permission to capture from applets"* exception even after I have allowed capture from applets in JMF registry. That was perhaps not taking affect because of classpath issues. So, thats the story.... if someone faces the same problem he can use this workaround or you can say hack ;-)
    Some questions which can be asked from me would be:
    1- Did you set your CLASSPATH environment variable correctly?
    ans: Yes, infact all my jmf applications were running correctly, the problem was only with the applets.
    2- What classpath other systems (e.g. XP) mention in the Java console ?
    ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also.
    3- Is this problem really Vista specific?
    ans: Can't say... but it can be. It maybe the case that Vista does not allow access to real CLASSPATH, but this problem can easily be my system specific, it would be called a general vista problem if this happens on all Vista systems, I need volunteers for this test. captfoss, can you please test this on your system? :)
    4- Is this problem JMF specific?
    ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific.
    Drawbacks of this work around:
    1- This can be a pain for ordinary users , copying registry files from JMF/lib to JRE/classes.
    2- Whatever you change in JMF registry would not be effective to the applets. As the old registry files are to be replaced with new registry files every time JMF registry is changed for changes to take effect in applets.
    The real big question:
    How can we force Vista to look in the real CLASSPATH? this is the real question, if this can be done just by changing some settings then all this workaround is useless :) I am looking forward to the answer of this question.....
    captfoss, I would highly appreciate your comments.
    Thanks for reading this rather long post.... :)
    Thanks!

    A couple of comments here...the answer is, in fact, no, you didn't set your classpath correctly. One, you're probably using a JAR file to run your applet from (I'm not an applet programmer but I do believe that a JAR is required) which do not use the environment's classpath, they use their manifest classpath. No, the applet was not jared.
    Second, I believe that the browser itself specifies its own classpath, which you cannot modify. I believe this would be considered a security feature...Both IE7 and firefox3 fail.
    "You have little control over the CLASSPATH used by a browser for an Applet"
    [http://mindprod.com/jgloss/classpath.html]
    Ok this maybe the reason, I will go through the link....
    2- What classpath other systems (e.g. XP) mention in the Java console ?
    ans: surprisingly, the same classpath that Vista mentions i.e. {JREHOME}/classes. I tested on XP-SP3, but it supposedly had access to the real CLASSPATH also. There isn't a "real" CLASSPATH, there is just the classpath stored as an environmental variable. It's no more or less real than the one in the browser.Thats what I thought.... but I think {JREHOME}/classes is the default class path used by the jre whether we set any CLASSPATH variable or not it would be there, something of that sort.....
    Lots of possibilities, but my best guess is that Vista doesn't let code running in the browser read environmental variables.Yes, I fully agree with this. I think I should file a bug report.
    4- Is this problem JMF specific?
    ans: Chances are low. I am going to test this by making my own test library and adding it to classpath and then try to access it via applet. If this fails then this problem is not JMF specific. Definately not. It would apply to any code that wants to access something on the classpath. You are right... as I said I would test it, I tested by making a small library, added it to classpath, made an application and an applet. As expected, the aplication worked while the applet failed.
    Any application with a custom classpath would be affected.I don't understand what you mean here, do you mean 'Class-path' header in jar manifest?
    I like the "installation requirement" part. I'd suggest looking into that. Alternately, there may be something in the security settings to allow access to environmental variables.I will try to look into both.
    I just tried this statement in applet:
    System.out.println( System.getProperty( "java.class.path" ) );It threw this exception:
    Exception: java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read)
    I don't know what conclusion should I draw from this... this does mean applet has no right to know what the classpath is.... but this doesn't mean even jre plugin responsible for running applet does not know what the classpath is :)
    Finally, I want to say that due to some problems I could not post earlier, and I may not post for few more days. But I appreciate your comments and would appreciate more of them.
    Thanks!

  • Signed applets

    All
    I'm trying to modify a few class files for an application that is kicked off with an applet(uses servlets, etc..). Originally there was a certificate used to allow the applet to read files from the client. There's a JAR file on the server that contains the .class files that do the work. I changed and recompiled some of the .class files and added them to the JAR file using:
    c:>jar uf MyJar.jar Folder/Class1.class
    c:>jar uf MyJar.jar Folder/Class2.class
    c:>jar uf MyJar.jar Folder/Class3.class
    I replaced the old JAR file with the new one, and now I get the following Exceptions when I try to run the applet:
    ==========================================================
    Exception occured while trying to enable privelage : netscape.security.ForbiddenTargetException: User didn't grant the UniversalFileAccess privilege.
    Exception in getClassesDirectory() 1netscape.security.AppletSecurityException: security.checkread: Read of 'java\classes\' not permitted
    Exception in getClassesDirectory() 2netscape.security.AppletSecurityException: security.checkread: Read of 'C:\' not permitted
    Exception in getClassesDirectory() 3netscape.security.AppletSecurityException: security.checkread: Read of 'D:\' not permitted
    Exception occured while trying to enable privilege : netscape.security.ForbiddenTargetException: User didn't grant the UniversalFileAccess privilege.
    ==========================================================
    This applet is run from a Netscape 4.x browser. It worked fine before I changed the JAR file.
    All I did was recompile and add the new class files to the JAR file. Can anybody suggest why this applet was working before, but now I get these "netscape.security" Exceptions?
    Thanks in advance...

    Look up information on the jarsigner and keytool tools that come with the sdk. You will need keytool to import the signature into a local keystore, then use jarsigner to actually sign the jar file. For more information on these tools, Read the Java Tutorial section on jar files. You can get to the Java Tutorial by clicking on the Tutorials link on the left, then clicking on the Java Tutorial link.

  • Applet can't read local file on web server, security issue!

    There is any way to read/write files of web server through the applet except the Signed Applet.
    If any idea the reply me soon.
    Thanks in advance

    Applets are downloaded from web servers and execute on the client machine.
    Therefore they have no access to the web server file system, signed or not.
    They could have access to the client file system (the machine where they run),
    but for security reasons only signed applets have this privilege.
    So to answer your question, you sign if you want to access client files.
    To access web server files, you don't need to sign the applet, but you need
    to provide some method of accessing files remotely, for instance:
    - Files published for the web can be read using HTTP
    - Files can be read or writen with the help of an FTP server on the same machine as the web server
    - A servlet running on the HTTP server can collaborate with your applet to exchange files

  • A simple Applet that doesn't work...

    1. The class file is compiled without any problems
    2. The html-file works. It's in the same directory.
    But when I open the html-file I've this output
    (Java Console InternetExplorer 5.5):
    Error loading class: test
    java.lang.NoClassDefFoundError
    java.lang.ClassNotFoundException: test
    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
    In Netscape...(Java Console):
    Netscape Communications Corporation -- Java 1.1.5
    Type '?' for options.
    Symantec Java! ByteCode Compiler Version 210.065
    Copyright (C) 1996-97 Symantec Corporation
    # Applet exception: error: java.lang.ClassFormatError: Bad major version number
    java.lang.ClassFormatError: Bad major version number
    at java.lang.ClassLoader.defineClass(Compiled Code)
    at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
    at netscape.applet.AppletClassLoader.findClass(Compiled Code)
    at netscape.applet.AppletClassLoader.loadClass1(Compiled Code)
    * at netscape.applet.AppletClassLoader.loadClass(Compiled Code)
    at netscape.applet.AppletClassLoader.loadClass
    (Compiled Code)
    at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    The code of the applet is:
    import java.awt.*;
    import java.applet.*;
    public class test extends Applet {
    String text = "error";
    int x = 0;
    int y = 20;
    public synchronized void init() {
              text = getParameter("text");
              try {
                   x = Integer.parseInt(getParameter("x"));
                   y = Integer.parseInt(getParameter("y"));
                   } catch ( NumberFormatException ex ) {}
    public synchronized void paint(Graphics g) {
              g.setFont( new Font("TimesRoman", Font.BOLD+Font.ITALIC, 36));
              g.drawString(text,x,y);
    The HTML code is:
    <html>
    <body>
    <applet code="test.class" width="300" height="300">
         <param name="text" value="Browser Usage">
         <param name="x" value="50">
         <param name="y" value="50">
    </applet>
    </body>
    </html>
    Thanks!

    works here,
    http://www.geocities.com/rmlchan/test.html
    use the same jdk and jre/plug-in for the browser.

  • Can applet use multicast broadcasting?

    Hello
    Can applet listen to server sending to multiple sockets?. When I tried to run applet exception showed up. Applet would listen for message, server was sending messages in a thread. Could You direct me to some examples which can do such thing?. (Server sending String message, two or more applets receive it, Talk from Java Tutorial is not working). Can this only be done by broadcasting?.
    Cheers
    Message was edited by:
    macmacmac

    But is there a way to get around this restriction?.I'm not sure there is a general restriction. I have
    just used my muticast bus to receive multicast in a
    JApplet using the Applet Viewer and it works
    perfectly. Therefore, if there is a restiction then
    it probably is a securtiy restriction so that it
    should be possible to overcome this by signing the
    Applet.This is what I thought too but ejp thinks different and he wrote a book on it so I don't know. He last post seems to also show this can't be done.
    >
    If I get some time later I will test this and post
    the result.I would be interested to hear the results.
    I would also be interested in anything that might point out why this decision was made if it is truly impossible. It seems dumb to me but perhaps an explanation of what the thought process was would help.

  • URGENT Help for applet with JAR file in Netscape

    I am having Applet with few classes
    Html is in /www directory
    and all class files are in /www/javaclassfiles
    I jared all javaclassfiles with following command
    c:\www\javaclassfiles>jar -cvf sample.jar TaxPaymentAppletForm.class *.class
    where sample.jar is my jar file and TaxPaymentAppletForm.class is the main applet class file.
    THEN I DELETED ALL CLASS FILES & KEPT ONLY SAMPLE.JAR FILE ON SERVER
    My html code is like below:
    <APPLET CODE="TaxPaymentAppletForm" ARCHIVE="sample.jar" CODEBASE="JavaClassFiles" WIDTH=460 HEIGHT=400></APPLET>
    The things are running on IE properly, but not on Netscape. Netscape is giving following error :
    java.io.IOException: <null>
    at netscape.net.URLConnection.connect(Compiled Code)
    at netscape.net.URLConnection.getInputStream(Compiled Code)
    * at netscape.applet.AppletClassLoader.grabArchiveFile(Compiled Code)
    at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
    at netscape.applet.AppletClassLoader.openArchive(Compiled Code)
    at netscape.applet.AppletClassLoader.<init>(Compiled Code)
    at netscape.applet.AppletClassLoader.getClassLoader(Compiled Code)
    at netscape.applet.DerivedAppletFrame$LoadAppletEvent.dispatch(Compiled Code)
    at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(Compiled Code)
    at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    # Unable to load archive http://nearbuy_server:90/iras/JavaClassFiles/sample.jar: java.io.IOException: <null>
    # Applet exception: class TaxPaymentAppletForm could not be loaded
    # Applet exception: class TaxPaymentAppletForm could not be loaded
    # Applet exception: class TaxPaymentAppletForm could not be loaded
    In netscape also it is sometimes running some times not, without any logical reson.
    Any help regarding this is appreciated
    manisha

    Following is the more detailed analysis when applet is running and when not
    On local server, it is running fine on both IE / Netscape
    When I transfered jar file to live server
    On IE it is running for the first time and then onwards not running, If I clear the catch then again applet is running.
    For second time it is giving following error :
    IOException Loading Archive: http://dev1.janusx-collections.com/iras/JavaClassFiles/AppletForm.jar
    java.io.IOException: dev1.janusx-collections.com:80//iras/JavaClassFiles/AppletForm.jar
    at com/ms/net/wininet/http/HttpInputStream.connect
    at com/ms/net/wininet/http/HttpInputStream.<init>
    at com/ms/net/wininet/http/HttpURLConnection.createInputStream
    at com/ms/net/wininet/WininetURLConnection.getInputStream
    at com/ms/vm/loader/JarArchiveSet.loadNextJar
    at com/ms/vm/loader/JarArchiveSet.getResourceBits
    at com/ms/vm/loader/JarArchiveSet.getClassData
    at com/ms/vm/loader/ResourceLoader.getClassData
    at com/ms/vm/loader/URLClassLoader.findClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    java.lang.ClassNotFoundException: TaxPaymentAppletForm
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    ON Netscape it is NOT running at all on from live server and error is as given in above first post.
    manisha

  • Signed applet stopped working

    All
    I'm trying to modify a few class files for an application that is kicked off with an applet(uses servlets, etc..). Originally there was a certificate used to allow the applet to read files from the client. There's a JAR file on the server that contains the .class files that do the work. I changed and recompiled some of the .class files and added them to the JAR file using:
    c:>jar uf MyJar.jar Folder/Class1.class
    c:>jar uf MyJar.jar Folder/Class2.class
    c:>jar uf MyJar.jar Folder/Class3.class
    I replaced the old JAR file with the new one, and now I get the following Exceptions when I try to run the applet:
    ==========================================================
    Exception occured while trying to enable privelage : netscape.security.ForbiddenTargetException: User didn't grant the UniversalFileAccess privilege.
    Exception in getClassesDirectory() 1netscape.security.AppletSecurityException: security.checkread: Read of 'java\classes\' not permitted
    Exception in getClassesDirectory() 2netscape.security.AppletSecurityException: security.checkread: Read of 'C:\' not permitted
    Exception in getClassesDirectory() 3netscape.security.AppletSecurityException: security.checkread: Read of 'D:\' not permitted
    Exception occured while trying to enable privilege : netscape.security.ForbiddenTargetException: User didn't grant the UniversalFileAccess privilege.
    ==========================================================
    This applet is run from a Netscape 4.x browser. It worked fine before I changed the JAR file.
    All I did was recompile and add the new class files to the JAR file. Can anybody suggest why this applet was working before, but now I get these "netscape.security" Exceptions?
    Thanks in advance...

    You wrote:
    "All I did was recompile and add the new class files to the JAR file."
    Did you sign the new .jar-file after adding the new class files?
    If not, then have a look at the programs keytool.exe and jarsigner.exe which both come as a part of the Java SDK.

  • Applet compiled with 1.4 not running in IE 6

    I have a java applet when compiled with the 1.3 java sdk that came Oracle, runs correctly in IE 6. The applet opens a socket.
    When I compile it using 1.4 java sdk from sun and run it in IE 6 it does not work.
    When I installed the 1.4 SDK I selected to use it as IE's default java machine.
    Note if I look in the internet options, settings, view objects it shows the 1.4.1 jre twice.
    Note I can not remove the 1.3 jre that comes with Oracle as the installation is dependant on it.
    The java classes included in my applet is
    import java.net.*;
    import java.io.*;
    import java.text.*;
    import java.awt.*;
    import java.lang.Thread;
    import java.applet.*;
    I have the sdk bin directory early in the path and class path enviroment includes rt.jar from the 1.4 sdk.
    I have even been into the reg and edited IE's classpath.
    Anybody help, how do I know what jre, IE is using or why the applet won't run in IE6. Both versions run in Appletviewer.
    Once I get this working I want to add javax and org classes to start passing XML over the socket anybody got advise on this also.

    there are a couple of things to try with this. first is to try the class out with the java plugin enabled - this makes IE run the 1.4.1 VM, instead of the default 1.1 VM in IE. if this works, you probably have a version conflict in your code, and could try compiling with
    '-target 1.1'
    in your arguments. The problem I'm having is to do with finding the referenced classes in the applet. Try commenting EVERYTHING out of your applet (except 'init') and then running it. if the applet loads, the problem is that any class you try to instantiate inside the applet is not found by the browser. (NB you get the same error message with a version conflict as with a missing class file, very helpful...).
    I'm not on this list much so if you want to talk more, or if you've solved this problem, please email me at [email protected]
    String signoff = "thanks in advance for any help" OR "hope this helped"

  • Applet not loading from jsp

    using weblogic server 6.1 sp2, solaris 8 mu7, netscape 6.2.1
              the compiled applet UploadScreenshots.class is bundled into a web app
              file named roach.war and resides in the following directory in the war
              file:
              WEB-INF/classes/roach/web/applets/UploadScreenshots.class
              trying to deploy applet from jsp with following plugin definition in
              jsp:
              <jsp:plugin type="applet"
              code="roach.web.applets.UploadScreenshots.class"
              codebase="/classes/"
              height="200" width="500"
              jreversion="1.3"
              nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
              iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab">
              <jsp:fallback>
              <font color=#FF0000>Sorry, cannot run java applet!!</font>
              </jsp:fallback>
              </jsp:plugin>
              when executing the jsp from the browser, get the following error
              message when browser attempts to load the applet:
              Exception: java.lang.ClassNotFoundException:
              roach.web.applets.UploadScreenshots.class
              however, when codebase attribute is removed from plugin element
              definition and the compiled applet class (and its directory) is moved
              to the same directory as the jsp, the applet loads and works without
              any problems!
              what's up???
              

    joseph,
              thanks for the follow up. i still was not able to load the applet from
              the web-inf directory so i just jarred up the applet, stuck the jar
              file in the jsp directory, and added the archive attribute to the
              jsp:plugin element. everything loads and works fine. maybe i'll
              revisit loading applets from the web-inf directory later. thanks
              again.
              rick
              "Joseph Nguyen" <[email protected]> wrote in message news:<[email protected]>...
              > Rick,
              >
              > Take a look here real quick:
              > http://e-docs.bea.com/wls/docs70/jsp/trouble.html#error-plugin. It's not
              > much, but if it doesn't help please open a case with BEA Support via
              > WebSupport portal here http://support.bea.com/welcome.jsp as there is no
              > existing issue in our bug db right now with the jsp:plugin tag.
              >
              > Regards,
              > Joseph Nguyen
              > BEA Support
              >
              > "rick bryant" <[email protected]> wrote in message
              > news:[email protected]...
              > > using weblogic server 6.1 sp2, solaris 8 mu7, netscape 6.2.1
              > >
              > > the compiled applet UploadScreenshots.class is bundled into a web app
              > > file named roach.war and resides in the following directory in the war
              > > file:
              > > WEB-INF/classes/roach/web/applets/UploadScreenshots.class
              > >
              > > trying to deploy applet from jsp with following plugin definition in
              > > jsp:
              > > <jsp:plugin type="applet"
              > > code="roach.web.applets.UploadScreenshots.class"
              > > codebase="/classes/"
              > > height="200" width="500"
              > > jreversion="1.3"
              > >
              > nspluginurl="http://java.sun.com/products/plugin/1.3/plugin-install.html"
              > >
              > iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab"
              > >
              > > <jsp:fallback>
              > > <font color=#FF0000>Sorry, cannot run java applet!!</font>
              > > </jsp:fallback>
              > > </jsp:plugin>
              > >
              > > when executing the jsp from the browser, get the following error
              > > message when browser attempts to load the applet:
              > > Exception: java.lang.ClassNotFoundException:
              > > roach.web.applets.UploadScreenshots.class
              > >
              > > however, when codebase attribute is removed from plugin element
              > > definition and the compiled applet class (and its directory) is moved
              > > to the same directory as the jsp, the applet loads and works without
              > > any problems!
              > >
              > > what's up???
              

  • Write PDF file to client's machine using Applet

    Hi all,
    I want to use Java Applet to write a PDF file into the client's computer when he/she double click the URL in browser. Can I do that and HOW. I heard that i need to signed the applet and make security manager enable, but how to do it?
    Also, is it any different to do this for IE5X and NS4X browser?
    Thanks for your information.

    Hi,
    I don't know how to do that with a signed applet (excepting if you want to write in the PDF format), but you can do this with a script (like asp) and an active X written with VB. You can build and manipulate Word or Excel Object with VB and so build dynamically your document.
    When your document is ready (in the active X), you can use the distiller from acrobat (you need a license to use it) and you can create a new file on your hard drive (server side).
    Your script will do the following:
    1) load (createobject) the active X
    2) call the method in the active x
    3) redirect the client to the correct page (the new document you created)
    I don't have any code to give you, but I did the same thing last year and it worked...
    I think that you can also interact between an applet and an active X (I saw something like that in the forum)...
    Of course this solution is running server side (the file will be created server side) but the client will be able to see his document in his browser and will be able to save it.
    I hope that it can help you even if it is not with java...
    Blaise

  • Applet connecting to Mysql on serverside?problem

    hi all
    i am having some problem in Applet
    The problem is i am drawing on an applet.
    which is taking input from database(Mysql)
    it is running fine on konsol in appletviewer,
    but when i run in Browser(NetScape 4.*) it is giving error
    Applet not started , code is as follows
    /*<applet code="AppletSql" width=100 height=100></applet>*/
    import java.sql.*;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    import org.gjt.mm.mysql.Driver;
    public class AppletSql extends Applet{
    Exception e1;
    Button b ;
    public void init(){
    try{
    Class.forName("org.gjt.mm.mysql.Driver").newInstance();
    }catch(Exception e){}
    b= new Button("Hi");
    add(b);
    i am using Tomcat as my server, now i am keeping my this applet in my /usr/local/jakarta..../weapps/examples/jsp .is it the problem of my server, do i have to configure my server for mysql-connector..
    or is it like this as appets are running on client side,so u cannot
    connect to Drivers on Server,or i have to write socket prog.. for
    connecting to Applet can i do the same thing swings or beans,or can i draw graphics with beans
    Thanking you
    sunil

    In your html page, you need to have the applet tag e.g
    <applet code="classname" codebase="serverurl" height="" width="">
    </applet>

Maybe you are looking for

  • Horizontal Menu in IE6

    Created a horizontal menu works great in all browsers but IE6, http://www.remodelersoutlet.com. I posted in the forum a couple of weeks ago but no response so I'm giving it another try. I think the problem is with visited links, but can't resolve. He

  • How to handle BULK error IN Session

    HI Lets take a scenario I am uploading data of 1000 records in those I uploaded 400 records successfully 600 were failed,  ( In case of less error records I will go to sm35 There I will process corresponding error session and I will do check I will u

  • DVD+R Problems

    I have a Macbook that i bought in September and all was great until a few weeks ago when all of a sudden it has started to refuse to read all DVD+R media, some movie DVDs and audio CDs. It seems to read DVD-R and CD-R media fine but when i try to bur

  • Understanding http log

    Hi, I know that the doc did specify a very high level of understanding the log: dateTime hostName processName[pid]: category logLevel: eventMessage However I have couple of questions here: Q1) Why is there different IP addresses shown? 129.2.20.19 is

  • Preference pane crashes.. Help!

    Everything else in the Prefs pane work fine except security and sharing pane. When I click on it, the prefs pane is not responding. The only way to solve this is to force quit. I'm also unable to log in once I log out, there will be blue screen with