Results 1 to 2 of 2
  1. #1
    kaushik54 is offline Member
    Join Date
    Aug 2010
    Posts
    1
    Rep Power
    0

    Post compilation and execution on remote server

    i want to compile and execute java source code submitted on my webpage on the server and return output or errors to the client.
    can anyone tell how can i implement it.
    compiling c and c++ will also be appreciated

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,576
    Rep Power
    23

    Default

    Have the server write the source to a file, call the compiler, capture the output from the compiler and return it to the client.

    The execution part will be harder. For java you can use a Security manager to keep the executing code under control. No idea how to do that with other languages.

Similar Threads

  1. Replies: 4
    Last Post: 04-06-2010, 08:23 PM
  2. Replies: 1
    Last Post: 06-26-2009, 03:24 PM
  3. Remote SQL Server Connection
    By saso1310 in forum JDBC
    Replies: 2
    Last Post: 05-15-2009, 07:39 AM
  4. connecting to remote SQL server
    By mahasarathi in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 04-04-2009, 06:11 AM
  5. [SOLVED] Show Server and execution environment information
    By mtyoung in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 02-04-2009, 05:22 AM

Tags for this Thread

Posting Permissions

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