setenv and export
Aquil H. Abdullah
aquil.abdullah at gmail.com
Fri Aug 21 02:46:58 UTC 2009
You can add the export command to your ~/.bashrc or ~/.bash_profile file.
Open your .bashrc file
add the line:
export CLASSPATH=[path you want to add]
after that you can type:
source ~/.bashrc
and you should be all set. The next you login or start your system you
should be. fine.
On Thu, Aug 20, 2009 at 10:11 PM, Kipton Moravec <kip at kdream.com> wrote:
> I am trying to setup java to do serial port stuff, and I do not know
> java, I just want to run a stupid program. So I have to install Sun Java
> Communications API for Linux.
>
> One of the steps is:
>
> 2. If you are using JDK (not JRE) Add comm.jar to your classpath.
>
> Example: If you don't have a CLASSPATH set currently,
>
> % setenv CLASSPATH `pwd`/comm.jar
>
> or, if you have something in your CLASSPATH already,
>
> % setenv CLASSPATH `pwd`/comm.jar:$CLASSPATH
>
> --------------
>
> And setenv does not work. Because it is not a bash command which is the
> default for most of the Linux operating systems. It is a c shell
> command.
>
> Fortunately I was able to search and find that export is the equivalent
> command.
>
> echo $CLASSPATH
>
> Showed I did not have anything in the class path.
>
> export CLASSPATH=/home/kip/APRS/bin
>
> But it is not persistent across booting. Do I have to initialize it each
> time I want to run my program (which is from boot-up to shutdown).
>
> How is the best way to do this?
>
> What is 'pwd' in the example, and why is it there? (Does it make it
> persistent?)
>
> Kip
> --
>
>
> Kipton Moravec AE5IB .- . ..... .. -...
> ==============================================
> Four Way Test
> Is it the Truth?
> Is it Fair to all concerned?
> Will it build Goodwill and Better Friendships?
> Will it be Beneficial to all concerned?
> - Herbert J Taylor (1932)
>
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
Aquil H. Abdullah
aquil.abdullah at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20090820/b9bd8fac/attachment.html>
More information about the ubuntu-users
mailing list