[Bluej-discuss] compilor API

Cecilia Vargas C.A.Vargas at kent.ac.uk
Tue Nov 27 08:31:38 GMT 2007


Hi Aryeh,

I assume you want to do this from a Java program, so I suggest you take 
a look at java.lang.ProcessBuilder and com.sun.tools.javac.Main. Look at 
the sun documentation or google them. With ProcessBuilder you can invoke 
commands with their arguments.

Hope this helps. Let me know if you need more detail.
Cecilia

Aryeh M. Friedman wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> This is not a BJ specific question but I thought it might a good place
> to ask:
>
> If I have a String that represents the full path to a Java source file
> (i.e. ".java") how can I tell the JVM to compile it?   Since this is
> for a project that is not dependant on BJ (in theory) I am looking for
> the "Sun approved" way.
>
> - --
> Aryeh M. Friedman
> Developer, not business, friendly
> http://www.flosoft-systems.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.4 (FreeBSD)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHS8QKJ9+1V27SttsRAtLAAJ0SRNiGamCiL9f9BGswYbYmsLpdPQCfcsAN
> 1rEnHebJK1PHGnuXUNYuc5A=
> =f69r
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> mailing list bluej-discuss at bluej.org
> To unsubscribe or change your preferences, go to
> http://lists.bluej.org/mailman/listinfo/bluej-discuss
>   


More information about the bluej-discuss mailing list