Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8534369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T10:10:48+00:00 2026-06-11T10:10:48+00:00

By using the JRE or some other runtime environment, is it possible to compile

  • 0

By using the JRE or some other runtime environment, is it possible to compile Java code on a web server such as Apache or Nginx?
Specifically, I would like to have a web application that would accept user input (Java code), and when the user hits run, it would compile the Java into Java Byte code and display the result, like Eclipse does.
Does this sort of technology even exist?
Does this defy the logic of compiled languages?
Thank you for your time in advance.
Amicably,
James

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T10:10:49+00:00Added an answer on June 11, 2026 at 10:10 am

    The server running Apache would also need a JDK. You could easily write the input to a file, compile it, run it, and display the results to the user. This could be done with a CGI script, or a Java EE app or similar, running in Tomcat. A JDK will be required, a JRE will not suffice.

    Consider the potential security risk with this, though. Depending on what the program actually does, it could result in problems on your machine or others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of doing some Java<->.NET interop code using a native library
If I compile some java files using a 64 bit JDK and then make
I'm using enumerations to replace String constants in my java app (JRE 1.5). Is
We had been using java standard keystore ( $JAVA_HOME/jre/lib/security/cacerts ) as the trusted store
Will code compiled using 1.5 and 1.6 run on a 1.4 JRE? We weren't
I am developing some web services that must be implemented using JAXWS, and that
I have some confusion in understanding Java Security model. In my ${JDK_HOME}/jre/lib/security/java.policy file, I
I have been using com.sun.org.apache.xpath.internal.XPathAPI for some time and it seems to work ok.
I have heard of several things, quoted from Wikipedia: Java Runtime Environment, A JVM
Using the stock Sun 1.6 compiler and JRE/JIT, is it a good idea to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.