A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
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.
rocket mass heater
how to call .exe file by clicking the JButton..?
running another application from java
Running OS Specific commands in Java
Where is the InputStream stored...?
Server Start (SQL2000)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015