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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:55:25+00:00 2026-05-27T10:55:25+00:00

In Eclipse, it’s easy, I just need to add a class and tick into

  • 0

In Eclipse, it’s easy, I just need to add a class and tick into something like Add public static void main() then run. But with IntelliJ IDEA I can’t find how to create a simple “Hello World” project, the run button (Shift + F10) is always grayed out even after I added a main class in Edit Configurations. In fact, my JAVA background is not good and I am also a newbie to IntelliJ IDEA. So I am thankful to someone who show me a way to start.

Thank in advance.

p/s : I started with a Java Module project, import JDK 6.0, I didn’t choose any technology. Then I created a package and a class under src\. I saw a TUT video on youtube that there even has a make main() command with right click on the class name but I can’t find it anywhere. I am using IntelliJ IDEA 11 in 30 days evaluation.

  • 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-27T10:55:26+00:00Added an answer on May 27, 2026 at 10:55 am

    This is a transcript of how I just created a Hello World in IDEA 10.5.2 on mac. It should be exactly the same on Windows or Linux.

    (you might wanna jump to step 10)

    1. On the startup screen choose Create New Project
    2. On the next Create project from scratch
    3. Give a name HelloStack and a folder /tmp/src/HelloStack
    4. Create Module is already checked and should be so. The name is predefined to the same as the project and that is fine.
    5. Just click Next and Finish on the rest of the screens. No technologies are needed.
    6. If the Project tab isn’t open, open it now. It’s on the left
    7. Under HelloStack there is a folder named src, it’s marked in blue meaning that it is a source folder. Right click it and choose New -> Java Class. For this simple project we’ll skip packages entirly. Name the class something, mine is HelloStack like the project and module.
    8. Now create a public static void main-method, there is a live template for this, just type psvm and press tab, it will expand to a complete main method.
    9. Another live template is System.out.println, just type sout and press tab. Write something.
    10. Right click inside the main method, choose Run “HelloStack.main()”. This will create a runner, make the code, and run the method (class). From now on there is a runner for this and you can press the green arrow to run it.
    11. Done.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Eclipse is offering final but I can't increase the i variable. @Override public void
Eclipse 3.5 indents this code correctly: addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e)
Eclipse issues warnings when a serialVersionUID is missing. The serializable class Foo does not
Eclipse was working fine just a day ago. But today, when I click the
Eclipse has a feature Add unimplemented methods that adds the unimplemented methods for a
Eclipse as a option to create a class automatically once a undefined Object is
Eclipse can add unambiguous classes with an on-save action, but it will not resolve
Eclipse comes with some dependencies like Junit. How to configure the maven to use
Eclipse's Search results view is quite handy with its tree-like structure. Is there any
Eclipse Vaadin plugin has cool autobuild feature. Just clicking restart application in debug console

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.