Simple question, is there a way to compile processing in java as an application rather than an applet?
As it is now, if I run it as an application it just terminates on launch
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If a Java-Process stops directly after starting it has been started, then it is probably a missing non-daemon thread.
Create a Thread, that waits for input and has a
while(shouldRun){doSomethingOrWait()};You should also add an
ShutDownHookto get that endless-loop terminated.update:
applets don’t run at serverside. Please try to explain more precise, what you plan to do.
update 2:
For such a vague question, I only can give a vague answer:
Solution 1:
Install a tomcat webserver and create a Servlet. Send the data to the servlet and start your job at serverside, after the URL has been loaded.
Solution 2: Create a RMI server and send the jobs via RMI.