•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 397,834 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,519 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 659 | Replies: 1
![]() |
•
•
Join Date: Jun 2006
Posts: 11
Reputation:
Rep Power: 3
Solved Threads: 0
I'm a beginner in JAVA and I'm facing a problem in executing a sample program.Let me explain it step by step:
1. The following program was written thru a notepad and then saved as Sample.java:
class Sample
{
public static void main(String args[])
{
System.out.println("Hello World!!!");
}
}
2. The above program is then compiled by rhe following command:
javac Sample.java
Successful compilation: a .CLASS file named as Sample.class was generated.
3.The following command was implemented for execution:
java Sample
An error message appeared:
Exception in thread 'main':java.lang.NoClassDef Found.Error
ample
PLEASE HELP...........
1. The following program was written thru a notepad and then saved as Sample.java:
class Sample
{
public static void main(String args[])
{
System.out.println("Hello World!!!");
}
}
2. The above program is then compiled by rhe following command:
javac Sample.java
Successful compilation: a .CLASS file named as Sample.class was generated.
3.The following command was implemented for execution:
java Sample
An error message appeared:
Exception in thread 'main':java.lang.NoClassDef Found.Error
amplePLEASE HELP...........
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
- Previous Thread: JSP Problem Student database search
- Next Thread: Change Image based on user Input



Linear Mode