File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
Server Start (SQL2000)
Where is the InputStream stored...?
Running OS Specific commands in Java
running another application from java
how to call .exe file by clicking the JButton..?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013