LinuxQuestions.org
Visit Jeremy's Blog.
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 04-06-2004, 02:26 PM   #1
lmellen
Member
 
Registered: Jan 2004
Location: Fairport, NY
Distribution: Arch/Ubuntu
Posts: 43

Rep: Reputation: 15
Setting the path variable for Java Comp.


Greetings,
I'm running Fedora Core 1 and am having trouble setting the path variable.

/home/lmellen/Java is my working directory and is where the j2sdk1.4.2_04 resides. If in this directory I type:

/home/lmellen/java/j2sdk1.4.2_04/bin/javac HelloWorldApp.java

it compiles fine.

Now I did google and came to /home/lmellen/.bash_profile.
vi .bash_profile has:

#user specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

After :$HOME/bin i've tried all combinations of:

:$HOME/lmellen/Java/j2sdk1.4.2_04/bin
:/home/lmellen/Java/j2sdk1.4.2_04/bin
:$HOME/Java/j2sdk1.4.2_04/bin

Nothing seems to work, all I get is javac: command not found

Either I'm close or a mile away. I could use some help.

Thank You---Larry

-----------------------------------------------------------------------------------------------

I'm also having to do the same with the next step!

/home/lmellen/java/j2sdk1.4.2_04/bin/java HelloWorldApp--works,

just java gives me-- java: command not found


Last edited by lmellen; 04-06-2004 at 02:44 PM.
 
Old 04-06-2004, 02:42 PM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
export PATH=/home/lmellen/java/j2sdk1.4.2_04/bin:$PATH
 
Old 04-06-2004, 02:52 PM   #3
lmellen
Member
 
Registered: Jan 2004
Location: Fairport, NY
Distribution: Arch/Ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15
Thank You Looking_Lost, but that did'nt work either.
 
Old 04-06-2004, 03:31 PM   #4
lmellen
Member
 
Registered: Jan 2004
Location: Fairport, NY
Distribution: Arch/Ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15
Looking_Lost-- I'm Sorry, I humbly apologize, You were right. I messed up something else when scrolling around inside of vi. Again--Thank You-- I do appreciate the help!
 
Old 12-30-2004, 09:51 AM   #5
the_profiler
LQ Newbie
 
Registered: Dec 2004
Distribution: Red Hat
Posts: 2

Rep: Reputation: 0
Question

so how should i do it in Fedora Core 3? im so confused on which file or part of the file i should place the 'key statements'...
 
  


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
Setting the path variable for Java Comp. lmellen Programming 1 06-27-2004 10:38 PM
Setting Path Variable for LibXML2 Miyamoto Linux - Software 1 08-19-2003 09:00 AM
Help setting $PATH variable Nylex Linux - General 9 08-09-2003 11:44 AM
setting path variable shahrahulb Linux - General 2 07-30-2003 08:25 PM
java and PATH variable qwijibow Linux - Newbie 1 05-26-2003 03:43 PM

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

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