This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

How to restart the jboss server through java  RSS feed

 
umesh bengaluru
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
Dear all,

i am trying to run and restart the jboss server through the java programm where server present in C:\jboss\bin. Please can any one help how to make this . my code to run the run.bat file goes below

String cmd = "C:\\jboss\\bin\run.bat";
try{
Runtime runtime = Runtime.getRuntime();
Process porc = runtime.exec(cmd);
}

but i need to restart aslo.......their is no sucessful result...

thanks in advance.

[ March 27, 2007: Message edited by: umesh bs ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please don't post the same question in more than one forum.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!