Welcome Guest Search | Active Topics | Members

Java Applet Won't Load in Firefox Options
designamosaic.com
Posted: Friday, July 28, 2006 3:52:51 PM
Rank: Member
Groups: Member

Joined: 7/28/2006
Posts: 3
Points: 3
Hello,

I've just downloaded the trial of Image Uploader and plan on purchasing it as soon as I get this straightened out. Here's my relevent code:

Code:
      //For ActiveX control full path to CAB file (including file name) should be specified.
      iu.activeXControlCodeBase = "/aurigmaImageUploadFiles/ImageUploader4.cab";
      iu.activeXControlVersion = "4,0,33,0";
      
      //For Java applet only path to directory with JAR files should be specified (without file name).
      iu.javaAppletCodeBase = "/aurigmaImageUploadFiles/";
      iu.javaAppletCached = true;
      iu.javaAppletVersion = "2.0.35.0";


Both the java applet and the activeX controller are in the same folder, and the activex one will load fine in IE, but the java one won't load in firefox. I'm using windows xp with sp2. Any help would be greatly appreciated.

Thanks,
Kevin
Fedor
Posted: Sunday, July 30, 2006 9:07:53 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,254
Points: -345
Location: WA, US
Hello Kevin,

Quote:
Both the java applet and the activeX controller are in the same folder, and the activex one will load fine in IE, but the java one won't load in firefox. I'm using windows xp with sp2. Any help would be greatly appreciated.


What error do you see in Java console?


Best regards,
Fedor Skvortsov
designamosaic.com
Posted: Sunday, July 30, 2006 10:30:59 AM
Rank: Member
Groups: Member

Joined: 7/28/2006
Posts: 3
Points: 3
Okay, I figured out the problem, I didn't have java installed.

However, it did not prompt me to install java. Is there a way to get it to prompt you to install java if you do not have it installed?
Fedor
Posted: Sunday, July 30, 2006 9:27:05 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 7/28/2003
Posts: 1,254
Points: -345
Location: WA, US
Quote:
However, it did not prompt me to install java. Is there a way to get it to prompt you to install java if you do not have it installed?


Have not you seen Firefox information bar about missing plugins?



Fedor attached the following image(s):
FirefoxNoJava.png



Best regards,
Fedor Skvortsov
are
Posted: Monday, August 14, 2006 1:53:05 PM
Rank: Member
Groups: Member

Joined: 8/14/2006
Posts: 3
Points: 0
Hello. I am having a similar problem. When I enter the page with the applet all I see is a red X in the corner of the applet area. Here are the details:

Code:
      <script language="javascript">
        var iu = new ImageUploaderWriter("ImageUploader", 650, 450);

        // If you do not want to use ActiveX or Java version, set the appropriate
        // property to false.
        iu.activeXControlEnabled = true;
        iu.javaAppletEnabled = true;

        //...other params...
        iu.addParam("LicenseKey", "XXXX-XXXX-XXXX-XXXX");  <--REMOVED FOR PRIVACY!!

        iu.activeXControlCodeBase = "/_scripts/iu/ImageUploader4.cab";
        iu.activeXControlVersion = "4,0,33,0";            
            
        //For Java applet only path to directory with JAR files should be specified (without file name).            
        iu.javaAppletCodeBase="/_scripts/iu/";
        iu.javaAppletVersion = "2.0.35.0";

        iu.addParam("MaxFileCount", "10");
        iu.addParam("MaxFileSize", "2097150");
        iu.addParam("MaxTotalFileSize", "10485760");

        iu.showNonemptyResponse = "off";

        //Configure thumbnail settings.
        iu.addParam("UploadThumbnail1FitMode", "Fit");
        iu.addParam("UploadThumbnail1Width", "120");
        iu.addParam("UploadThumbnail1Height", "120");
        iu.addParam("UploadThumbnail1JpegQuality", "60");

        iu.addParam("FileMask", "*.jpg;*.jpeg;*.jpe;*.bmp;*.gif");

        //Configure URL files are uploaded to.
        iu.addParam("Action", "/sell/upload.asp")

        //Configure URL where to redirect after upload.
        iu.addParam("RedirectUrl", "<%=GetRedirectURL(intRedirect)%>")
        iu.addParam("UploadSourceFile", "true");

        // ... initialize params as described in the next topic ...

        // As soon as you call this method, all necessary HTML code is inserted
        // into the page on the current position. Alternatively, you can
        // get the string with appropriate HTML code using the getHtml method,
        // and write it to the necessary position manually (maybe with some modifications).  
        iu.writeHtml();
      </script>


The Error Reported by the Java Console is:

Code:
load: class com.aurigma.imageuploader.ImageUploader.class not found.
java.lang.ClassNotFoundException: com.aurigma.imageuploader.ImageUploader.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 10 more



Not sure what the problem is. Works great in IE. Please review my code. Does it have to do with the file path having an underscore in it. It seems as though the Image Uploader class cannot be found. Thanks.
Alex Makhov
Posted: Monday, August 14, 2006 7:59:56 PM

Rank: Advanced Member
Groups: Member

Joined: 8/3/2003
Posts: 996
Points: 1
Hello,

As I see on the Java console your browser can not find ImageUploader2.jar file. Check if the file is really in the specified path (./_scripts/iu/). Try to explicitly set all the parameters regarding applet:
Code:
iu.javaAppletEnabled = true;
iu.javaAppletJarFileName="ImageUploader2.jar";
iu.javaAppletClassName="com.aurigma.imageuploader.ImageUploader.class";
iu.javaAppletCodeBase="/_scripts/iu/";
iu.javaAppletVersion = "2.0.35.0";


Sincerely yours,
Alex Makhov
are
Posted: Tuesday, August 15, 2006 7:39:13 AM
Rank: Member
Groups: Member

Joined: 8/14/2006
Posts: 3
Points: 0
The code that you gave me I added to my existing code and it worked. Just brilliant man! I send you many thanks for the quick response. :D :cool:
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.