execute jar file from remote machine in java

ALEENA JOHN

I have created a jar file.I copy this jar file into remote machine using ssh in java.

I want to execute this jar file from my machine and see the result in my machine.

java -jar <filename>

I use

Runtime.getRuntime().exec("java -jar hellofile.jar");

Any suggesions ? Please answer

Daniel Fekete

If the remote machine is linux, you can execute through ssh:

ssh [email protected] 'java -jar hellofile.jar'

and you will see the result in the terminal

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

download and execute jar file from remote maven repository

From Dev

Accessing remote java file (.jar) from php

From Dev

Execute jar file from inside a Java program

From Dev

How to execute the jar file from a java class

From Dev

Execute a java class file that uses class from a jar file

From Dev

Execute command on docker container from remote machine

From Dev

execute jar file in java program

From Dev

execute jar file in java program

From Dev

How to execute a shell script stored on remote machine from a local machine?

From Dev

Execute Jar from Java code

From Dev

Execute exe on remote machine

From Dev

Execute readlink on a remote machine

From Dev

Execute readlink on a remote machine

From Dev

Execute shell script in remote machine using ssh command with config file

From Dev

Upload file over ssh and execute command on the remote machine

From Dev

File Selection From Remote Machine In Python

From Dev

File Selection From Remote Machine In Python

From Dev

Moving a file from local drive to a remote machine

From Dev

Python Move a File from Remote Machine to Local

From Dev

It's possible to execute machine code from file?

From Dev

run Swing Applications (jar) from host server to remote machine

From Dev

scp protected file from remote machine to local machine through terminal

From Dev

scp protected file from remote machine to local machine through terminal

From Dev

Java: how to move a copy of file from vps machine (accesible with remote desktop) to my local pc

From Dev

Java: how to move a copy of file from vps machine (accesible with remote desktop) to my local pc

From Dev

execute a program on a remote machine python

From Dev

Execute a command on Remote Machine in Python

From Dev

Execute Script available on remote machine

From Dev

Remote Updating of JAR file

Related Related

  1. 1

    download and execute jar file from remote maven repository

  2. 2

    Accessing remote java file (.jar) from php

  3. 3

    Execute jar file from inside a Java program

  4. 4

    How to execute the jar file from a java class

  5. 5

    Execute a java class file that uses class from a jar file

  6. 6

    Execute command on docker container from remote machine

  7. 7

    execute jar file in java program

  8. 8

    execute jar file in java program

  9. 9

    How to execute a shell script stored on remote machine from a local machine?

  10. 10

    Execute Jar from Java code

  11. 11

    Execute exe on remote machine

  12. 12

    Execute readlink on a remote machine

  13. 13

    Execute readlink on a remote machine

  14. 14

    Execute shell script in remote machine using ssh command with config file

  15. 15

    Upload file over ssh and execute command on the remote machine

  16. 16

    File Selection From Remote Machine In Python

  17. 17

    File Selection From Remote Machine In Python

  18. 18

    Moving a file from local drive to a remote machine

  19. 19

    Python Move a File from Remote Machine to Local

  20. 20

    It's possible to execute machine code from file?

  21. 21

    run Swing Applications (jar) from host server to remote machine

  22. 22

    scp protected file from remote machine to local machine through terminal

  23. 23

    scp protected file from remote machine to local machine through terminal

  24. 24

    Java: how to move a copy of file from vps machine (accesible with remote desktop) to my local pc

  25. 25

    Java: how to move a copy of file from vps machine (accesible with remote desktop) to my local pc

  26. 26

    execute a program on a remote machine python

  27. 27

    Execute a command on Remote Machine in Python

  28. 28

    Execute Script available on remote machine

  29. 29

    Remote Updating of JAR file

HotTag

Archive