Jump to content
Tuts 4 You
Sign in to follow this  
CodeExplorer

Java Compilers

Rate this topic

Recommended Posts

CodeExplorer
3dsboy08

Isn't there that commercial Java compiler also that compiles to native code? I think its located here: https://www.excelsiorjet.com/

You should add it to the list.

  • Like 1

Share this post


Link to post
Share on other sites
CodeExplorer

Seems you can use this code directly from java:
https://stackoverflow.com/questions/1320476/execute-another-jar-in-a-java-program
 

        String fileToCompile = "/Users/rupas/VolatileExample.java";

        JavaCompiler compiler = ToolProvider.getSystemJavaCompiler();

        int compilationResult = compiler.run(null, null, null, fileToCompile);

        if (compilationResult == 0) {
            System.out.println("Compilation is successful");
        } else {
            System.out.println("Compilation Failed");
        }

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...