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

  • SEARCH
  • Home
  • 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 7713085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:46:55+00:00 2026-06-01T01:46:55+00:00

Is there a way to run a Java command line in a web page

  • 0

Is there a way to run a Java command line in a web page along the lines of this Ruby web page:

http://tryruby.org/levels/1/challenges/0

The aim is to be able to give complete newbies a very simple introduction to the language without having to worry about IDEs, compilation, etc.

  • 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-01T01:46:57+00:00Added an answer on June 1, 2026 at 1:46 am

    Well, since Java is a compiled language and has no REPL, there is no such “command line”. But I can think of theoretically possible ways to implement the idea.

    • An Applet might be not really a solution. I don’t know how far you can get with limited permissions. Security concerns might allow you to only operate in a sandbox and / or not to compile / execute code.

    • A Java WebStart application might have such permissions. It would be a similar task to provide a slim IDE. Or making Bluej run from WebStart.

    • Provide a web application that simply files a request to a server which compiles and executes the code and returns the result. I assume (I’m not sure) many online REPL work like this. (By skimming the JavaScript of try python I think it files AJAX requests) But then there’s still a security concern, like what if a programm begins to randomly remove files? Google Appengine has advanced security mechanisms to prevent missuse. To implement them for “try java” it would require advanced effort.

    • Next idea is to limit everything down to a subset of the Java language. For providing a small introduction, a little tutorial with predefined answers and maybe a bit basic math you could write some JavaScript on the client side to decide wether the learner’s answers are correct or not.

    • Don’t forget that web-based IDEs are currently developed, for instance Eclipse Orion. Maybe you could watch these projects evolve and use them for such purpose. Currently I’ve only seen JavaScript code edited in there, and executing JS is one of the webbrowsers natural capabilities. I don’t know which programming languages they are going to support or if code execution will be supported.

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

Sidebar

Related Questions

Is there a way to run this command line within a Java application? java
Is there a way to run a regexp-string replace on the current line in
More specifically, when I run my java program from the command line before I
Is there a way to periodically run a Unix command ( ps in my
Is there a way to run Java VM ( java.exe ) on Windows Server
Is there a way run Emacs from a USB drive? I am a Windows
Is there a way to run some custom Javascript whenever a client-side ASP.NET validator
Is there a way to run an Amazon EC2 AMI image in Windows? I'd
Is there a way to run a project inside a solution that has more
Is there any way to run ASDoc on your project via the Flex Builder

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.