Results 1 to 3 of 3
  1. #1
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465

    Default Java online compiler API


    Good day mga istoryans. I would want to ask if kinsa ninyu ang naka.try ug gamit ug online compiler sa java(atleast API). No need to go to the website anymore. i.pass ra ang source code through http request nya i-return back niya ang output/error. If you have tried, or at least you have some ideas, please do care to share. Thank you.

  2. #2
    If I were to do this, i would do something like:

    1. Create a restful API or url that for ajax call
    2. create the file on the server, ex. AAA.java
    3. Do this

    try {
    process p = Runtime.getRuntime().exec("javac AAA.java");
    } catch(IOException e) {
    // store what is needed in an object and return it back to the server
    }

  3. #3
    Elite Member
    Join Date
    May 2011
    Gender
    Male
    Posts
    1,465
    Quote Originally Posted by scala View Post
    If I were to do this, i would do something like:

    1. Create a restful API or url that for ajax call
    2. create the file on the server, ex. AAA.java
    3. Do this

    try {
    process p = Runtime.getRuntime().exec("javac AAA.java");
    } catch(IOException e) {
    // store what is needed in an object and return it back to the server
    }
    sir, kinahanglan pako mag,run ug ide ana? wai lain paagi i.run ang AAA.java na i-return back niya ang output/error? ako try through terminal pero sa IE raman mugana ang ActiveXObject para maka run sa mga terminal commands.

  4.    Advertisement

Similar Threads

 
  1. sms api java
    By jairoh_ in forum Programming
    Replies: 2
    Last Post: 03-04-2013, 04:19 PM
  2. Replies: 424
    Last Post: 05-04-2010, 08:10 PM
  3. Java Compiler using Textpad
    By ajboy13 in forum Programming
    Replies: 3
    Last Post: 07-10-2009, 07:51 AM
  4. java compiler....
    By intheb0x in forum Programming
    Replies: 8
    Last Post: 10-15-2008, 10:37 AM
  5. Mobile Java Games
    By Nezumix22 in forum Gizmos & Gadgets (Old)
    Replies: 23
    Last Post: 05-06-2005, 05:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top