LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-04-2004, 12:30 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Rep: Reputation: 32
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

Last edited by tommytomato; 06-04-2004 at 12:45 AM.
 
Old 06-04-2004, 01:00 AM   #2
smokylux
Member
 
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43

Rep: Reputation: 15
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
 
Old 06-04-2004, 01:08 AM   #3
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
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
 
Old 06-04-2004, 01:43 AM   #4
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
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
 
Old 06-04-2004, 01:49 AM   #5
smokylux
Member
 
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43

Rep: Reputation: 15
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
 
Old 06-04-2004, 01:56 AM   #6
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
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
 
Old 06-04-2004, 02:00 AM   #7
smokylux
Member
 
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43

Rep: Reputation: 15
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
 
Old 06-04-2004, 02:10 AM   #8
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
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
 
Old 06-04-2004, 02:17 AM   #9
smokylux
Member
 
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43

Rep: Reputation: 15
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
 
Old 06-04-2004, 02:31 AM   #10
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
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
 
Old 06-04-2004, 02:38 AM   #11
smokylux
Member
 
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43

Rep: Reputation: 15
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.
 
Old 06-04-2004, 02:49 AM   #12
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
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
 
Old 06-04-2004, 02:53 AM   #13
smokylux
Member
 
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43

Rep: Reputation: 15
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
 
Old 06-04-2004, 03:49 AM   #14
smokylux
Member
 
Registered: May 2004
Location: Luxemburg
Distribution: Fedora Core 2, SuSE 9.1 Pro
Posts: 43

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

Let me know, as I'm learning myself


smokylux
 
Old 06-04-2004, 04:05 AM   #15
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 935

Original Poster
Rep: Reputation: 32
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

Last edited by tommytomato; 06-04-2004 at 04:06 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DISCUSSION: HOWTO: Install Sun's Java VM in Fedora Core 2 kevcart3 LinuxAnswers Discussion 9 10-28-2005 02:34 PM
using apt in fedora core 3 pranith Linux - Software 2 11-19-2004 01:03 PM
APT-GET in Fedora Core 2 lordrain Linux - Software 3 10-20-2004 11:30 PM
Install Java development environment on Fedora Core 2 WesleyVH Linux - Software 2 10-13-2004 09:50 AM
Java Install Trouble with Fedora Core 2 Thats_My_Camino Programming 0 09-15-2004 05:40 PM


All times are GMT -5. The time now is 12:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration