Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2005

Tip: Looking for answers? Try searching our database.

Running program from java(tcl)

Thread view: 
macadada@gmail.com - 24 Dec 2005 10:33 GMT
Hey i need to run a tcl server from java, its a very simple server that
i jsut need to run, i dotn need to do anything with it dont need to
input or output anything from it, just want the stupid tign to open lol
Heres what im currently doing but nothing is happening when i run the
code:

public class execDir {

  public static void main(String args[]) {
    try {

           String [] env= {"TCL_LIBARAY=C:\\Tcl\\lib\\tcl8.4\\init.tcl"};
           String [] arg ={"tclsh84.exe", "C:\\ClassNode.tcl"};
          Process p = Runtime.getRuntime ().exec(arg, env);

    } catch(Exception ioe) { System.out.println(ioe); }
  }
}

I'm quite a Noob with programing so i appreciate your help
Roedy Green - 24 Dec 2005 11:40 GMT
>String [] env= {"TCL_LIBARAY=C:\\Tcl\\lib\\tcl8.4\\init.tcl"};

Check the spelling of LIBRARY
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Roedy Green - 24 Dec 2005 11:42 GMT
>String [] arg ={"tclsh84.exe", "C:\\ClassNode.tcl"};

if tclsh84.exe is not on the path this won't work. You need a fully
qualified name.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

da_virus - 24 Dec 2005 13:03 GMT
ahh thank u! solved everytin works perfectly.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.