answersLogoWhite

0


Best Answer

This error occurs when you try to run a java program and the JVM (java virtual machine ) do not found the class file for your program.

there are two reasons for this kind of error to occur

1. If you haven't set the CLASSPATH environment variable for the bin directory of your java installation or to the current directory in which you are working, then JVM will never know where to look for the class files you are trying to load and so the error occurs.

2. you may be trying to run your program with a wrong class name which doesn't exist.

note: this error doesn't mean that there is any error in your code.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When class definition not found error will occur?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

When does generally declaration syntax error occur?

All syntax errors occur at compile time.


How does thread synchronization occur in a monitor?

by using synchronized class


What are the types of error that occur in programming?

There are some types of errors, eg:1. Compile Errors1.1. Syntax Errors2. Run time Errors2.1. Segmentation fault (or: invalid page fault)2.2. Division by zero2.3. Value out of rangesyntax error refers to an error in the syntax of a sequence of characters or tokens that is intended to be written in a particular programming language.x=1;y=x++;y=++x;give me answer and how work it.


Difference between syntax error and runtime error?

Syntax error can be found during compilation. Runtime error can be found only when you are trying to execute your program. Syntax errors are those which are caused by incorrect usage of the programming language. All programming language compilers are designed to detect and report such errors done by the programmer Runtime errors are those which are caused by incorrect usage of programming logic. for example a runtime divide method will throw a run time error if the divisor is '0' because numerically you cannot divide a number by 0


Why a friend function cannot be used to overload the assignment operator?

Assignment(=) operator is a special operator that will be provided by the constructor to the class when programmer has not provided(overloaded) as member of the class.(like copy constructor). When programmer is overloading = operator using friend function, two = operations will exists: 1) compiler is providing = operator 2) programmer is providing(overloading) = operator by friend function. Then simply ambiguity will be created and compiler will gives error. Its compilation error.

Related questions

What if an error is found in arbitration?

More information is necessary. Since the parties concerned both HAD had sign off on the agreement, if an error was subsequently found, on whose part did the "error" occur. Who benefited from it? Is the error provable? You may be headed back to litigation.


Would you say How this error occurred or how did this error occur?

The question would be the latter "How did this error occur?" The former is the objective form, e.g. "I am trying to discover how this error occurred."


How do outliers occur?

Human error


What is the definition of tolerance as used in engineering?

Tolerance is the largest amount of error that can occur during its operation. Depending on the nature of the instrument, tolerance may sometimes be quoted instead of accuracy


What is most likely to be found in crystalline form?

All minerals occur in crystalline form. It's a part of the definition of a mineral.


What is the definition of hydrocarbons in relation to chemistry?

In relation to chemistry, hydrocarbons are defined as an organic compound where carbon and hydrogen is found. Hydrocarbons found on planet earth occur in crude oil.


Does parallax error occur in vernier callipers?

No


What is chrome registration error on a computer?

when we download any song or video error may occur


When does generally declaration syntax error occur?

All syntax errors occur at compile time.


By definition where does domestic violence occur?

At home


What causes the critical error on Windows 10?

Windows 10 does not cause a critical error. In PHP, any syntax, mathematical, or system error can cause an error to occur.


Can What occur as a result of improper cable termination?

Data error