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

G

genc ymeri

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.
 
J

John Timney \(Microsoft MVP\)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top