Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » java.lang.noclassdeffounderror in simple program
java.lang.noclassdeffounderror in simple program [message #1261238] Sun, 02 March 2014 10:43 Go to next message
Michael J is currently offline Michael JFriend
Messages: 1
Registered: March 2014
Junior Member
Hi all. I'm just starting to learn Java and Eclipse so write a simple program that print Hello World but when I try to get it run I get an error which is mention in the topic.

Source code:

package niewitaj;

public class NieWitaj {
	public static void main(String[] args){
System.out.println("Nie powiemy Witaj, w świecie!");}
}
  • Attachment: error.png
    (Size: 70.79KB, Downloaded 99 times)
Re: java.lang.noclassdeffounderror in simple program [message #1261864 is a reply to message #1261238] Mon, 03 March 2014 03:17 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 03/02/2014 11:55 AM, Michael J wrote:
> Hi all. I'm just starting to learn Java and Eclipse so write a simple program that print Hello World but when I try to get it run I get an error which is mention in the topic.
>
> Source code:
>
> package niewitaj;
>
> public class NieWitaj {
> public static void main(String[] args){
> System.out.println("Nie powiemy Witaj, w świecie!");}
> }
>

In the Eclipse Package or Project Explorers, open your project and drill
down to the Java source you wrote. Right-click on it and choose Run Java
Application.

If you wish to run from the command line, you'll need to generate a JAR.
That's a couple of lessons from today. Run inside Eclipse for now.
Previous Topic:Java development basic tutorial
Next Topic:Accessibility - Appearance issues
Goto Forum:
  


Current Time: Wed Oct 21 19:45:38 GMT 2020

Powered by FUDForum. Page generated in 0.24136 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top