execute java application on server

Hello!

i create a java app that take a picture through a camera. I execute this app with this command:

>java camaraFoto 192.168.1.20 user pass

The problem is that i must execute the app from a linux server. Should i install Tomcat to execute it from server or can i install simply JVM?

Thanx a lot!

sabri

[345 byte] By [sabri.brunia] at [2007-10-3 1:13:06]
# 1
what makes you think that this has anything to do with Tomcat? Tomcat is simply another application that uses the JVM (exactly like your application).Just install the JVM, if there is not already one there.
masijade.a at 2007-7-14 18:10:10 > top of Java-index,Java Essentials,New To Java...
# 2

A server is just a computer just like any other computer. You should be able to run it from the server in the same way as you run it from another computer. Ofcourse then the camera needs to be connected to the server too.

Tomcat is for running web applications (that are programmed using servlets and JSPs).

What exactly is the setup of the computer system?

You cannot control a camera that's attached to a client computer from an application that runs on the server.

You could write an applet (a small Java program that runs inside the client's web browser), but applets have security restrictions, so if you need to access the camera through an applet, you'll need to create a signed applet with special permissions.

jesperdja at 2007-7-14 18:10:10 > top of Java-index,Java Essentials,New To Java...
# 3

Thank you for our replies (and sorry for my english)..

I don't know the exact configuration of the server because is an hosting. I know only that is a linux.

I created a similar app to control and take picture form the same camera through Java Web Start and i already know problems derived from the sand-box. To solve this ones i signed the app with jarsigner and it works fine.

I am going to explain better my problem. I have this app that take a picture connecting through an IP video camera (AXIS). I created a certificate to pass sandbox problems. I must execute this app automaticaly every 12 hours from linux server that have an utility called CronJobs that let me establish the time execution.

Well..help me please!!

thanx

sabri

sabri.brunia at 2007-7-14 18:10:10 > top of Java-index,Java Essentials,New To Java...
# 4
As others have said. Install a VM on the linux machine, and let the cron job execute a command line similar to the one you originally posted.Kaj
kajbja at 2007-7-14 18:10:10 > top of Java-index,Java Essentials,New To Java...
# 5
Well!i'll do itthanx a lot
sabri.brunia at 2007-7-14 18:10:10 > top of Java-index,Java Essentials,New To Java...