LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apt and java install Fedora Core 2 (https://www.linuxquestions.org/questions/linux-newbie-8/apt-and-java-install-fedora-core-2-a-189535/)

tommytomato 06-04-2004 12:30 AM

apt and java install Fedora Core 2
 
Hi guys.

I just worked out how to use apt last night to install mplayer, which worked well.

How ever would it be the same for java, the mrs cant view her online game she plays quiet offen.

would it be like so.

apt-get install java

or would it be

apt-get install j2re

I'm still queit new to apt

can any one help me out please.

TT

smokylux 06-04-2004 01:00 AM

I didn't use apt to get Java installed, but downloading the rpms from www.java.com and to install them went all fine for me... didn't have any problem! (FC2 too)

Perhaps you can give that a try?


Remember to set the path to Java in the browser! ;)


smokylux

tommytomato 06-04-2004 01:08 AM

Thanks I just tried the above commands and i got

Code:

[root@localhost ]# apt-get install j2re
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package j2re
[root@localhost ]# apt-get install java
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package java
[root@localhost ]#
[root@localhost ]# apt-get install java-common j2re1.4
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package java-common
[root@localhost ]#

But how ever i did find this.
http://home.gagme.com/greg/linux/fc2-tips.php#java

Quote:

Install Java J2RE and Mozilla Plug-in
It's also very handy to have the Java run-time environment available and most importantly a Mozilla plug-in so you can view dynamic content. It's unfortunate that Mozilla will actually crash if you go to a site containing Java and you don't have the plug-in installed.
The best site for the plug-in is the Dag Wieers repository. I would normally recommend just putting it in your up2date sources but I've had problems with conflicting packages. In this case I recommend you just go to the site and download and install just the packages you need. Just go to http://dag.wieers.com/packages/j2re/ and download the latest j2re and mozilla-j2re packages as appropriate for your system. Then just install them as follows:

# rpm -ihv j2re-1.4.2-5.1.rhfc2.dag.i586.rpm mozilla-j2re-1.4.2-5.1.rhfc2.dag.i586.rpm
I've just finshed downloading the files so i'll give it ago

TT

tommytomato 06-04-2004 01:43 AM

Cool it loaded in ok, thanks for the tip

Code:

[root@localhost appz]# rpm -Uvh j2re-1.4.2-5.1.fc2.dag.i586.rpm  mozilla-j2re-1.4.2-5.1.fc2.dag.i586.rpm
warning: j2re-1.4.2-5.1.fc2.dag.i586.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
  1:j2re                  ########################################### [ 50%]
  2:mozilla-j2re          ########################################### [100%]
[root@localhost appz]#

how ever we are still getting a error while try to load a online game called Poppit

The Mrs visits www.pogo.com and plays Poppit

TT

smokylux 06-04-2004 01:49 AM

Did you set the path to Java in your browser? Which Browser do you use?

in console, try the following:

whereis java
OR
whereis j2re

it should show you the path to the java bin file, which you must set in the browser (at least I had to, using Konqueror, but it uses Mozilla plugins as well)

Look for "plugins" in the configuration menu in your browser....



Hope this will help ;)


Smokylux

tommytomato 06-04-2004 01:56 AM

Where do the files normaly sit ? All i got was this

Code:

[root@localhost root]# whereis j2re
j2re:
[root@localhost root]# find / -name j2re
[root@localhost root]# whereis java
java: /usr/share/java /usr/share/man/man1/java.1.gz
[root@localhost root]#

TT

smokylux 06-04-2004 02:00 AM

sorry, was my fault, I used "locate" to find the java bin.... well this is my folder for the java bin: (Just checked it over ssh, cause I'm at office right now, using Window$ ;) ):


/usr/java/j2re1.4.2_04/bin


in that folder there is an executable Java.... this is where you have to point the path in your browsers settings

tommytomato 06-04-2004 02:10 AM

Under Mozilla Browser it says the plugins are installed.

Looks to me its installed, Would i have to log in via root giu and scan for plugin dir ?

Code:

/usr/lib/mozilla/plugins/libjavaplugin_oji.so
/usr/lib/libkjava.la
/usr/lib/libkjava.so
/usr/lib/libkjava.so.1
/usr/lib/libkjava.so.1.0.0
/usr/lib/jre/bin/java
/usr/lib/jre/bin/java_vm
/usr/lib/jre/lib/i386/libjavaplugin_jni.so
/usr/lib/jre/lib/i386/libjava.so
/usr/lib/jre/lib/locale/de/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/es/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/fr/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/it/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/ja/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/ko/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/ko.UTF-8/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/sv/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/zh/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/zh.GBK/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/zh_TW/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/locale/zh_TW.BIG5/LC_MESSAGES/sunw_java_plugin.mo
/usr/lib/jre/lib/security/java.policy
/usr/lib/jre/lib/security/java.security
/usr/lib/jre/plugin/desktop/sun_java.desktop
/usr/lib/jre/plugin/desktop/sun_java.png
/usr/lib/jre/plugin/i386/ns4/libjavaplugin.so
/usr/lib/jre/plugin/i386/ns610/libjavaplugin_oji.so
/usr/lib/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so
/usr/lib/netscape/plugins/libjavaplugin.so

TT

smokylux 06-04-2004 02:17 AM

Well, yes give that a try!

Just a notice: I have a folder /usr/lib/mozilla-1.6/ which I think is the correct one where to put all this.... Noticed this when I wanted to install the flashplayer... typing /usr/lib/mozilla as isntallation directory gave me an error, until I noticed, that this other directory exists...

Perhaps you should try Konqueror as browser for the game.... (configuring it, like I described before)


If that doesn't help, I'm afraid I won't be any help at all.... that's all I can say for sure with my little experience ;)



Good luck!


smokylux

tommytomato 06-04-2004 02:31 AM

My Mozilla doesn't seem to have a scan thing for plugins but under the Help-About Plug-ins on Mozilla browser they say they are installed.

My Mozilla version is, Mozilla 1.6 Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510

Also we use Konqueror browser, and i just did a scan to find the plugin folder
I think its here /usr/lib/jre/plugin/i386/

This is the error we get

Quote:

The following error has occurred:
Java Not Found or Not Working

Explanation:
You must have Java installed on your computer in order to run Pogo
games, and it must be functioning properly. This error means you either
don't have Java installed yet, or your Java is not working correctly.



How to fix the problem:
Java is a free download that is required to play Pogo games. Not all
computers come with Java pre-installed. If you haven't played Pogo games
before and are getting this error, you probably just need to install
Java on your computer. Click Here for instructions on installing Java
for your operating system and browser.

If you already have Java installed and are getting this error, your
Java may be out-of-date or is no longer working. In that case, your Java
needs to be upgraded or reinstalled. If you need help, click here
TT

smokylux 06-04-2004 02:38 AM

In Konqueror the scanning didn't work for me...

does the folder /usr/java/j2re1.4.2_04/bin/ exist?

In Konqueror, under plugins in the config menu, look for Java plugin. There must be somewhere a field where you can enter a path to the Java executable. Put the folder mentioned above in that field, or (better) browse for it using the folder icon on the right.

restart Konqueror after accepting these changes, and give it a try again.

tommytomato 06-04-2004 02:49 AM

The path you said doesn't seem to be in the system

but i did find this

[root@localhost root]# find / -name java
/usr/share/java
/usr/lib/jre/bin/java

Their are a few files in the folder.

Code:

ControlPanel  java_vm  kinit  ktab  policytool  rmiregistry  tnameserv
java          keytool  klist  orbd  rmid        servertool


TT

smokylux 06-04-2004 02:53 AM

well that's exactly the same files I've got in my bin folder.... the executable is the "java" file.... try it, hope it will work!

At least for me it did ;)

(I think the fact that your path is different from mine is due to the use of another rpm, got mine from java.com)


Good luck again ;)



smokylux

smokylux 06-04-2004 03:49 AM

Sooo.... is Java up and running now? Everything all right with that java game?

Let me know, as I'm learning myself ;)


smokylux

tommytomato 06-04-2004 04:05 AM

Seems to be working, but that game wont work, still get the error

I can view java by visiting one of my subs

http://rvsrg.rockinghamgateway.com/

TT


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