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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:07:36+00:00 2026-05-11T12:07:36+00:00

Since I’ve been learning Java, I’ve been able to create GUI programs. However, even

  • 0

Since I’ve been learning Java, I’ve been able to create GUI programs. However, even simple ‘Hello World!’ programs will not work, if they require a console. My research on the topic has lead me to the conclusion that my Java Runtime Environment does not have a console associated with it.

Is it possible to call the Win32 ‘AllocConsole’ method somehow, like is possible in C#?

Edit:

I mean the console like you are describing, a console just like C# programs can have. I forgot to mention that I’m using the Eclipse IDE. From what I’ve discovered Eclipse runs a program using ‘javaw.exe’ instead of ‘java.exe’ which causes the program not to have a console. Also, the windows ‘command prompt’ is a program that uses the type of console I mean.

Thanks for any answers.

Euphoria83 is on the right track as to what I am trying to do. By the way his method works, but I want the console to automatically appear when I click on the ‘.jar’ file of a program I create. Basically, I need the console to act like it does in C# at runtime. Also, Eclipse does have a console window (I think they call it the console perspective, but I am used to using Visual Studio so I am not exactly sure) which will display the program output inside Eclipse only. I want the console to work at runtime, not just inside the integrated development environment.

  • 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. 2026-05-11T12:07:37+00:00Added an answer on May 11, 2026 at 12:07 pm

    Either associate ‘java.exe’ with the .jar extension (by default it will be ‘javaw.exe’, which has no console), in which case you’ll get a console with every jar, or create a shortcut/.exe in the language of your choice/batch script to run ‘java -jar myjar.jar’ when you click on it.

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

Sidebar

Ask A Question

Stats

  • Questions 119k
  • Answers 119k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer It looks as though that's not an option built into… May 11, 2026 at 11:42 pm
  • Editorial Team
    Editorial Team added an answer ReadLine is waiting to see what the next character is.… May 11, 2026 at 11:42 pm
  • Editorial Team
    Editorial Team added an answer User charindex: Select CHARINDEX ('S','MICROSOFT SQL SERVER 2000') Result: 6… May 11, 2026 at 11:42 pm

Related Questions

Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
Since I started studying object-oriented programming, I frequently read articles/blogs saying functions are better,
Since I'm not a huge fan of any of the current solutions for managing
Since I didn't do a good job writing the last question, and most of
Since I've joined twitter I have found it very helpful to keep my finger

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.