The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Setting link to newly installed Java version harjitsingh SUN Solaris 4 05-28-2008 08:25 AM
echo Java version neeto UNIX for Dummies Questions & Answers 1 04-22-2008 02:01 PM
Linux Download nov_user UNIX for Dummies Questions & Answers 3 03-25-2008 06:25 PM
LINUX Download ednan171 What's on Your Mind? 9 10-23-2006 11:11 PM
Kinda OT: USENET Linux Groups zazzybob Linux 2 05-09-2004 05:48 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-17-2005
Registered User
 

Join Date: Feb 2005
Posts: 40
How do i download java 1.3 on linux(kinda have this old version)

i wish to run java files on inux but while downloading it into linux there is no problem but when i r try to execute a java file it says javac not found. help pleas
Reply With Quote
Forum Sponsor
  #2  
Old 02-18-2005
Registered User
 

Join Date: Aug 2004
Posts: 232
Which distribution are you running?
Did you install the file before trying to execute it?
Downloading is just that, you copy it from one machine to another, you need to install it to make it available for using.
Reply With Quote
  #3  
Old 02-18-2005
Registered User
 

Join Date: Feb 2005
Posts: 40
re:

i have installed java on my machine but when i check the version it givex=s a lot of error messages
Reply With Quote
  #4  
Old 02-18-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,469
Please give us more details as to the exact error messages you are getting, the command you used to invoke java/javac.

Also, what you are trying to do actually? Executing a compiled java program does not need javac. java is sufficient. javac is for compiling bytecode.

So, what is your command used to execute your java file?
Reply With Quote
  #5  
Old 02-18-2005
Registered User
 

Join Date: Feb 2005
Posts: 40
Here is a list of error messages

On executeing this:-
/usr/java/jdk1.3.1_03/bin/java -version
/usr/java/jdk1.3.1_03/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

Java file
public class a{
public static void main(String[] args){
System.out.println("Hello World");
}
}
javac a.java
bash: javac: command not found
Reply With Quote
  #6  
Old 02-18-2005
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,469
Try

/usr/java/jdk1.3.1_03/bin/javac a.java

for compiling.

I am not sure about the shared library problem you are having. I have installed JDK1.4.x on many Linux systems without problems. Maybe you can try JDK 1.4 as well. As the directory structure the error message displays differs from the Sun Microsystems one (I can't find any bin/i386 dir in my installation), probably your version is not an official one. Try downloading from java.sun.com for official builds.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:47 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0