javac command not found...still need your help..
Hello, again.. Well, I think, I installed two different versions of j2sdk to compile .java file. However, still, i can't compile the file...look at the following...strangely, if i check the version, I just see j2re only...I attached what I know. ---------------------------------------------------------------- shin0135@linux:~> java -version java version "1.4.1_02" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06) Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode) shin0135@linux:~> shin0135@linux:~> find /usr -name java -print /usr/lib/java find: /usr/lib/man-db: Permission denied /usr/lib/BlackdownJava2-1.4.1/jre/bin/java /usr/lib/SunJava2-1.4.1/bin/java /usr/lib/SunJava2-1.4.1/jre/bin/java /usr/java /usr/java/j2re1.4.2_01/bin/java /usr/java/j2sdk1.4.2_01/bin/java /usr/java/j2sdk1.4.2_01/jre/bin/java /usr/share/java find: /usr/share/locale/pt: Permission denied /usr/include/gnu/java /usr/include/java shin0135@linux:~> find /usr -name javac -print find: /usr/lib/man-db: Permission denied /usr/lib/SunJava2-1.4.1/bin/javac /usr/java/j2sdk1.4.2_01/bin/javac find: /usr/share/locale/pt: Permission denied ------------------------------------------------------------------------- yes, as you can see, there is a 'javac' but still I can't compile...path problem..? I have no idea....Can anyone help me to fix/modify this setting/problem...? If i need to add a path, how...? Thanks, _________________________________________________________________ Fast, faster, fastest: Upgrade to Cable or DSL today! https://broadband.msn.com
As I understand it, your JDK is installed in /usr/java/j2sdk1.4.2_01 so you should do the following: export PATH=$PATH:/usr/java/j2sdk1.4.2_01/bin export CLASSPATH=$CLASSPATH:. Then try javac some_java_file.java HTH -Vale. Chun Ki Shin said:
Hello, again..
Well, I think, I installed two different versions of j2sdk to compile .java file. However, still, i can't compile the file...look at the following...strangely, if i check the version, I just see j2re only...I attached what I know.
participants (2)
-
Chun Ki Shin
-
Gnana Vadi Vale