This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hello ranchers, I have installed jdk5.0 in my system, and i have set the class path and path in the environment variables but when i run my application i get the class not found exception and exception in main thread exception. i need to know the information urgent please reply me as soon as possible.
Please post the exact error message you are getting.
If the NoClassDefFoundError shows "/class" at the end of it, then you are typing ".class" when you invoke java from the command line. Leave off the .class extension and it should work fine.
If there is not a "/class" at the end of it, then it could be your CLASSPATH. You probably should not have a system CLASSPATH set at all. If you do, then it should include a dot (.) for the current directory. To verify whether this is the problem, try running with a classpath flag for the current directory (java, space, -cp, space, period, space, filename without extension)...
java -cp . MyFile
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org