I am a student and I'm engaged with the dissertation at the moment.The actually problem of my work is the following:
A web-server camera is installed local over a Hub with a PC.
In the camera(an AXIS Product) is a relay. In a Browser I can simply switch the relay by input the URL :
My question:How can I switch the relay from a Java Applet?
I've tried it like this:
private synchronized void reopenURL( URL urlOpen )
URLConnection connect = urlOpen.openConnection();
on( true );
connect.setUseCaches( false );
connect.setDoInput( true );
InputStream inputstream = connect.getInputStream();
while( inputstream.read() >= 0 );
catch( IOException e )
String m_strIOExcept = e.getMessage();
public void setRelayOn()
URL url = newURL("http","webcam",80,
catch (MalformedURLException m)
String test = m.getMessage();
This is my own written class (not exactly of course)
The method setRelayOn() is called by the Applet.
If I debug the program there is the same mistake every time.
When I reach the line connect.connect() I receive the error message "java/net/URLConnection: field url not found"!
Thanks for your help.