Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
designamosaic.com  
#1 Posted : Friday, July 28, 2006 7:52:51 AM(UTC)
designamosaic.com

Rank: Member

Groups: Member
Joined: 7/28/2006(UTC)
Posts: 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

Edited by user Tuesday, February 19, 2008 1:16:56 PM(UTC)  | Reason: Not specified

Fedor  
#2 Posted : Sunday, July 30, 2006 1:07:53 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
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?

Edited by user Wednesday, October 29, 2008 2:35:57 AM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
designamosaic.com  
#3 Posted : Sunday, July 30, 2006 2:30:59 AM(UTC)
designamosaic.com

Rank: Member

Groups: Member
Joined: 7/28/2006(UTC)
Posts: 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  
#4 Posted : Sunday, July 30, 2006 1:27:05 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
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?

UserPostedImage

Edited by user Monday, December 21, 2009 2:43:08 AM(UTC)  | Reason: Not specified

Fedor attached the following image(s):
FirefoxNoJava.png
Best regards,
Fedor Skvortsov
are  
#5 Posted : Monday, August 14, 2006 5:53:05 AM(UTC)
are

Rank: Member

Groups: Member
Joined: 8/14/2006(UTC)
Posts: 3

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.

Edited by user Tuesday, February 19, 2008 1:17:21 PM(UTC)  | Reason: Not specified

Alex Makhov  
#6 Posted : Monday, August 14, 2006 11:59:56 AM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Member
Joined: 8/3/2003(UTC)
Posts: 998

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";

Edited by user Tuesday, February 19, 2008 1:17:35 PM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
are  
#7 Posted : Monday, August 14, 2006 11:39:13 PM(UTC)
are

Rank: Member

Groups: Member
Joined: 8/14/2006(UTC)
Posts: 3

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