LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-09-2002, 03:18 PM   #1
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
Unhappy setup java using suse


Hi!
I'd like to install java and a path to execute it using linux/suse distro. I think I should find sth. like "~/.bashrc" or "~/.bash_profile" to edit the path. Only there are no such files. Any help much appreciated!
 
Old 02-05-2002, 09:14 AM   #2
elist
Member
 
Registered: Dec 2001
Location: MK - UK
Distribution: Mandrake
Posts: 94

Rep: Reputation: 15
Why not make the path global by putting it in your /etc/.profile file?
 
Old 02-07-2002, 03:03 AM   #3
gluon
Member
 
Registered: Jun 2001
Location: Switzerland
Distribution: SuSE 8.[012], Gentoo
Posts: 42

Rep: Reputation: 15
Hi,

Try something like

echo "export CLASSPATH=$CLASSPATH:absolute_path_to_your_java_dir/lib" >> .profile

where absolute_path_to_your_java_dir should be /usr/lib/java under SuSE (in fact the java dir is a link to /usr/lib/jdk.1.3)

Whatsmore, if you want to add libraries (eg MySQL drivers...), just copy the .jar file into that absolute_path_to_your_java_dir/lib and it will "automatically" work !

Hope it helps

CU, Gluon
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SUSE 9.1 PROF] How can I copy the setup files to my harddisk and start the setup? TheRealFalcon Linux - Distributions 1 08-07-2004 11:49 PM
Kdevelop Java Setup jeffxor Programming 0 07-31-2004 10:43 AM
Setup a VPN server on a Sun Java desktop system. hollor Linux - Newbie 1 06-14-2004 09:26 AM
/.bash_profile setup to run java program mohapi Fedora 10 01-22-2004 07:43 PM
Java VM Setup Crickit Linux - Software 3 01-08-2004 08:41 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration