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

Notification

Icon
Error

Options
Go to last post Go to first unread
Dmitry.Obukhov  
#1 Posted : Wednesday, October 6, 2010 7:40:43 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Some of our clients using PHP Library contact us, and report about the problem with with loading Java applet under Apache. Java console displays the following text:

load: class com.aurigma.imageuploader.ImageUploader not found.

java.lang.ClassNotFoundException: com.aurigma.imageuploader.ImageUploader

The most probable reason of this problem is that the site is configured in a virtual folder, e.g.

Code:
DocumentRoot"C:/AppServ/www"Alias/php_library"D:\Work\UploaderProject\Samples6\PHP_Library"
And then ImageUploaderN.jar file could not be found.

Resolution:

  • Image Uploader 6.x

    Use setScriptsDirectory() method to specify path to Image Uploader client scripts:

    Code:
    …
    $uploader->setScriptsDirectory ('../ImageUploaderPHP/Scripts');
    …

  • Image Uploader 7.x

    Specify URL to ImageUploader7.jar (Java control) and ImageUploader7.cab (ActiveX control) files through setCodeBase property, and to client scripts through setScriptsDirectory method like in this code snippet:

    Code:
    ...
    $uploader->setScriptsDirectory ('../ImageUploaderPHP/Scripts');
    $uploader->getJavaControl()->setCodeBase ('../ImageUploaderPHP/Scripts/ImageUploader7.jar');
    $uploader->getActiveXControl()->setCodeBase ('../ImageUploaderPHP/Scripts/ImageUploader7.cab');
    ...

Note: please be sure, that all listed files are located by the specified paths.

Edited by user Sunday, February 13, 2011 6:12:18 PM(UTC)  | Reason: Not specified

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

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.