Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 02-11-2005, 03:53 AM   #1
LQ Newbie
Registered: Feb 2005
Location: Austria
Distribution: Debian Sarge
Posts: 2

Rep: Reputation: 0
Problem with Java-SDK

I use Suse 9.1 and I've installed the Java-SDK with the Suse Linux-CD. But when I use the command javac for compiling a java-file, the bash doesn't find the command. What have I done wrong?
Thanks for your help!
Old 02-11-2005, 06:32 AM   #2
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 31
Hello and welcome to Linuxquestions!

Try the hole path to javac
/path/of/java/javac file
You can put this in your /etc/bashrc file...

export PATH

Now each time you open a terminal it should see javac in your path.

Old 02-11-2005, 09:27 AM   #3
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
boby is correct, you need to set the path in /etc/bashrc or /etc/profile. But I'd put the path to the "bin" directory that contains javac, since that directory also contains java, jar... you might need those later.

export PATH=$PATH:<java home>/bin


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
Why There is no Java 2 SDK ? JOKe Debian 5 03-08-2005 02:37 PM
JAVA:problem in installing ECLIPSE SDk on LINUX nedian123 Programming 1 06-26-2004 09:37 PM
Java SDK Peleus Linux - Newbie 2 04-06-2004 08:31 AM
Java 1.4.0 SDK install problem insom Linux - Newbie 3 09-05-2003 04:01 AM
java sdk lsansan Linux - Software 1 05-11-2003 12:58 PM

All times are GMT -5. The time now is 05:01 AM.

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