Run jar file in remote computer - remote-server

I need to run some jar file in another machine in LAN.
java -jar start.jar
How to run a jar file on remote computer?
Thx!

I faced the same issue in my project while accessing resources in a distributed systems environment. If you working on Windows, you need PsExec v2.x.
Create a batch file to execute java -jar start.jar from remote cmd.
Now run the batch file from ur local machine by PSEXEC \\othermachine z:\program.exe. You will need administrator privileges on the target machine.
Visit for documentation.
Lastly, if you demand platform independency and wish to run your jar on remote machine having OS other than the OS on your local machine, then you should go with socket programming.

Via remote client like ssh, teamviewer or custom solution with server-client connection.

Related

Is there any way to start a selenium server from the command prompt with out internet

i would like to run the selenium server from the command prompt with out the internet connection. Every time when i run below command
webdriver-manager start will always needs internet connection to start the server because this commands is checking for new binaries .
But i would like to run the selenium server with the binaries which are already downloaded to my system with out checking for new binaries.
When i search for above question i found a below solution.
webdriver-manager start --versions.standalone version number
Even though i am using above command and try to run the selenium server by specifying the version number still it is depends on internet connection.
Can any one help me how to start the selenium server with out internet . I dont want checking process while starting the server
Actually, webdriver-manager start execute a Java CLI after query latest binary, so you can just execute the Java CLI directly if you have download the binary to avoid access internet to query latest binary.
set Webdriver_Basedir=C:\Tools\npm-global\node_modules\webdriver-manager\selenium
java
-Dwebdriver.chrome.driver=%Webdriver_Basedir%\chromedriver_2.35.exe -Dwebdriver.gecko.driver=%Webdriver_Basedir%\geckodriver-v0.19.1.exe -jar %Webdriver_Basedir%\selenium-server-standalone-3.9.1.jar -port 4444
1.Download Selenium Remote Control from http://seleniumhq.org/download.
2.Extract the ZIP file.
3.Start a Command Prompt or a console window and navigate to where the ZIP file was extracted.
3.Run the command java –jar selenium-server-standalone.jar
Please try this the above

Run Spark/Cloudera application in remote machine with Eclipse

I have some problems to understand the logical architecture in which I develop with Scala/Spark-shell and Hadoop environment.
For better describe the logical architecture, I drew a small schema:
As the figure shows, I have Eclipse installated on my personal PC, and I would like to run scala script from my PC to Hadoop in remote mode.
Now I have the VPN connection, and I can process my scala program with PUtty from the shell. In practice, every time that I have to launch a Scala script, I transfer the file .scala from my pc to remote machine with WinSCP, so I lanch the program directly from the remote machine. Every time I have to tranfer the file making me work wasteful.
Now the question: is there a way to launch the script from my personal PC to remote cluster, without pass through to the PUtty?

In an eclipse based IDE, how do you access remote files through two ssh connections?

I'm working remotely and I need to access files on a server that's only accessible through ssh from another machine.
For example if my files are on server2, I need to ssh me#server1 then once I'm on that machine, ssh me#server2
Is there a way to set up remote systems in eclipse (I'm using Zend Studio) to get access to my files?
Thanks.
The short answer is No, however you you do have some options...
Eclipse is only aware of files in an Eclipse workspace (with some exceptions), thus you need to make your files available to your Eclipse instance. To do so, you could download the remote files and make them available locally or make te files accessible via a network share.
All in all, you need to make those files available on a file system visible to the local Eclipse instance. Once that is done, you can add/import the file into your Eclipse workspace.

Start test by cc.net on remote machine

folks!
I am a newbie for cc.net tool. And i have got problem.I use a chain c#+webdriver for chrome + nunit (2.6) + cc.net ( 1.6.7981.1).I want run my test tasks on remote machine (no cc.net server machine).I have investigated this issue, but didnt found clear answer about distributed launching webdriver tests.
Is it possible for current cc.net?
i resolved issue by next way:
I shared a folder on remote machine and include in cc.net config a few tasks.
Task for copying a code to remote machine (xcopy)
Task for launch psexec which start bat file on remote machine
bat file includes 2 commands:
run msbuild
run nunit-console
After test work cc.net catch testresult file and send mail.

Deployment of files to Virtual Machines

During our development process the developers do code modifications, compile the code and need to deploy it on a remote machine and test it or debug it remotely.
There are manual steps that are usually needed - stop one or more services, copy the compiled files to specific place in the destination machine and other steps (maybe delete some folder etc.)
I was wondering if there is a tool that as input gets IP of remote machine and predefined steps (stop service, copy local files to remote machine etc) - and just do autmatic deployment for the developer? I'd like to automate this tiring process a bit...
Thanks.
Ant is a common tool for such tasks in Java development. You can use ant to compile your code, use an scp task to copy your binaries to a server and run scripts on that server. The configuration is done by XML and is pretty easy. You should google or search on stackoverflow for some examples.
I use rundeck to control my deployments. I like it's simplicity and the fact that all that's required is SSH access to my servers, enabling me to upload files, and run whatever scripts I require.
It has a simple XML configuration file listing the servers in my network. This makes it really easy to integrate with other CM tools.
For windows deployments you're going to require an SSH implementation installed on each node, or a more complicated deployment tool.