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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:40:25+00:00 2026-06-10T06:40:25+00:00

I searched to know the difference between java.exe and javaw.exe . I read through

  • 0

I searched to know the difference between java.exe and javaw.exe. I read through
Difference between Java.exe and Javaw.exe.

There it is stated that java.exe is for console and javaw.exe is for window application.
In some other post it is mentioned that console is not available in javaw.

but I wonder when I run Tomcat server and see its process in process explorer I see javaw.exe even though tomcat is a console application.

  • 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-10T06:40:27+00:00Added an answer on June 10, 2026 at 6:40 am

    The java and javaw commands states

    The java and javaw tools start a Java application by starting a JRE and loading a specified class.

    The javaw command is identical to java, except that javaw has no
    associated console window. Use javaw when you do not want a command
    prompt window to be displayed.

    The javaw launcher displays a window with error information if it fails.
    In case of Tomcat you won’t see Win32 console application running, similarly to launch Eclipse, javaw.exe is used.

    Example :
    Write the following code :

    import javax.swing.*;
    public class JavavsJavaw {
        private static void renderGUI() {
            JFrame jFrame = new JFrame("HelloWorld Swing");
            jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            JLabel helloLabel = new JLabel("Hello World!");
            jFrame.getContentPane().add(helloLabel);
            jFrame.pack();
            jFrame.setVisible(true);
        }
    
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    renderGUI();
                }
            });
        }
    }
    

    Step 1 : C:\>java JavavsJavaw
    (the command-line waits for the application response till it closes)
    Step 2 : C:\>javaw JavavsJavaw
    (the application launches and the command line exits immediately and ready for
    next command)

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

Sidebar

Related Questions

At first I searched in Stack Overflow about the difference between MySQL and SQLite.
I would like to know if there is a way to make a difference
I have searched Google to find the main difference between 3-tier and n-tier architecture
Is there any difference between CMS and hight traffic websites (like news portals) in
I know this question as been asked countless times, but believe me I've searched
I need to know the name of field containing searched keyword e.g. if I
I've searched for this question but I don't know if I've phrased it correctly.
I know this question is beyond the scope of SO , i have searched
I have searched for a while, to know which screen resolution i should consider
I've searched high and look for samples about using MEF for DI. I know

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.