473,387 Members | 1,455 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Remote software installation through Java ??

how can i install any software on remote machine through java ? i want to execute its .exe file on remote machine using java code
Feb 19 '08 #1
3 2048
Unless you've got some form of client/server process running, I doubt you can. If you have the correct access you could set up soap service to handle the file transfer, but you'd still need to be able to handle any installation prompts, etc.
Feb 19 '08 #2
BigDaddyLH
1,216 Expert 1GB
Why choose Java to do this? I would look for an already-written product that does remote installs.
Feb 20 '08 #3
chaarmann
785 Expert 512MB
how can i install any software on remote machine through java ? i want to execute its .exe file on remote machine using java code
You could use RMI to access the remote machine,
and then there execute the file in a shell, like this:
(just adjust the "command" (your *.exe-file) and its working directory name "dir"):

Expand|Select|Wrap|Line Numbers
  1.         Runtime runtime = Runtime.getRuntime();
  2.         File fileDir = new File(dir);
  3.         Process process = runtime.exec(command, null, fileDir);
  4.  
  5.     }
Feb 20 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Job Kelderman | last post by:
Hi all! I'm trying to get remote debugging working with phpeclipse. I think i've installed everything correctly, and the debugger in eclipse starts, but breakpoints are ignored and nothing...
2
by: Hal Vaughan | last post by:
I think I read something about this and I may just be using the wrong terms in search engines. I thought I read about a process where I could write Java classes that would be stored on a server...
5
by: mr.iali | last post by:
Hi Everyone I would like to get into software developent using a programming language like c++, java or pl/sql for oracle. I have no idea where to start from. Which language is there more...
1
by: Peter Avalos | last post by:
My goal is to create a remote installation program to rollout program installs and updates. We're a small company with about 60 workstations, so it's not worth the investment in SMS. I have the...
1
by: srihari | last post by:
Hai, I am trying to install IBM DB2 8.1 on Red Hat linux 8.0. My machine is Intel XEON 64bit. The installation went well except for the creation of tools catalog. When I tried to install the tools...
3
by: John Grandy | last post by:
I need to start an executable (such as a batch file) on a remote machine. System.Diagnostics.Process.Start() will not start a new process on a remote machine ...
1
by: Ken Allen | last post by:
I have encountered a problem with remote debugging under VS 2005 and ..Net 2.0 -- it seems that the framework installation does not include the "Microsoft .Net Framework 2.0 Configuration" tool! ...
9
by: =?Utf-8?B?THVpcyBBbnRvbmlvIFJvc2VsbG8gR2FyY2lh?= | last post by:
Hi, I have a big problem with a Visual C++ 6.0 function that retrives the logical drives and types in the local system. This function works perfectly on Windows 98, NT, 2000, XP and 2003, but I...
1
by: prach757 | last post by:
hey i want to install sofftware on a remote machine to which m connected using tcp conection in java over a LAN how can i do it i dont want to copy the installation file on remote machine
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.