This discussion is archived
10 Replies Latest reply: Oct 23, 2012 5:28 AM by 654287 RSS

load: class appletviewer.viewer.class not found

654287 Newbie
Currently Being Moderated
Greetings,
My apologies if this is in the wrong forum, but I have no idea where to post this. I am not a java programmer, but need to correct a problem with a webpage we have that connects to a SONY WebCam on the roof of our building. Note, I inherited the code.

I can access the admin screen of the webcam via Internet Explorer and it all runs fine. I click the option to use JAVA and it works. But, when trying to view the WebCam from a webpage on our site, I get a JAVA error. What is also odd is that from a couple of pc's the webpaqe applet works, but on most it does not. I get the error in my subject: >> load: class appletviewer.viewer.class not found. I have no idea what this means.

The code on my webpage is:
<applet codebase="http://24.39.88.218/home/" code="appletviewer.viewer.class" archive="JViewer.jar" name="viewer" style="width:320px; height:290px"></applet>

The Java Console on the error screen reads:
Java Plug-in 1.6.0_31
Using JRE version 1.6.0_31-b05 Java HotSpot(TM) Client VM
User home directory = C:\Users\my-user-id
------------------------------------
<what looks like a list of options>
c: clear console window
...
____________________

load: class appletviewer.viewer.class not found

Can anyone tell me what I need to do to get this to work. Is there some code I can add to the webpage <applet codebase...> to get this to work? Is this a Java version problem? etc...

Thanks for any help.

JohnC
  • 1. Re: load: class appletviewer.viewer.class not found
    817614 Explorer
    Currently Being Moderated
    You need to send the question to applet developer/publisher (the monitoring service provider) support.
  • 2. Re: load: class appletviewer.viewer.class not found
    654287 Newbie
    Currently Being Moderated
    You need to send the question to applet developer/publisher (the monitoring service provider) support.
    Thanks, but would be mind explaining that a bit more. Is there a website for that?

    Thanks,
    -jc
  • 3. Re: load: class appletviewer.viewer.class not found
    DrClap Expert
    Currently Being Moderated
    That means, you have to contact the people who wrote that page for you. Whether they have a website is impossible for us to know, since we don't know who they are.

    However when I try to go to http://24.39.88.218/home from my browser I get a 404 error (Not Found). That would be why trying to load a class from that site results in the class not being found. Presumably the people running that site haven't got it set up right. So you should talk to them.
  • 4. Re: load: class appletviewer.viewer.class not found
    DrClap Expert
    Currently Being Moderated
    By the way, when I go to http://24.39.88.218/ I get a page with a working applet which allows me to capture a webcam view over some nondescript city. So I have one of the working PCs.

    Debugging applet configuration problems isn't an easy problem even for Java programmers. So I'd suggest you might have to acquire one of those (Java programmers, that is) to help you out with this problem.
  • 5. Re: load: class appletviewer.viewer.class not found
    654287 Newbie
    Currently Being Moderated
    Using the IP is a direct link to the camera's admin screen. As stated I am not a java coder but I would guess that admin screen contains code written into the program by SONY to make it work. Every machine I use can see that screen. Our web page is another story. It was written by a non-java coder who probably got the code from a web-forum <*--*>.  It needs to connect to the camera using our own java-applet.

    I'll check with the SONY support folk. Perhaps they can help.

    Thanks for the feedback.
  • 6. Re: load: class appletviewer.viewer.class not found
    654287 Newbie
    Currently Being Moderated
    In the tag/code: <applet codebase="http://24.39.88.218/home/" code="appletviewer.viewer.class" archive="JViewer.jar" name="viewer" style="width:320px; height:290px"></applet>

    The part that reads >> ' codebase="http://24.39.88.218/home/ ' is telling the applet where the "appletviewer.vier.class" is located. So, it is expecting to find this class in http://24.39.88.218/home/. Since we are using a brand-new webcam, I guess I need to find out if it has this viewer class and where it is. Or its like.

    I found this code at: http://www.htmlcodetutorial.com/applets/_APPLET_CODEBASE.html
  • 7. Re: load: class appletviewer.viewer.class not found
    DrClap Expert
    Currently Being Moderated
    Well, I poked around with the page which contains the applet, and I found that the <applet> tag is being generated at load time by some Javascript code. In particular the Javascript in http://24.39.88.218/en/plugins.js.

    Here's the full code of what appears to me to be the code generating that tag:
      document.write('<APPLET codebase="../program/" code="javaviewer.Viewer.class"');
         document.write(' archive="SonySncRz25View.jar"');
         document.write(' name="viewer"');
         document.write(' width="840" height="680">');
      document.write('</APPLET>');
    You'll notice that's a bit different from what you tried. The codebase is different, the name of the class is different (you used "viewer" but this uses "Viewer" -- Java is case-sensitive so it does matter), and the archive is different.

    Now maybe I'm looking at the wrong code, and the right code is elsewhere, but hopefully that points you toward where you might be looking to identify your problem.
  • 8. Re: load: class appletviewer.viewer.class not found
    654287 Newbie
    Currently Being Moderated
    Thanks, DrClap--
    I did not find (see) the js file, but did find the output of it by using the Developer Tools in IE while viewing the admin screen for the WebCam. On the developer tools page I use the HTML tab and then drill down into the body tag and I can see:
    <applet name="viewer" width="840" height="680" codeBase="../program/" code="javaviewer.Viewer.class" archive="SonySncRz25View.jar"/> 
    What I need to do now, er, been trying to do is figure out the relative path for the "../program/" in relation to http://24.39.88.218/en/home/, which is where I am when I view the above applet code. In my webpage that displays the viewer I use this code:
    <applet name="viewer" width="320" height="290" codeBase="http://24.39.88.218/home/en/program/" code="javaviewer.Viewer.class" archive="SonySncRz25View.jar"/>
    I change the width and height to fit the page. The page in 'codeBase' is not correct. I've tried different paths but get either nothing or I get an outline of the viewer with a Java Error that I cannot get to display.
    These paths do not work for me:
     codeBase="http://24.39.88.218/home/en/program/" 
     codeBase="http://24.39.88.218/home/program/" 
     codeBase="http://24.39.88.218/program/" 
    Sorry, I cannot give you the url to my webpage as it is in a protected area of our site for development and not accessable to the public.

    Thanks for any help/tips.
  • 9. Re: load: class appletviewer.viewer.class not found
    654287 Newbie
    Currently Being Moderated
    Gottit~!

    This works:
    <APPLET name="viewer" width="525" height="290" codeBase="http://24.39.88.218/program/" code="javaviewer.Viewer.class" archive="SonySncRz25View.jar"/></APPLET>
    I re-read DrClap's post and saw the bit about 'case-sensitive'. I changed my code to user the uppercase APPLET and then played with the path. '../program/' is at the root of the url.

    Thanks all for the hand-holding. I still do not get JAVA, but this bit of code is a bit less daunting.

    Cheers!
  • 10. Re: load: class appletviewer.viewer.class not found
    654287 Newbie
    Currently Being Moderated
    marking as answered.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points