Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-13-2004, 06:42 AM   #1
LQ Newbie
Registered: Aug 2004
Posts: 29

Rep: Reputation: 15
Question problems installing sun java compiler for mandrake 10.0


i tried to install java sun compiler in mandrake 10.0. there r 2 files available to dload.....

1> RPM in self-extracting file (j2sdk-1_4_2_05-linux-i586-rpm.bin, 33.60 MB)
2> self-extracting file (j2sdk-1_4_2_05-linux-i586.bin, 34.70 MB)

i dloaded both the files.

at first, i typed the command

then rpm file got extracted n i installed tht rpm using rpm -iv option
. Message appears as package installed successfully. but after tht i tried java, javac n javap command......but the commands were not found. then i went into the
j2sdk/bin direcory....all the commands were listed there......tried to run those command again from tht directory....again the same error...."commnd not found".......but when i typed./java it was giving me all the options to use java........after all this i uninstalled the package using control center....

next try....after successfully uninstalling the prev package....i typed
./j2sdk-1_4_2_05-linux-i586.bin n it extracted all the packages....
again the same error displayed when i tried to run java command.......i went to the j2sdk/bin directory ...commands were listed there....but in tht directory also same error got displayed......

n i also set the classpath variable using in both attempts
export CLASSPATH="/j2sdk/bin"

in my prev installed mandrake 10.0 when i run the self extracted worked.....then wats the prob.....i m not able to figure it out....plz someone help me.....

n guys also tell me how to use gcc compiler for java

Last edited by ranger225; 09-13-2004 at 07:16 AM.
Old 09-13-2004, 07:12 AM   #2
Senior Member
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
What needs to happen is one of 2 things:
put j2sdk/bin in your $PATH or put a symlink to all the executables, java, javac, etc.. in /usr/bin
Old 09-13-2004, 07:20 AM   #3
LQ Newbie
Registered: Aug 2004
Posts: 29

Original Poster
Rep: Reputation: 15
already did tht

thanx scuzzman,

sorry...i forgot to tell......i had set the classpath using export CLASSPATH="/j2sdk/lib".....but when i tried to run java command from the /j2sdk/bin it wasnt executed n was getting the error command not found....tht means if java command is not getting excuted frm the directory where it is listed then its of no use to make a symbolic link....neways...i made symbolic link also but it was of no use.......tell me some othere way

Last edited by ranger225; 09-13-2004 at 07:23 AM.


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
installing JAVA compiler fng_#1 Red Hat 6 11-10-2005 04:39 PM
Problem Installing SJSAS_8 --Sun Java Server on FC2 nagu_linux Programming 2 03-30-2005 06:06 AM
Problem installing sun java application server on linux R0ss_here Linux - Software 0 02-13-2004 01:14 PM
Java Compiler for Mandrake??? mazyar28 Linux - Newbie 5 09-03-2003 06:42 AM
Installing java Machine from Sun (JMF-2.2.1) coltranefawz Linux - Software 1 06-22-2003 09:15 AM > Forums > Linux Forums > Linux - Newbie

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