Problems With Classpath(Linux) -Very Frustrated-

Hi,

I have installed the JDK1.3.1 and Netbeans 3.2 rc 1

my problems occur when running programs

i can run all programs by typing:

/home/soho/jdk1.3.1/bin/java ProgramName

(In directory containing ProgramName.class

however if I try and run programs with simply

java ProgramName

i get errors complaing that my classpath is incorrectly set

i have set classpath to:

export CLASSPATH=/home/soho/jdk1.3.1/bin:/home/soho/jdk1.3.1:<blah>

essentially every directory in the JDK as well as

/home/soho/jdk1.3.1/lib/tools.jar and various other JAR files

but i still have to type in the full command line when running programs. This sucks because i cant run programs in netbeans! only from a command prompt. Any help would be appreciated....

Thanks,

Sincerely Robert Strube

[870 byte] By [soho88] at [2007-9-26 2:39:00]
# 1
You are probably running java under some variant of Unix? Try typing:which javaYou'll probably see that "java" is something else than "/home/soho/jdk1.3.1/bin/java". There's probably another (older) JDK installed on your system.Jesper
jesper1 at 2007-6-29 10:10:44 > top of Java-index,Archived Forums,Java 2 Software Development Kit (J2SE SDK)...