Re: running java


Subject: Re: running java
From: Scott Frankel (leknarf@pacbell.net)
Date: Mon Nov 26 2001 - 22:19:35 MST


Could be that you need to define your CLASSPATH.
Here's what I've got in my .bash_profile file:

    # add java path
    PATH=$PATH:/usr/local/j2sdk1.3Beta/j2sdk1.3/bin/

    # create java classpath
    export CLASSPATH=.:$HOME/classes:./classes

    # create java library path
    export LD_LIBRARY_PATH=.:$HOME/lib:./lib

Good luck!
Scott

On Sunday 25 November 2001 14:34, Mark Brethen wrote:
> I installed the java sdk (1.3) and when I attempt to run a jar file I get
> the following:
>
> bash: /usr/bin/java: No such file or directory
>
> The java binary is actually located in /usr/local/j2sdk1.3/bin/
>
> Do I need to put a script in /etc/profile.d/? How does one set this up?



This archive was generated by hypermail 2a24 : Mon Nov 26 2001 - 22:33:10 MST