File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
no classDefination Found Error
Joined: Apr 16, 2005
Jun 14, 2005 06:07:00
its very simple doubt
when i compile my
files it does fine but if i need to run the programme by this command ex: java
then it gives error
how to solve it sir
A = HARDWORK B = LUCK/FATE If C=(A+B) then C=SUCCESSFUL IN LIFE else C=FAILURE IN LIFE
Joined: Dec 01, 2003
Jun 14, 2005 06:20:00
Is the name of your class "test" or "Test"? I would make sure that you are using the right class name and either launching java from the directory where the class lives, or that the class is in the classpath.
Joined: Oct 24, 2000
Jun 15, 2005 01:23:00
Does your source file contain a package definition?
If so, you need to type "java package_name.class_name".
If not, as Timmy suggests, see if your class name is "test" or "Test". If it's "Test" then you need to type "java Test".
If your class name is "test", be aware that class names really should begin with upper-case letters. And make sure your classpath includes "."
Consultant to SCJP team.<br />Co-designer of SCJD exam.<br />Co-author of "Complete Java 2 Certification Study Guide".<br />Author of "Ground-Up Java".
I agree. Here's the link:
subject: no classDefination Found Error
Can I build in Java1.4 and run on Java1.6
only 8 days for exam.....
Problems compiling program-can anyone help??
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014