LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (http://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   jdk-1_5_0_15-linux-i586-rpm (http://www.linuxquestions.org/questions/linux-enterprise-47/jdk-1_5_0_15-linux-i586-rpm-654232/)

shahz 07-08-2008 01:47 AM

jdk-1_5_0_15-linux-i586-rpm
 
hi,

I have installed the jdk-1_5_0_15-linux-i586-rpm. the way I installed is.

#./jdk-1_5_015-linux-i586-rpm

its says that done sucessfully now when I want to run the greenstone install wizard it won't give me wizard it takes me wait wait and wait. no error nothing i get. jdk is required by greenstone software.

I tried alot to congiure it but no response at all can any body as any link for complete instruction to install jdk properly. I am really stuk with it and I have to give a presentation of my digital library to my agrresive BOSS.


thanks
shahz

trickykid 07-08-2008 03:19 AM

Usually their RPM's initially are self extracting. You then need to install the RPM that is extracted. This page might give you some insight to installing Java: http://java.sun.com/javase/6/webnote...all-linux.html

shahz 07-08-2008 04:34 AM

Quote:

Originally Posted by trickykid (Post 3207408)

well when I go through the above link I get an erro while doing the following.

#cd /usr/java/jdk1.6.0/demo/jfc/SwingSet2
#chmod +x SwingSet2.jar
#./SwingSet2.jar

on the third command ./SwingSet2.jar I get the error

"cannot execute binary file"

and again I am stop with everything I was doing

thanks
shahz

shahz 07-08-2008 07:07 AM

Quote:

Originally Posted by trickykid (Post 3207408)

well when I go through the above link I get an erro while doing the following.

#cd /usr/java/jdk1.6.0/demo/jfc/SwingSet2
#chmod +x SwingSet2.jar
#./SwingSet2.jar

on the third command ./SwingSet2.jar I get the error

"cannot execute binary file"

and again I am stop with everything I was doing

thanks
shahz

knudfl 07-08-2008 08:24 AM

To execute a ".jar" file :
'java -jar SwingSet2.jar' (or make a script to execute it)

But what has SwingSet2.jar to do with greenstone ??
I assume the greenstone file is gsdl-2.80-unix.tar.gz or ??

And the command 'sh setupLinux.bin' doesn't work for me either,
pointing or not to java home (or //bin/java ).
Using 1.6.0_04-b12. I intend to test also with an earlier version.

To test if java is present, just do 'java -version'

Rgds

shahz 07-08-2008 08:29 AM

Quote:

Originally Posted by knudfl (Post 3207539)
But what has SwingSet2.jar to do with greenstone ??
I assume the greenstone file is gsdl-2.80-unix.tar.gz or ??

well dear I don't get the graphical installation wizard. why I don't get it.

knudfl 07-08-2008 10:20 AM

You cannot install an ".rpm" package with
Quote:

# ./jdk-1_5_015-linux-i586-rpm
*The command is # 'rpm -Uvh jdk-1_5_015-linux-i586-rpm'

And yes, the installer 'sh setupLinux.bin' will work with
"sun-java-5" , my version for the new test : "1.5.0_15"

It seems you also have "/usr/java/jdk1.6.0/"
Hide it, change the linking, or uninstal it....
it will not work with the greenstone files.

Rgds

shahz 07-09-2008 02:06 AM

Quote:

Originally Posted by knudfl (Post 3207644)

It seems you also have "/usr/java/jdk1.6.0/"
Hide it, change the linking, or uninstal it....
it will not work with the greenstone files.

well I have already installed the jdk.

#rpm -q jdk
jdk1.5.0_15-fcs


and don't have any jdk 1.6.0


thanks
shahz

shahz 07-09-2008 03:04 AM

hi, knudfl

if you have installed greenstone within linux can you send me the step by step procedure then I may come to know that what I am missing, I really want to run it on Linux, for the time being I am running it on windows 2003 server but don't want to run it on windows.


thanks
shahz

Vinod Vellore 07-09-2008 07:06 AM

RPM need to be installed by following command :
# rpm -ivh jdk-1_5_015-linux-i586-rpm
Check installed rpm by :
# rpm - qa | jdk

knudfl 07-09-2008 12:08 PM

# 10 Vinod_Vellore : I prefer 'rpm -Uvh .. ' ( U = upgrade etc. )
The 2' command => 'rpm -qa | grep jdk' (except with "java-1.5.0-sun")
........

There is really no step by step for greenstone, the installer
just installs everything to /opt/greenstone

The only condition to be met is having java 5 ( = 1.5 )

Please do command 'java -version' to check installation.

Rgds

shahz 07-10-2008 12:49 AM

Quote:

Originally Posted by Vinod Vellore (Post 3208639)
RPM need to be installed by following command :
# rpm -ivh jdk-1_5_015-linux-i586-rpm
Check installed rpm by :
# rpm - qa | jdk


Mr vinod vellor my problem was not installing an rpm anyhow the above commands I know for years thank you very much.

shahz 07-10-2008 04:30 AM

I have installed the jdk properly now when I run the command java -version I get the following

java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)

now when I run the greenstone installation wizard I get some error like the following.

This application requires a Java Run Time Environment (JRE)
to run. Searching for one on your computer was not successful.
Please use the command line switch -is:javahome to specify
a valid JRE. For more help use the option -is:help.


can some body help me on this thanks in advance. I think its have something with the jre path.

thnaks
shahz

knudfl 07-10-2008 03:28 PM

The installer will find the path itself. (usually)

But will not accept version 1.6

Version 1.5 will work.

Your own example : jdk-1_5_015-linux-i586-rpm will work.

So please change version. I tested both. See line "7" #7.

Rgds

shahz 07-12-2008 01:02 AM

Thanks knudfl

its finally works :) thank you very much, and it worked with 1.5, I have for now file permission problem did you have the same also because on my web server now its giving 500 Internal server error wich is I think file permission. any idea



thanks again
shahz


All times are GMT -5. The time now is 04:35 PM.