wood burning stoves 2.0*
The moose likes Linux / UNIX and the fly likes Got problem when trying to install JDK5.0 on linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Got problem when trying to install JDK5.0 on linux" Watch "Got problem when trying to install JDK5.0 on linux" New topic
Author

Got problem when trying to install JDK5.0 on linux

Nancy Zhang
Greenhorn

Joined: Jan 07, 2005
Posts: 25
I downloaded JDK 5.0 update 1 linux self-extracting file: jdk-1_5_0_01-linux-i586.bin, and use chmod to make it executable. But after I run jdk-1_5_0_01-linux-i586.bin and say 'yes' to the license agreement question, I got the following error msg:
usage: tail [+/-[n][lbc][f]] [file]
tail [+/-[n][l][r|f]] [file]
jdk-1_5_0_01-linux-i586.bin: test: argument expected

I checked installation instructions from sun web site, and it doesn't mention anything about argument. Since it's my first time installing Java on linux platform, really don't know what else I should do to make the installation successful.

Thanks.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

The Sun installer is a shell script. It calls other programs, like "tail". Here the error message is coming from "tail" and tail is complaining.

The funny thing is that your "tail" error message doesn't look like GNU tail, but like a message from some other version. GNU tail usage messages look like:



Are you sure you're trying to install this on Linux, specifically, and not on BSD, Solaris, HP-UX, or some other version of UNIX? What does "uname -a" say?

I'm going to move this to our Linux forum for further discussion.


[Jess in Action][AskingGoodQuestions]
Nancy Zhang
Greenhorn

Joined: Jan 07, 2005
Posts: 25
oh, yeah, you're right. it's solaris sparc. the workstation uses linux, but all things are actually installed on back solaris platform.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

OK, great! So if your workstation is basically just an X terminal, and everything runs on the Solaris server, then you'll need to get the Solaris installer and use that instead. Alternatively, if you can install stuff directly on the Linux machine, then open a local terminal window and run the installer you have from there.
Nancy Zhang
Greenhorn

Joined: Jan 07, 2005
Posts: 25
Great thanks!
It's X terminal, and installer for solaris sparc has been installed successful minutes ago. : )
After preparing all environment, now comes my old question: when I try to compile java source (unzipped from src.zip) with this command:javac -d ./classes `find ./src -name '*.java'`, like what you said days ago, it cannot complete without error msg, because there are dependencies on other code which isn't provided in the source. I checked JDK distribution, there are some under /lib/ and some under /jre/lib/. But I can't tell which ones are useful here. Should I include all of them in -classpath option? or maybe only one or two are necessary?
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
You should post the exact error message that you get. It is difficult to answer your question otherwise.

Out of curiosity, why are you trying to compile the JDK source code?

Layne


Java API Documentation
The Java Tutorial
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Got problem when trying to install JDK5.0 on linux
 
Similar Threads
"cannot execute binary file" when install j2sdk
JDK1.5 installation failed on ubuntu linux 11.10 server
Got problem when trying to install JDK5.0 on linux
java installation problem in ubuntu
jdk-1_5_0_01