Problem in executing .rpm file from java Runtime class
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sriram_thota
Posted On:   Monday, February 7, 2005 10:32 PM

Hi All,

Iam developing install shield,iam facing problem in executing .rpm file with java Runtime class in linux.

The sample code is as follows:

String cmd[] = {"rpm","-ivh","pgadmin3.rpm"};

File file = new File("/root/rd/softwares");

Process process = runtime.getRuntime().exec(cmd,null,file);

iam not getting the correct output.

Any suggestions are highly appreciated.


Sriram.T

Re: Problem in executing .rpm file from java Runtime class

Posted By:   a_p  
Posted On:   Wednesday, February 16, 2005 02:59 AM


To execute rpm you must be the super user...

that may cause the problem

If you can run su commad befor giving call to exec may help
About | Sitemap | Contact