Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
This week's giveaway is in the
Cloud/Virtualization
forum.
We're giving away four copies of
Secure Financial Transactions with Ansible, Terraform, and OpenSCAP
and have Lucian Maly on-line!
See
this thread
for details.
Win a copy of
Secure Financial Transactions with Ansible, Terraform, and OpenSCAP
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Jeanne Boyarsky
Bear Bibeault
Sheriffs:
Rob Spoor
Henry Wong
Liutauras Vilda
Saloon Keepers:
Tim Moores
Carey Brown
Stephan van Hulst
Tim Holloway
Piet Souris
Bartenders:
Frits Walraven
Himai Minh
Jj Roberts
Forum:
Java in General
Problem while using the Eclipse IDE
ragi singh
Ranch Hand
Posts: 198
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I am trying to run my program in Eclipse
IDE
. however i am getting the following exception while running my program
java.lang.NoClassDefFoundError: HelloWorld
Exception in
thread
"main"
i have a main in my class . Can anyone help me to fix the problem ?
Mathew Mintalm
Ranch Hand
Posts: 103
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I guess it would be better to show us code first.
ragi singh
Ranch Hand
Posts: 198
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The code is as follows :-
public class Tux extends Thread{ static String sName="vandeluer"; public static void main(String[] args){ Tux t= new Tux(); t.piggy(sName); System.out.println(sName); } public void piggy(String sName){ sName=sName+ " wiggy "; start(); } public void run(){ for(int i=0;i<4;i++){ sName=sName+" " + i; } } }
and the source of the code is :-http://www.jchq.net/mockexams/exam1.htm#Question%2021%29
Campbell Ritchie
Marshal
Posts: 72487
315
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
So where is your HelloWorld class?
Campbell Ritchie
Marshal
Posts: 72487
315
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
It ran all right when I tried it.
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
problem in executing swing application
eclipse and System.console()
same error when using XP and Eclipse to run program
Problem invoking a servlet directly from FireFox browser
overriding var args methods
More...