Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2004

Tip: Looking for answers? Try searching our database.

setting the enviourment variables in Linux

Thread view: 
shoshe - 22 Jun 2004 21:11 GMT
hi there ... i need to run Java in linux but when i compile any java
based prob it tell me that the Java Enviourment Variables are not
setup correctly !
can anyone pleaes tell me how to setup the en_varibles in Linux ?
Nigel Wade - 23 Jun 2004 11:44 GMT
> hi there ... i need to run Java in linux but when i compile any java
> based prob it tell me that the Java Enviourment Variables are not setup
> correctly !
> can anyone pleaes tell me how to setup the en_varibles in Linux ?

How you set environment variables depends on which shell you are using.
Typically you would use:

for sh:
$ set VAR="some text"
$ export VAR

for ksh, bash:
$ export VAR="some text"

for csh:
$ setenv VAR "some text"

Suns java compiler does not require any environment variables in order to
compile java code. Which compiler/tool are you using to compile your code
and what exact error message is it producing?

Signature

Nigel Wade, System Administrator, Space Plasma Physics Group,
           University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

shoshe - 25 Jun 2004 21:00 GMT
i thnk its the BASH shell .. this is the default Linux RH9 shell that
i have . i did tried to make some changes in the fiels and tried to
point to the libraries in the directory but still when i compiled a
few applications , they say that the JAVA libraries could not be found
.. and can i also know  the command to find diff app ... like i wanna
know where QT is installed ... so what to type on the shell to find it
?
Nigel Wade - 28 Jun 2004 09:51 GMT
> i thnk its the BASH shell .. this is the default Linux RH9 shell that
> i have . i did tried to make some changes in the fiels and tried to
> point to the libraries in the directory but still when i compiled a
> few applications , they say that the JAVA libraries could not be found

You didn't answer the other question:

Which compiler/tool are you using to compile your code
and what exact error message is it producing?

> .. and can i also know  the command to find diff app ... like i wanna
> know where QT is installed ... so what to type on the shell to find it
> ?

That's a RedHat question, nothing to do with Java.

Signature

Nigel Wade, System Administrator, Space Plasma Physics Group,
           University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

shoshe - 25 Jun 2004 21:38 GMT
> hi there ... i need to run Java in linux but when i compile any java
> based prob it tell me that the Java Enviourment Variables are not
> setup correctly !
> can anyone pleaes tell me how to setup the en_varibles in Linux ?
=========================================================================

i thnk its the BASH shell .. this is the default Linux RH9 shell that
i have . i did tried to make some changes in the fiels and tried to
point to the libraries in the directory but still when i compiled a
few applications , they say that the JAVA libraries could not be found
.. and can i also know  the command to find diff app ... like i wanna
know where QT is installed ... so what to type on the shell to find it
?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.