Thanks Scot and everyone else. I was calling it with the *.class extension.
Without it it works.


At 04:38 PM 10/29/98 -0500, you wrote:
>OK, where is my.class located?  Also, is the java source for my.class
defined in
>terms of a package?  Also, are you trying to run my.class like this:
>
>1) java -classpath $CLASSPATH my.class
>
>OR
>
>2) java -classpath $CLASSPATH my
>
>
>If you are doing 1) above, try 2).
>
>
>
>a wrote:
>
>> This works:
>> javap -classpath $CLASSPATH java.lang.Object
>>
>> This don't work: (my.class is in same directory)
>> javap -classpath $CLASSPATH my.class
>> Class 'my.class' not found
>>
>> This don't work:
>> java -classpath $CLASSPATH my.class
>> Can't find class my.class
>>
>> This works:
>> java -classpath $CLASSPATH java.lang.Object
>> In class java.lang.Object: void main(String argv[]) is not defined
>>
>> -aaz
>>
>> At 04:26 PM 10/29/98 -0500, you wrote:
>> >Are you saying you can issue javap, but not java?
>> >
>> >a wrote:
>> >
>> >> That works.
>> >> No kaffe installed
>> >>
>> >> At 04:18 PM 10/29/98 -0500, you wrote:
>> >> >Do you have kaffe installed on your box?  Also, what happens if you do
>> this:
>> >> >
>> >> >javap -classpath $CLASSPATH java.lang.Object
>> >> >
>> >> >a wrote:
>> >> >
>> >> >>
>> >>
>>
CLASSPATH=.:/usr/local/jdk116_v5/lib/classes.zip:/usr/local/jdk116_v5/lib:/u
>> >> >> sr/local/jdk116_v5/lib/moreClasses:/usr/local/apache1.3.3/share/j-bin
>> >> >>
>> >> >> At 04:11 PM 10/29/98 -0500, you wrote:
>> >> >> >Could you show me your class path?
>> >> >> >
>> >> >> >Also, have you tried this:
>> >> >> >
>> >> >> >java -classpath $CLASSPATH ...
>> >> >> >
>> >> >> >a wrote:
>> >> >> >
>> >> >> >> Hi all
>> >> >> >> Still having problems. My CLASSPATH is set to the needed
>> directories as
>> >> >> >> well as classes.zip but I still keep getting these dang errors.
>> >> >> >>
>> >> >> >> Can't find class test.class (the test program)
>> >> >> >> Unable to initialize threads: cannot find class java/lang/Thread
>> >> >> >>
>> >> >> >> help!
>> >> >> >
>> >> >
>> >
> 

Reply via email to