Results 1 to 2 of 2
Thread: RMI registry
- 09-30-2008, 03:33 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 1
- Rep Power
- 0
- 09-30-2008, 08:02 PM #2
Member
- Join Date
- Sep 2008
- Posts
- 6
- Rep Power
- 0
why it doesn't start from command prompt? u can do a little bat file
not sure =p it opens rmiregistry but i think u need to be first in your class directory. i don't remember.Java Code:cd %Path to your classes% "%JAVA_HOME%\bin\rmiregistry.exe" pause
Java Code:Runtime r = Runtime.getRuntime(); Process p = null; int pos = System.getProperty("java.home").lastIndexOf("\\"); String tempPath = System.getProperty("java.home").substring(0, pos) + "/bin/"; String cmd[] = {tempPath + "\\rmiregistry"}; try { p = r.exec(cmd); p.waitFor(); } catch (IOException e1) { // do something } catch (InterruptedException e2) { // do something }
Similar Threads
-
Registry Problem
By Mir in forum New To JavaReplies: 1Last Post: 07-19-2008, 04:12 PM -
SWT Font Registry Example
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:46 PM -
windows registry
By Fleur in forum New To JavaReplies: 3Last Post: 06-20-2008, 03:23 AM -
could not be found in the registry
By alam99 in forum EclipseReplies: 0Last Post: 01-08-2008, 08:21 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks