Re: Compiling Java code within a C# made program,,,,,

From: John Timney \(Microsoft MVP\) (timneyj_at_despammed.com)
Date: 07/29/04


Date: Thu, 29 Jul 2004 22:04:48 +0100

look at the options around process.start - javac is just another exe and you
should be able to spawn it as any other exe from c#

--
Regards
John Timney
Microsoft Regional Director
Microsoft MVP
"genc ymeri" <genc_ymeri@hotmail.com> wrote in message
news:etF$iUZdEHA.3212@TK2MSFTNGP12.phx.gbl...
> Hi,
> I'm coding a C# Win Application. Somehow we need to let the "end-users" of
> our application to write some Java code in one of our app's winform called
:
> "Coding".
>
> What I would like to do is to have a button that compiles that code and if
> there are errors to show them up,,,,, So far I'm planing to use the Sun
> javac.exe.
>
> So my question is " Does anyone know how to call JavaC.exe & retrieving
the
> errors/messages without running JavaC.exe "myClass.java" through a console
> window ??"
>
> Thank You in advance.
>
> PS:
> what is given is that my team prefers to compile java code through Sun
JavaC
> (1.4.2) rather than J# compiler.
>
>