473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

when run any program then exception is thrown class not found

this eception occurs even if class name and program name is same
Jan 9 '11 #1
4 1459
pleae send ans
Jan 9 '11 #2
horace1
1,510 Expert 1GB
are you attempting to run the program from the directory where the .class file is?
are you using packages? if so do you have the correct directory structure?
Jan 9 '11 #3
Dheeraj Joshi
1,123 Expert 1GB
Please post the code. It will help us to figure out the problem.

Regards
Dheeraj Joshi
Jan 10 '11 #4
nathj
938 Expert 512MB
It would be good to see the code, information on the directory structure and the command line you are using to fire this off. We should then be able to help you figure it out

>>edit

Are you using an IDE to develop your code? If so what happens when you run the code there? Also do you have a main method in the class you are running?

Thanks
nathj
Jan 10 '11 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Tony Johansson | last post by:
Hello! When you allocate object dynamically which mean on the heap I find that a problem when using exception. What is the prefer method to handle this kind of problem. //Tony
5
by: n_o_s_p_a__m | last post by:
Can't compile. Does this mean that all functions that throw exceptions must be of return type void? examples: // won't compile: "not all code paths return a value" public override int Run() {...
3
by: Jasleen | last post by:
I want to access the protected member hresult of the Exception class, so I derived my own class from ApplicationException and SystemException. public class LoggedException : SystemException {...
4
by: Uchiha Jax | last post by:
I had a bug, code kept stopping without any warning. I'd put a breakpoint on say line 3 and line 8. 3 would trigger but the breakpoint on line 8 would never trigger. After trying a few things I...
1
by: TrtnJohn | last post by:
Is there anyway to tell from inside an exception class when it is thrown? I'd like to add logging to my application whenever a certain exception is thrown. I don't want to have to add the logging...
1
by: Mark | last post by:
We have an internal web service that intentionally allows raw Exceptions to be thrown to the clients that consume it. This web service is consumed by internal ASP.NET applications. When the...
1
by: yancheng.cheok | last post by:
Hi all, According to "How can I handle a constructor that fails?" in http://www.parashift.com/c++-faq-lite/exceptions.html#faq-17.2, whenever there is a constructor fail, we will throw...
5
by: Joris Zwaenepoel | last post by:
Hi all, I don't think a solution exists, but maybe there is some option in Visual Studio that I do not know about. When developping (or debugging), I like to set the "exceptions" option to...
0
by: drop | last post by:
Hi, I have some DropDownLists that are contained in a DetailsView. Here's a sample of my code for the DropDownLists : <InsertItemTemplate> <asp:DropDownList ID="ddl_TourOp" runat="server"...
0
by: sethuraman | last post by:
Hi, I have had a problem before, I am not sure about the exact exception that is thrown.. but I am sure that there is an exception thrown after processing 600 and odd rows in a DB2 JDBC...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.