A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Java in General
Joined: Mar 11, 2004
Aug 21, 2004 22:24:00
Can I compile a .java file using Runtime.getRuntime().exec("javac Test.java")? If not, is it possible to do the same?
Author and all-around good cowpoke
Joined: Mar 22, 2000
Aug 22, 2004 09:05:00
It is a bit more complicated than that - you have to consume the stdout and stderr character streams. Read the
The use of exec comes up frequently - search the ranch archives.
Joined: Jun 02, 2003
Aug 22, 2004 17:42:00
Or put tools.jar into your classpath, and use the Compiler.class inside.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
Running OS Specific commands in Java
how to call .exe file by clicking the JButton..?
Server Start (SQL2000)
Where is the InputStream stored...?
running another application from java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014