On Fri, Jun 09, 2000 at 10:03:00PM +0530, Bhavin Sheth wrote:
> Hi all,
>
> I started learning Java a couple of days ago. I have installed JDK-1.1.6
> and JRE-1.1.5 (from Chip Linux Speical CD-2) on my RHL 6.1 box. I can't get
> any Java programs to run. A program say, A.java compiles without any errors
> but when I try 'java A' then it shows an error 'Can't find file A.class'
> But the file A.class is present when I try 'ls -l'..... The default
> classpath is set as follows:
> CLASSPATH=/usr/lib/jdk-1.1.6/lib/classes.zip
You need to add "." to the classpath.
CLASSPATH=/usr/lib/jdk-1.1.6/lib/classes.zip:.
export CLASSPATH
>
> If I manually try to set the path like:
> $set CLASSPATH=/home/Bhavin/Java
>
See how to set your classpath above.
> Also is JDK-1.2.xz (for linux) available ? Where can I download it from ?
Look at blackdown. Look at java.sun.com - for Borland/Inprise jdk-1.2.
Also, IBM has a JDK 1.3 downloadable for linux.
-Arun
-----------------------------------------------------------------------
LIH is all for free speech. But it was created for a purpose - to help
people discuss issues about installing and running Linux. If your
messages are counterproductive to this purpose, your privileges to
submit messages can and will be revoked.