Hello. Package Manager reports (with a green checkmark) that I have java-1.6.0 installed on my machine (running Cent 5.3), but it seems to not be running. I used http://java.com/en/download/help/testvm.xml and got "Something is wrong. Java is not working."
Perhaps I'm confused on which program I need to use java-coded apps. PM lists this app as "OpenJDK Runtime Environment" - is this it?
[mykolas@sr1220 ~]$ rpm -q jdk jre package jdk is not installed package jre is not installed
Can someone explain, or provide a link to a particular webpage that would clue me in?
Package Manager reports (with a green checkmark) that I have java-1.6.0 installed on my machine (running Cent 5.3), but it seems to not be running. I used http://java.com/en/download/help/testvm.xml and got "Something is wrong. Java is not working."
This page tell you that the Java browser plugin is not working (it is used to run small Java applets *in* the browser it self).
The Java browser plugin is not shipped with the CentOS version of open jdk.
Do you need this brower plugin? Are you running i386 or x86_64 ? You said that you are running 5.3, any reason why not updating to 5.4? (if it is a desktop)
Perhaps I'm confused on which program I need to use java-coded apps. PM lists this app as "OpenJDK Runtime Environment" - is this it?
[mykolas@sr1220 ~]$ rpm -q jdk jre package jdk is not installed package jre is not installed
What is the output of:
yum list java-1.6.0-openjdk*
Mathieu Baudier wrote:
Package Manager reports (with a green checkmark) that I have java-1.6.0 installed on my machine (running Cent 5.3), but it seems to not be running. I used http://java.com/en/download/help/testvm.xml and got "Something is wrong. Java is not working."
This page tell you that the Java browser plugin is not working (it is used to run small Java applets *in* the browser it self).
OK. However, in my browser (Firefox 3) 'Java' is enabled.
Do you need this brower plugin?
hmmm ... I don't see it in the Firefox's list of installed plugins.
** But, that would change just 1 thing: allow Firefox to run java applets - correct? Or, would it also allow other java-coded apps to run? (Or, do I have the wrong notion of Java?)
Are you running i386 or x86_64 ?
i386 (32 bit).
You said that you are running 5.3, any reason why not updating to 5.4? (if it is a desktop)
Just haven't considered it yet. I'll check out what changed, and if it would be better for me.
What is the output of: yum list java-1.6.0-openjdk*
[mykolas@sr1220 ~]$ yum list java-1.6.0-openjdk* Loaded plugins: fastestmirror, priorities 542 packages excluded due to repository priority protections Installed Packages java-1.6.0-openjdk.i386 1:1.6.0.0-0.30.b09.el5 installed Available Packages java-1.6.0-openjdk.i386 1:1.6.0.0-1.7.b09.el5 updates java-1.6.0-openjdk-demo.i386 1:1.6.0.0-1.7.b09.el5 updates java-1.6.0-openjdk-devel.i386 1:1.6.0.0-1.7.b09.el5 updates java-1.6.0-openjdk-javadoc.i386 1:1.6.0.0-1.7.b09.el5 updates java-1.6.0-openjdk-src.i386 1:1.6.0.0-1.7.b09.el5 updates
Niki a écrit :
I have a detailed explanation on my website. It's in french, but the Linux bits are international :o)
Thank you - I'll 'try' to interpret. :)
** But, that would change just 1 thing: allow Firefox to run java applets - correct? Or, would it also allow other java-coded apps to run?
it is just necessary for applet
You said that you are running 5.3, any reason why not updating to 5.4? (if it is a desktop)
Just haven't considered it yet. I'll check out what changed, and if it would be better for me.
I'm using 5.4, so maybe what I say is not relevant for you.
What is the output of: yum list java-1.6.0-openjdk*
[mykolas@sr1220 ~]$ yum list java-1.6.0-openjdk* Loaded plugins: fastestmirror, priorities 542 packages excluded due to repository priority protections Installed Packages java-1.6.0-openjdk.i386 1:1.6.0.0-0.30.b09.el5 installed Available Packages java-1.6.0-openjdk.i386 1:1.6.0.0-1.7.b09.el5 updates
You seem to have java installed (but not the latest version of the package)
Can you send the output of:
$ java -version
Since the browser doesn't have the applet plugin, opening the web page above is not relevant: maybe you have java working. Which application do you want to run?
Mathieu Baudier wrote:
Can you send the output of: $ java -version
[mykolas@sr1220 ~]$ java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Client VM (build 1.6.0-b09, mixed mode)
Which application do you want to run?
Sweet Home 3D - a CAD-style house layout program. http://sweethome3d.eu/index.jsp
agile.aspect:
There's Java HowTos on the CentOS Wiki
http://wiki.centos.org/HowTos/JavaOnCentOS
Dang! In my confused state, I didn't even think of checking the wiki - thank you!!!
I wrote:
Which application do you want to run?
Sweet Home 3D - a CAD-style house layout program. http://sweethome3d.eu/index.jsp
I neglected to mention what prompted my inquiry!
I got ver 1.7 of that program (from a software site, and it was bundled with a JRE). Using the program, I checked out its own website, and noticed that it's up to ver 2.3.
So, I tried to d/l the basic (no bundled JRE) version, but was sent to java.com to d/l Java! huh? I know that it's installed. Thus my post.
[mykolas@sr1220 ~]$ java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Client VM (build 1.6.0-b09, mixed mode)
So, you have Java installed
Sweet Home 3D - a CAD-style house layout program. http://sweethome3d.eu/index.jsp
Just download it from: http://prdownloads.sourceforge.net/sweethome3d/SweetHome3D-2.3-linux-x86.tgz
Untar it and click on the SweetHome3D script and it will start it (I just tried) They actually ship it with a JVM.
Note: If you want to use their online offer, then you need the Java browser plugin because they use applets, in that case follow the instructions for the Sun JDK..
Note: If you want to use their online offer, then you need the Java browser plugin because they use applets, ...
Yup. I figured that out during work today. That's the one I want.
Then try the Sun JDK (see previous posts).
Or try this (fairly recent) version of OpenJDK that I have repackaged from Fedora to Centos 5, it contains the browser plugin (i386 much less tested than x86_64): http://www.argeo.org/linux/argeo-el/5/plus/i386/
You would need: java-1.6.0-openjdk java-1.6.0-openjdk-plugin (WARNING: it replaces the stock Centos openjdk)
With the x86_64 version, I could open the applet of the online application you are referring to.
Note: If you want to use their online offer, then you need the Java browser plugin because they use applets, ...
Yup. I figured that out during work today. That's the one I want.
Then try the Sun JDK (see previous posts).
Or try this (fairly recent) version of OpenJDK that I have repackaged from Fedora to Centos 5, it contains the browser plugin (i386 much less tested than x86_64): http://www.argeo.org/linux/argeo-el/5/plus/i386/
So there is, once again, an openjdk browser plugin? There hasn't been for a while.
mark
Or try this (fairly recent) version of OpenJDK that I have repackaged from Fedora to Centos 5, it contains the browser plugin (i386 much less tested than x86_64): http://www.argeo.org/linux/argeo-el/5/plus/i386/
So there is, once again, an openjdk browser plugin? There hasn't been for a while.
The i386 and x86_64 plugins are different codebase, and as I said, i386 has been much less tested. Feedback welcome.
I've been at this for a couple hours now, and I'm still lost. Making a looooong story really short - where is java supposed to be installed? (/usr/local? I don't have a /usr/java.)
*Some* details: I figured that I just needed the plugin. Well, apparently there isn't one (not separate, on mozilla's plugin site). It seems that I have to sym-link to the .so file. However, I can't find it (even used the File Browser's 'search').
So, being that I have the basic 1.6.0 (no Update), I figured I'd just install 1.6.0U20. Well, that's no so easy when it's not the usual RPM, and you don't know where it should go.
I did find a dir with a bunch of java entries: [root@sr1220 lib]# pwd /usr/lib [root@sr1220 lib]# ls java* java: java-1.3.1: java-1.4.0: java-1.4.1: java-1.4.2: java-1.5.0: java-1.6.0: java-ext: But, they're empty.
The java wiki doesn't state a location, and neither http://plugindoc.mozdev.org/linux.html#Java nor http://www.java.com/en/download/help/linux_install.xml were of any help. (Btw, ~/.mozilla/plugins is empty - and I don't see it installed in /usr.)
Every path I try, I keep hitting a roadblock.
Michael Klinosky wrote:
I've been at this for a couple hours now, and I'm still lost. Making a looooong story really short - where is java supposed to be installed? (/usr/local? I don't have a /usr/java.)
speaking purely in generic terms, Sun Java is isually installed to /usr/java/jre_version/..... or /usr/jdk/jdk_version/.. and then generally /urs/bin/java links (or gnu alternates or whatever) to the 'current' system wide default. but, Java -can- be installed absolutely anywhere you want to put it. obviously RPM packages enforce their own ideas of where things go.
Michael Klinosky a écrit :
Can someone explain, or provide a link to a particular webpage that would clue me in?
I have a detailed explanation on my website. It's in french, but the Linux bits are international :o)
http://www.microlinux.fr/linux_aux_petits_oignons/chapitre_8/01.html#java
Cheers,
Niki
On Sat, Apr 17, 2010 at 3:02 PM, Michael Klinosky mpk2@enter.net wrote:
Hello. Package Manager reports (with a green checkmark) that I have java-1.6.0 installed on my machine (running Cent 5.3), but it seems to not be running. I used http://java.com/en/download/help/testvm.xml and got "Something is wrong. Java is not working."
Perhaps I'm confused on which program I need to use java-coded apps. PM lists this app as "OpenJDK Runtime Environment" - is this it?
[mykolas@sr1220 ~]$ rpm -q jdk jre package jdk is not installed package jre is not installed
Can someone explain, or provide a link to a particular webpage that would clue me in? _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
There's Java HowTos on the CentOS Wiki
http://wiki.centos.org/HowTos/JavaOnCentOS
I use Sun's JDK, so the following may or may not work in OpenJDK.
The JAVA_HOME here is Sun's JDK:
ln -s $JAVA_HOME/jre/lib/i386/libnpjp2.so /usr/lib/firefox-3.0.10/plugins/libnpjp2.so
You'll probably have to create the plugin directory under firefox - and your version of firefox may be different.
On my machine, I linked
/usr/lib/firefox-3.0.10/plugins -> /usr/lib/mozilla/plugins
then linked the Java library to /usr/lib/mozilla/plugins.
Restart your browser and you should see
libnpjp2.so
as the Java plugin.