How to run java code using Java code?
Posted
by Nitz
on Stack Overflow
See other posts from Stack Overflow
or by Nitz
Published on 2010-05-24T11:25:50Z
Indexed on
2010/05/24
11:31 UTC
Read the original article
Hit count: 318
java
Hey Guys
i want to do basically two things
1)I want to know is there any way that i can run the java code, using some java code.
2 ) and if it is possible then , and whatever the out put is then it should get that out put [ maybe output or error or exception ] and show on my screen, so i need to get that also.
I know this is possible bcz one of my senior had done that..but i don't know how?
May be with using the java's inbuilt classes.
Note: user will write the code in some text file and then i will store that file content in some variable and then may be run that code.
© Stack Overflow or respective owner