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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:23:38+00:00 2026-06-09T09:23:38+00:00

Background In Java, I want to make a simple, quick console app that provides

  • 0

Background

In Java, I want to make a simple, quick console app that provides a series of menus and takes user input, then calls certain methods and outputs other menus. Basically, I need to create a loop:

menu > user selection > action > menu > ...

Ultimately, I’m using this on top of an integration server using Apache Camel. I have a “quick and dirty” app I use to exercise some of the server routes as a development tool. I don’t want to spend a lot of time on something so simple.

There has to be an easy way to do this. Consoles and menus on command lines have been around for decades! There must be a java library out there that does this well. I just haven’t found one…

Question

Is there a library out there or some Apache utility, or anything that would make creating super quick, super simple console menus a piece of cake?

Example

With the proper tool, it should take less than 30 minutes to make a menu that functions like
git add -i

That is, I need to make something that functions similar to git Interactive commands, or any other console app, and I want to do so quickly.


EDIT:

The suggestion, below, to use “Cliche” worked pretty well, allowing me to just annotate some methods and have a menu built out of that, automatically. In case it helps someone, I wanted to include some important notes on getting Cliche working:

  1. The project has been moved to google code
  2. It doesn’t appear to be maintained but in the issues section, jbachorik mavenized the project!
  3. Here are the only adjustments I needed to make to my POM:

Add a repo:

    <repository>
       <id>sonatype-nexus-snapshots</id>
       <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </repository>

Add dependency:

    <dependency>
        <groupId>com.googlecode.cliche</groupId>
        <artifactId>cliche</artifactId>
        <version>1.0-SNAPSHOT</version>
    </dependency>
  • 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-09T09:23:41+00:00Added an answer on June 9, 2026 at 9:23 am

    Take a look at Cliche

    It uses @Command method annotations to rapidly create interactive console-based apps. Its type converters are basic but Camel’s own extensive type converters could be configured to be used instead. It also offers extra functionality like listing available commands and convention-driven input abbreviations.

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

Sidebar

Related Questions

I want to start a background process in a Java EE (OC4J 10) environment.
Coming from a Java background, this is the way I'm thinking: The server provides
Coming from a Java background, this is the way I'm thinking: The server provides
I want to make an app which (amongst other things) can parse feeds loaded
Background: I have started Android recently. I want to make an application for Android
Coming from a Java background, I want a class to have certain attributes and
I'm new to Ruby - came from Java background. I want to use third
I want to make a background task in one thread and send information from
I want to make a Firefox like Option Dialog in Java with Swing. I
I'm trying to develop a Java program that does the following: uses a background

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.