LinuxQuestions.org
Help answer threads with 0 replies.
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 07-27-2004, 01:36 AM   #1
raj_verma
LQ Newbie
 
Registered: May 2004
Posts: 6

Rep: Reputation: 0
classpath of javac


Hi All,
I am unable to set the classpath of java on fedora core2. My .bash_profile is

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

JAVA_HOME=/HOME/raj/j2sdk1.4.2_05/ export JAVA_HOME
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin

export PATH
unset USERNAME
******************************************************************
Still it does not read javac.
I even tried doing
PATH=$PATH:$HOME/raj/j2sdk1.4.2_05/bin
still to no avail. Help me out
Thanks
 
Old 07-27-2004, 04:16 AM   #2
nickhx
Member
 
Registered: Jul 2004
Posts: 35

Rep: Reputation: 15
well,maybe you forgot to set classpath.
my os is Rh9.0,the following is my classpath:
*****************************************************************
export CLASSPATH=.:/opt/j2sdk1.4.2_04/jre/lib/rt.jar:/opt/j2sdk1.4.2_04/lib/tools.jar
JAVA_HOME=/opt/j2sdk1.4.2_04
PATH=.:$JAVA_HOME/bin:$PATH
export JAVA_HOME PATH
**********************************************************************
By the way,I have never used fedora ,so it is just for consult,good luck!
 
  


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
how to set CLASSPATH mohama Programming 8 12-17-2005 03:17 AM
setenv CLASSPATH ? mickeyboa Fedora 1 07-24-2005 04:26 PM
Classpath Hiper1 Linux - Software 3 11-25-2004 09:18 AM
Swing 1.1 or 1.2 and CLASSPATH jboo Linux - Software 0 02-07-2003 11:35 AM
ClASSPATH variable for Java oulevon Linux - General 1 02-28-2001 08:25 PM

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

All times are GMT -5. The time now is 10:46 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