JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old May 6th, 2004, 09:57 AM
Rickk Rickk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 Rickk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question help with javacam.class

I am hoping this is the right place for this!

I am trying to setup a page with webcam updates on it, I downloaded the javacam.class and read the instructions for it. I am told to upload the javacam.class to the directory on my server where the script text would also be. I used this code below.


<APPLET code="JavaCam.class" width=320 height=240><PARAM name="url" value="http://myhost.mycompany.com/my_webcam32_image.jpg"><PARAM name="interval" value="30"></APPLET>

I am getting the following error on my page http://jafo.spacespider.net/weblog/livecam.html

Error--> Null Pointer security exception

The explanation I get for this below is:

The JavaCam applet must be loaded from the same machine as the target image. If you fail to do this, Java (not Webcam32 or even the JavaCam applet) will raise a Null Pointer security exception. Java requires that any applet dynamically downloaded from the Internet only connect back to the machine from which it was loaded

I was hoping someone could dumb this down for me. My expiereince on java is this crash course here.

Reply With Quote
  #2  
Old September 1st, 2005, 07:22 AM
rogier rogier is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 1 rogier User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 m 59 sec
Reputation Power: 0
put the javacam.class and javacam.java files in the same directory as your webcam software, typically on the machine where your camera is connected with.

java allows applets to connect only with the server the applet originates from. Otherwise, security would be compromised. So you image of your webcam should come from the same machine where the java stuff resides.

Good luck,
Rogier.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > help with javacam.class


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway