0

I have java class file (server.class) I want to run this file to client machine using php.

My approach

  1. download the file from server to client machine
  2. run this file in client machine
  3. close the cmd and delete the file after on pressing another button

tell me my approach is right or I am making it more complex.If it is complex the then suggest me what is the right approach?

2

1 Answer 1

2

You cannot run programs on a client's machine. You can provide a download link and instructions on how to run it.

If you want to avoid the client having to click a download button, all I can think of is implementing server.class as an applet inside a web page or maybe using webstart, but I don't know much about webstart, and either way the client will go through a process of agreeing to run the java code.

Also, it sounds like some shady, shady stuff you're attempting to do. I hope you're not trying to run something on a person's computer without them knowing. If that is the case... I WILL find you :P

Sign up to request clarification or add additional context in comments.

1 Comment

No no I am trying to run a audio class which will listen the a mic from mobile.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.