On Sunday 10 January 2010 11:17 AM, Nishan Naseer wrote:

On Sun, Jan 10, 2010 at 11:11 AM, alan alan <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    I installed JDK as per this page:-
    http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.html

    downloaded the jdk file, copied it to /home folder & then
    installed by changing the file mode and executing it. But now the
    problem is when I run java programs form terminal( javac <program
    name>), an error message is showing up:-

    " The program 'javac' can be found in the following packages:
     * openjdk-6-jdk
     * ecj
     * gcj-4.4-jdk
     * gcj-4.3
     * jikes-classpath
     * jikes-kaffe
     * kaffe
     * sun-java6-jdk
    Try: sudo apt-get install <selected package>
    javac: command not found
    "

    What's wrong? Anyone help me.



Did you try adding 'javac' to $PATH ?

$ export PATH=$PATH:<path-to-jdk>/bin/javac


or try adding the following line to the file /home/<username>/.bashrc

*export PATH=<path-to-jdk>/bin:$PATH*

Then in terminal

$ source .bashrc


--
With love and regards,
Tvm a.k.a Bizzard

Find me @ Bizzard's Hackshop <http://www.bizzard.info/>

Quote: I'm not a HANDSOME guy. But I can give my HAND to SOME one who needs help. Beauty is in heart, not in face..!! - A.P.J Abdul Kalam
-- 
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

For details visit the website: www.ilug-tvm.org or the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en

Reply via email to