LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-13-2006, 03:32 PM   #1
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Adding Java Classpaths


This is a fairly simple question: how to I add a directory to my Java classpath? I'm trying to add a directory of a jar file that has some REALLY useful classes in it.
 
Old 06-14-2006, 07:55 AM   #2
imagineers7
Member
 
Registered: Mar 2006
Distribution: BackTrack, RHEL, FC, CentOS, IPCop, Ubuntu, 64Studio, Elive, Dream Linux, Trix Box
Posts: 310

Rep: Reputation: 30
Hello indienick,

CLASSPATH=$CLASSPATH:/path/to/your.jar
export CLASSPATH

to make it permenant add above lines to your
~/.bashrc file to make it systemwide keep it in shared place and add above lines in /etc/profile

simple answer
 
Old 06-15-2006, 07:24 AM   #3
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Original Poster
Rep: Reputation: 65
thank you very much for the reply imagineers7

simple answer for a simple question
 
  


Reply



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
Adding java components dwight Programming 2 03-25-2005 03:23 PM
adding java jdk to path snecklifter Linux - Newbie 4 11-01-2004 02:58 PM
setting classpaths in a build file imacutequeen Programming 1 07-29-2004 02:02 PM
Adding Java to my environment path? C8H10N4O2 Linux - Software 6 04-19-2004 01:38 PM
Adding Java To Mozilla enk0d Linux - Software 5 05-12-2003 05:34 PM

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

All times are GMT -5. The time now is 04:37 PM.

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