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 6059005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:39:45+00:00 2026-05-23T08:39:45+00:00

I have a Java class which can be called from shell. (via java [command][options])

  • 0

I have a Java class which can be called from shell. (via “java [command][options]”) The class takes in a set of parameters and outputs a MIDI file.

What I want to do is set up a simple webapp which reads from a pre-determined directory which will always contain 3 MIDI files (only!). A visitor to the webapp is presented with these three files, and has to choose one which s/he thinks is the best (submit a form). The webapp will use that information to generate a set of 3 new MIDI files using the Java class, while recording info to a log file and moving the old files to an archive directory.

The 3 things which I’m not sure about are:

1) What web language would be best for this? I plan to make this into a full-fledged app at some point, but the dependency on Java makes me think using Servlets is the way to go. However, would PHP or Rails (for ex.) be easier? Is it okay/possible to call Java via a shell command from PHP or other languages?

2) Generating the MIDI takes some time, so I want some sort of loading bar or “Waiting…” notice to appear on screen after the user submits the form. Basically I want the app to block and show that notice while the shell command executes, and render the new page when the command finishes and the new MIDIs are generated. Is there any example that I can follow to achieve this (AJAX with PHP or Servlets would be nice)?

3) When more than one person is on the website, and one person submits the form (and starts the MIDI generation), then I want everyone to get a loading notice or at least trigger some action. Is there a clean way to do this?

Thanks to any responses!

  • 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-05-23T08:39:46+00:00Added an answer on May 23, 2026 at 8:39 am

    Your questions are a bit open ended, you should try to focus your questions a little more in the future. I’ll try to give you some guidance though.

    1) I wouldn’t necessarily say there is a “best” way to do this, as you could easily use any number of solutions. Do you have any experience with building a web application? If so, use what you’re familiar with. If not, maybe choose a framework in a language you’re comfortable in, or explore creating a server from scratch in that language.

    2) and 3) concern implementing features, again, you could do it in a number of ways. Ajax is definitely one way of approaching both these problems. I think you should do a little more research about the technologies you plan on using so you’re more aware of their capabilities. Try creating a solution using Ajax and see how that works.

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

Sidebar

Related Questions

Here I create a class in JAVA in which I have function (callback) which
I have a Tomcat application server and this Java source code: public class MyServlet
I have a java class that is accessed by a lot of threads at
I have written two simple Java classes (one of them containing main(), and the
In Java, I would do something like: Thread t = new MyThread(); t.start(); I
I have searched the web for a way to do this, but perhaps I'm
Possible Duplicate: How to sort an NSMutableArray with custom objects in it? I've searched
I am going crazy trying to figure this out. I am trying to make
I am enhancing a tool. Please note that this tool will be linked to
I'm trying to fix a build file where a part of it runs a

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.