aspose file tools*
The moose likes Beginning Java and the fly likes class file not running on jvm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "class file not running on jvm" Watch "class file not running on jvm" New topic
Author

class file not running on jvm

kkailash
Greenhorn

Joined: Jul 25, 2001
Posts: 2

hi Friends
can some body tell why iam getting error while trying to run my
class File.
ERROR IS like NO CLASS DEFOUNDER
Ian Darwin
author
Ranch Hand

Joined: Aug 03, 2001
Posts: 64
A good general rule in using Java is that most of the error codes are condensations of English phrases. So the error message ArrayIndexOutOfBoundsException means that you had, obviously, an array index or subscript that was either negative, or greater than or equal to the length of the array. Similarly,
<pre>Exception in thread "main" java.lang.NoClassDefFoundError: PooBah</pre>
means that No Class Definition was Found with the name PooBah.
This usually means:

  • The class name is spelled incorrectly (and note that class names are case sensitive, even on MS-Windows; a class name is not the same thing as a file system entry, though it must usually be spelled and capitalized the same way);
  • The class is not in the current directory and your class path does not include the directory that it is in. Java's class path is similar to the execution PATH used for programs on both UNIX and MS-Windows, but it can be set either as an environment variable or on the command line.

  • Originally posted by kkailash:

    hi Friends
    can some body tell why iam getting error while trying to run my
    class File.
    ERROR IS like NO CLASS DEFOUNDER


    ------------------
    Ian Darwin,
    Author of Java Cookbook: Solutions and Examples for Java Developers


Ian Darwin
Many questions are answered in my Java Cookbook, 2nd Edition
mitchner green
Greenhorn

Joined: Sep 18, 2001
Posts: 21
In case you're not familiar with classpaths, try:
set CLASSPATH=%CLASSPATH%;.
or
set CLASSPATH=%CLASSPATH%;<Your directory>
That should do it.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
kkailash,
Please change your name to be compliant with JavaRanch's naming policy.
Your ID should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name.
You must have a valid registered name to qualify for the book give away.
Thanks,
Cindy

"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class file not running on jvm