LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   java install not showing license agreement (https://www.linuxquestions.org/questions/fedora-35/java-install-not-showing-license-agreement-826083/)

moxieman99 08-13-2010 04:23 PM

java install not showing license agreement
 
Installed Fedora 13 on an old computer (Sony Vaio RX660 with a 1.8 gig P4 cpu). Downloaded java 21 bin file and as root, placed it in a folder I created: /usr/java so it would be accessible to all users.

as root in terminal I did a chmod a+x to the file. Then ls -l, which showed I had full read/write with it. Finally, still root, and in terminal, I did the ./jre <etc>.bin and the package immediately unpacked and created files, but never showed me a license agreement to accept.

Java, of course, does not work. What am I doing wrong? Why no license agreement?

Thanks

Moxieman

colorpurple21859 08-13-2010 04:56 PM

Make a symbolic link from /usr/java/java-???/bin/java to /usr/bin/java should get java working.
Quote:

Why no license agreement?
have no idea, maybe a bad download?

DrLove73 08-14-2010 01:43 AM

Isn't there rpm for Fedora 13? Why everybody try to manually install things on RPM based distro's? 80-90% of those attempts finish here on forums asking why it does not work.

knudfl 08-14-2010 02:44 AM

@ DrLove73 : RPM :
I think these two rpm methods are described quite often at LQ :

jre-6u21-linux-i586-rpm.bin
http://www.mjmwired.net/resources/mj...-f13.html#java
( Is also the first hit by Googling .. sun java fedora 13 .. ).

And the ScientificLinux jdk - RPM :
http://ftp.scientificlinux.org/linux...0-fcs.i586.rpm
..

moxieman99 08-14-2010 08:58 PM

Thanks, but I can't get java to show a license. It installs enough to make the computer think that it's there, but firefox and everything else don't see it.

Didn't have this problem in F 10, so I'll probably downgrade.

Thanks for your help. I learned a lot.

DrLove73 08-15-2010 04:00 AM

I NEVER EVER saw Java's licence on package based systems, maybe just a reminder while yum installs. And if you bothered to read first link @knudfl wrote, you would solve your "no one sees it" problem.

@knudfl, I used that method on CentOS 5.x long time ago, and I DO know they exist, I just like to make them wonder and interested in simple solutions. I download and place jre rpms (for few years) now in my own repository and install from there. Linking unfortunately must be done manually for now.

knudfl 08-15-2010 05:18 AM

#5 :
Quote:

.. but firefox and everything else don't see it.
Linking : the default method is .. example :
1) su
2)
Code:

/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_21/bin/java 2
3) /usr/sbin/alternatives --config java
.. and choose "sun".

Firefox : You can just make a direct link like this :
cd /usr/lib/mozilla/plugins
# ln -s /usr/java/java-1.6.0-sun-1.6.0.21/jre/lib/i386/libnpjp2.so
.......

moxieman99 08-15-2010 07:17 AM

Quote:

Originally Posted by DrLove73 (Post 4066730)
I NEVER EVER saw Java's licence on package based systems, maybe just a reminder while yum installs. And if you bothered to read first link @knudfl wrote, you would solve your "no one sees it" problem.

I did read @knudfl's link, and found it quite helpful. Unfortunately, I still could not get a proper installation. I used the rpm package, uninstalled and tried yum which borked saying that java was already installed.

My "no seeing the lincese" I took to be a symptom of the underlying problem with the install. In and of itself, not seeing a license is not a problem.

Like I said, F10 was not a problem. RPM'd, manual linked, and on my way. I will tinker some more and if no success, will downgrade.

Thanks.

DrLove73 08-15-2010 03:39 PM

Do you by any chance use 64-bit system? Or JRE instead of JDK?

This is text I keep and use for my CentOS systems:
Quote:

2. Now you need to add the Java you have installed to the list of alternatives for the java executable:
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/latest/bin/java 2

Note: There is two - (hypen) before install. However wordpress may replace both of them with a separate character, so just don't copy-paste here.

Note: Tinker with /usr/java/latest/bin/java if you do not have Java installed at this location. In other words change it to point to the location of your installed Java executable from Sun.

3. Now configure alternatives to select the latest Java executable under /usr/java:
/usr/sbin/alternatives --config java

Check the version of Java to ensure that it is from Sun:
java -version

For example, this is the output I get:

java version "1.6.0_16″
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)

Go to /usr/lib64/mozilla/plugins:
cd /usr/lib64/mozilla/plugins

4. Create a symbolic link to libnpjp2.so (Firefox plugin for Java):

JDK:
ln -s /usr/java/latest/jre/lib/amd64/libnpjp2.so

JRE:
Note: The above is applicable for JDK installation. For JRE it is likely to be:
ln -s /usr/java/latest/lib/amd64/libnpjp2.so

5. Restart Firefox and type the following in URL field and press Enter:
about:plugins

You should now see a section titled Java(TM) Plug-in 1.6.x

You are done installing Java Plugin / Applet support in Firefox on CentOS 5.

ln -s /usr/java/latest/plugin/i386/ns7libjavaplugin_oji.so u /usr/lib/mozilla/plugins

moxieman99 08-17-2010 08:15 PM

I will check it out. Thanks.


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