Help please with JavaCam.class

J

jamesa

Hi,

Could someone pleasse help me with this probably very basic problem. I
am getting no image showing on my web page while trying to use the
JavaCam.class (I just get an outline box containing a red cross).

The entire HTML of the page is:

<html>
<head>
<title>Test</title>
</head>
<body>

<applet codebase= "http://www.jpacsoft.com/" code="JavaCam.class"
width="320" height="240">
<param name="url" value="http://www.jpacsoft.com/cam_1.jpg" />
<param name="interval" value="5" />
</applet>

</body>
</html>

and the page itself is here: http://www.jpacsoft.com/webcam9.html

I've got files JavaCam.class and JavaCam.java in the root directory
too.

The image file URL is fine and I am really stumped as to what is wrong;
something very simple I am guessing, as I am new to this.

Very many thanks in advance for your kind help.
 
T

Thomas Fritsch

Could someone pleasse help me with this probably very basic problem. I
am getting no image showing on my web page while trying to use the
JavaCam.class (I just get an outline box containing a red cross).

The entire HTML of the page is:

<html>
<head>
<title>Test</title>
</head>
<body>

<applet codebase= "http://www.jpacsoft.com/" code="JavaCam.class"
width="320" height="240">
<param name="url" value="http://www.jpacsoft.com/cam_1.jpg" />
<param name="interval" value="5" />
</applet>

</body>
</html>

and the page itself is here: http://www.jpacsoft.com/webcam9.html

I've got files JavaCam.class and JavaCam.java in the root directory
too.

The image file URL is fine and I am really stumped as to what is wrong;
something very simple I am guessing, as I am new to this.
Your source <http://www.jpacsoft.com/JavaCam.java> looks like this:
public class JavaCam extends Applet implements Runnable
{
boolean boolean_Debug; // Debugging enabled/disabled
Image image_WebcamImage; // Image from Webcam32
Thread thread_This; // Thread for refreshing image
int int_Interval; // Interval between image refreshes ...
....

Your compiled class <http://www.jpacsoft.com/JavaCam.class>,
when decompiled by a Java-decompiler, looks like this:
public class JavaCam extends Applet implements Runnable
{
Image camImgDown;
Boolean webcamDown;
Image camImg;
Integer camImg_old;
Thread thread_This;
int int_Interval;
....
which is very different from your source.
Hence your JavaCam.class and JavaCam.java dont't belong to each other.

You'll have to cure this mess first!
Find out what is your up-date JavaCam.java, compile it, upload the
resulting JavaCam.class, retest it, see if you still have the problem.
 
J

Jim

Many thanks Thomas. It works now I've uploaded a new set of matching
JavaCam files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Please Help? 0
Help please 8
Help with Visual Lightbox: Scripts 2
HELP WITH MediaSource 2
Help with code 0
Help with some CSS 2
Can someone pls help me with a little algorithm script 1
DJForm Login Help! 1

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top