>> Exception in thread "main" java.lang.NoClassDefFoundError: TestCommand
>
[quoted text clipped - 6 lines]
>
>Daniel
Hi,
I was working along with this person. The classes12.zip i.e. the JDBC driver
file has been successfully appended to the CLASSPATH environment variable but
of no use

Signature
Shouvik
Daniel Dittmar - 16 Feb 2006 13:27 GMT
>>> Exception in thread "main" java.lang.NoClassDefFoundError: TestCommand
>> This means that your own class TestCommand cannot be found through
[quoted text clipped - 10 lines]
> file has been successfully appended to the CLASSPATH environment variable but
> of no use
Are you trying to run your code inside of NetBeans or from the command line?
If it is the latter (c:\> java TestCommand), you have to add the
directory containing TestCommand.class to CLASSPATH, (assuming that
TestCommand.java contains no packagage statement).
Java does *not* search the current directory for class files unless your
CLASSPATH contains it.
Daniel
HansF - 17 Feb 2006 03:59 GMT
> Hi,
> I was working along with this person. The classes12.zip i.e. the JDBC driver
> file has been successfully appended to the CLASSPATH environment variable but
> of no use
Silly question, and no insult intended: do you alter the CLASSPATH for
the environment? That is, inside the IDE?
Or - as I have seen some do - with the environment up, set the CLASSPATH
in the environment variables, without restarting the IDE.
Hello,
> Perhaps you forgot to add the current directory to %CLASSPATH%.
>
> You'll have to add the .jar file of the Oracle driver as well.
under NetBeans:
- right mouse click on your project
- select Properties
- select Libraries and add your Oracle Driver
Regards
Michael

Signature
http://www.smurfi.de
German NetBeans-Site
Shouvik Das - 16 Feb 2006 11:41 GMT
>Hello,
>> Perhaps you forgot to add the current directory to %CLASSPATH%.
[quoted text clipped - 9 lines]
>Regards
>Michael
Hi
I did this too but to no result always the Exception raised is
ClassNotFoundException pl help
With regards

Signature
Shouvik