open an exe which is on remote machine using Java - java

open an exe which is on remote machine and not on my local machine which has hub and node using java selenium,I do not know if that's possible or not.I am looking for a slution.

you can use psexec to do it.
Download from here:
https://technet.microsoft.com/en-us/sysinternals/pxexec.aspx

I would suggest that on the machine where you want to launch your exe you will run some Webserver running some web application that also could be written on java or any other language. That web App should expose an API (REST API is one of the popular options) that woulsd receive request and upon that request will launch your exe. Now on your remote machine your java app (or any other app or just a brouser) will need to send a regular HTTP request to your webserver, and your web app will do the launch

Related

How to execute remote COM dlls?

I am having a problem about running a COM dll remotely on windows PCs.
I have a COM dll registered in all the client stations (windows) of my network and a .NET application hosted on a server in my network.
There is a POST request, which will receive the client ip as a parameter and the application will execute a remote call to the dll installed on the pc of the ip passed in the request.
I already used PHP with XAMPP, I could verify that it works locally, although XAMPP reboots a few times (I still do not know the real reason). one solution would be to install locally on each client a network xampp server with a php application receiving requests and running the dll locally, but would be impractical in view of the amount of computers available on the network.
Still with PHP, I saw that it would be possible to remotely call this faq from the php documentation, but to no avail. I'm starting .NET with C # because I believe being native (windows) will be better/easier to get results, but I have not yet found a plausible solution to run the dll remotely.
As a result, I will have the opening of the COM dll program already registered in the client pc (ip passed in the POST request).
Has anyone gone through this or do you have any idea how to run a dll remotely with .net, java, php or other technology?

Related to open source sip client phone (Peers opensouce)

Iam using a open source code of Peers Java SIP Softphone downloaded from http://peers.sourceforge.net/.
I want to run this application on linux operating system but when iam placing a outgoing call from this application the call established late after creating a connection receiver voice coming late only in linux os.
And when i run this application on windows so the application response proper but for windows i have to use jdk32 bit

How do I build, deploy and debug standalone java app on remote machine?

How do I build, deploy and debug standalone java app on remote machine with IDEA ?
I have remote machine with certain hardware device connected to it. I want to develop standalone Java app on my PC, build it locally but the app should be deployed and running on remote machine accessible via SSH. Thus I'll be using Java remote debug.
I've googled extensively but couldn't understand if it's possible to achieve in IDEA (even though IDEA allows to do so for java servlet containers). I tried "Remote SSH External Tools" plugin. I'm not sure what to specify in following dialog (which seems to have bug)
What options do I have ?
If the machine is only reachable via SSH you need to do two things:
Configure your java application for remote debugging
Connect to the application via SSH
This tutorial should get you going: Remote Debug of a Java App Using SSH Tunneling

Is java Web Start Application using my browser each time I run the application?

I would like to know if when I launch my Java Web Start application, I'm using my browser or the connection is directly from the Java sandbox against the server through Http/Https protocol.
I want ot know, wether once the JAR has been downloaded and stored locally, next time when the applciation is launched, it will use my browser?
No, Java WebStart doesn't use the browser. It uses the JRE to connect to a remote server using HTTP or HTTPS.
The browser is only involved in the download of the .jnlp file. And even here, you could send the JNLP file by e-mail or any other mean. It would work too.

How to execute a batch file on a remote system

I have a java web app running on a server. I will click a button on the UI on the server It should invoke the batch file on the client machine and execute it on the client. Please suggest me how to go on doing it?
If you're talking about a web app and it involves a browser as a client, then you cannot invoke a script on every client machine (I mean, you can do it in Windows, but not Linux).
Javascript is a client scripting language and runs in a sand-boxed environment often inside a web browser which prevents it from accessing resources on the computer.
Nevertheless in Windows, you probably could do this:
var cmdshell = WScript.CreateObject("WScript.Shell");
cmdshell.Run("the command to run a batch script goes here");
Check this for more details.
But in Linux, I haven't seen a way to do it since the environment is different altogether.

Categories

Resources