CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Posts
    2

    How to compile program at runtime?

    What methods to use to compile/run a program in another program at runtime??

    Thanks for any replies.

    Kah Yee
    [email protected]


  2. #2
    Guest

    Re: How to compile program at runtime?

    Use the java.lang.Runtime class

    String s = "javac Test.java";
    Runtime r = Runtime.getRuntime();
    r.exec(s);





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured