aspose file tools
The moose likes Beginning Java and the fly likes Running a java program from remote machine Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Running a java program from remote machine" Watch "Running a java program from remote machine" New topic
Author

Running a java program from remote machine

Manoj Kumar Jain
Ranch Hand

Joined: Aug 22, 2008
Posts: 191

Hi All,

I am running an application on my local machine using batch file but I am running it from some remote machine on LAN. The way I am running it like

here I am invoking the java.exe from remote machine and class with main method is also only available on the remote machine.

My question is that by running this batch file will all processing (e.g., memory consumption)will occur on my local machine or on the remote machine.
when I ran this batch file on my local I looked at the task manager on my local and found that as soon as I start this batch file a javaw.exe(not sure if this was the exact name) process get started and consumes a good amount of memory say 60 MB. Still I am not sure if processing is also happening at remote machine.

I have one more question if I write code to open command prompt in this application
and invoke the application by same batch file the DOS window will appear at remote machine or on my local machine.

thanks a lot

Do not wait to strike till the iron is hot; but make it hot by striking....
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

You're running the executable on your machine, not on the machine where it was stored.

The answers to all your questions follow from that one observation.
Manoj Kumar Jain
Ranch Hand

Joined: Aug 22, 2008
Posts: 191

Thanks a lot Paul.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Running a java program from remote machine
 
Similar Threads
when we run class file
Need some help me java mail-smtp
Debugging on Remote Machine
jboss server started . java.net.bind exception ; address is already in use
jboss server started . java.net.bind exception ; address is already in use