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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:12:17+00:00 2026-05-25T18:12:17+00:00

I am new to java programming, Ubuntu, and Eclipse (usually work on win7 ultraedit/monodevelop/visualstudios

  • 0

I am new to java programming, Ubuntu, and Eclipse (usually work on win7 ultraedit/monodevelop/visualstudios with C#, C++, MONO, PHP)

I have installed the java-sdk ( + tons of other java packages ) on my machine + Eclipse and cannot run a simple project through Eclipse.

I can build a .java file, by executing the java file in the terminal using javac to build the class file and java file.class to execute it. I want to use eclipse to build and run my project and it’s not working.

In my eclipse run configurations I have it using the JRE java-6-sun-1.6.0.26 (which is installed) but it’s still not working.

When I try and run a simple project

public class main {

    /**
     * @param args
     */
    public static void main(String[] args)
    {
        // TODO Auto-generated method stub
        while(true){ }
    }

}

the only thing in the console is:

main(1)[Java Application] /usr/lib/jvm/java-6-sun-1.6.0.26/bin/java (Sep 20, 2011 12:22:12 PM)

That path and file does exist. I don’t know what’s going on.

  • 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-25T18:12:18+00:00Added an answer on May 25, 2026 at 6:12 pm

    You have an infinite loop in your main method. This will run for ever without doing anything.

    Try

    public static void main(String[] args)
    {
        // TODO Auto-generated method stub
        while(true){
            System.out.println(new java.util.Date());
        }
    }
    

    and run again.

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

Sidebar

Related Questions

I have done Java and JSP programming in the past, but I am new
I am new to java programming. I have a program which I wrote to
I am new to java programming, been programing in php so I'm used to
I'm new to Java programming, I am programming Java 1.6 with Android. I have
Let me start by saying, I am new to Java programming. I have coded
I am new to Java programming / Android development - but I have been
Hi I am new to the java programming. I have a instance variable in
I'm new in Java and in programming on android. Have a look at this
How can I, in Java or using some other programming language, add a new
For a new Java web project I thought about using: Eclipse as IDE Mercurial

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.