LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-20-2008, 05:15 AM   #1
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Rep: Reputation: 15
Question Why can't I run Java applets on my Fedora 8 system?


Hi all,
My problem is that I cannot run Java applets on my newly installed fedora 8 system. I get the 'Java starting...' splash screen and everything, but after that, nothing happens.
I have tried thisbut it has not helped.

Any ideas please? I urgently need to get the applets up and running.
 
Old 04-20-2008, 07:03 AM   #2
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
Do you know which java version you have installed on your system? I think Fedora is using their own openjdk project now called icedtea. You should have no problem using Sun JVM.
 
Old 04-20-2008, 07:24 AM   #3
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Type java -version in terminal and post the output.You maybe have sun's jdk,but you are maybe not using it.You need to switch from IcedTea to sun's jdk to be the default java environment.It's always good to reboot after installing jdk.
 
Old 04-20-2008, 10:55 AM   #4
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
java version "1.7.0"
IcedTea Runtime Environment (build 1.7.0-b21)
IcedTea Client VM (build 1.7.0-b21, mixed mode)
Thats what I got. What can be done about this?
 
Old 04-20-2008, 01:56 PM   #5
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Original Poster
Rep: Reputation: 15
Hello, can anyone please reply?

This has been my first hand linux experience and I didn't know linux was this buggy as well.
 
Old 04-20-2008, 01:59 PM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
As root try to run: update-alternatives --config java
This is not a bug,this is that you do not know what you are doing.

Last edited by alan_ri; 04-20-2008 at 02:02 PM.
 
Old 04-20-2008, 03:29 PM   #7
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by alan_ri View Post
As root try to run: update-alternatives --config java
This is not a bug,this is that you do not know what you are doing.
update-alternatives seems to be an unknown command.
 
Old 04-20-2008, 03:46 PM   #8
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Are you sure that you have sun's-jdk installed?
 
Old 04-20-2008, 04:03 PM   #9
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
icedtea is a stripped down version of the Sun JRE. It will work most of the time but then sometimes it won't. The failsafe option is still to visit Sun and install their own JRE.

Two reasons you can't find update-alternatives:
- you need to run its as root as it is a system command
- you may need to specify the full path: /sbin/update-alternatives

But if you are already using icedtea, update-alternatives isn't going to be much help. So: install Sun JRE. That will be a bit of work, though. Fedora is rather a poor choice for anyone who wants the best java support without extra effort (I stress extra effort - I'm not saying it is overly complex or even impossible - just more work).

Last edited by jay73; 04-20-2008 at 04:05 PM.
 
Old 04-20-2008, 04:40 PM   #10
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by jay73 View Post
icedtea is a stripped down version of the Sun JRE. It will work most of the time but then sometimes it won't. The failsafe option is still to visit Sun and install their own JRE.

Two reasons you can't find update-alternatives:
- you need to run its as root as it is a system command
- you may need to specify the full path: /sbin/update-alternatives

But if you are already using icedtea, update-alternatives isn't going to be much help. So: install Sun JRE. That will be a bit of work, though. Fedora is rather a poor choice for anyone who wants the best java support without extra effort (I stress extra effort - I'm not saying it is overly complex or even impossible - just more work).
Thank you for your post. I have no plans to quit fedora as long as I'm on linux but this problem seems like a bug .

But then again, the alternatives shown on that page do not work for me (yes I modified the directories while using the same methods as given on that page - according to my installation of icedtea )

So, learning from your post, does it mean that I will have to get rid of icedtea and then do a clean install of Sun's jdk? If yes, how?

PS- I had tried the update-alternatives command as root itself, and I also tried including the path. Nothing.

Last edited by algogeek; 04-20-2008 at 04:42 PM.
 
Old 04-20-2008, 05:13 PM   #11
jay73
Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 130Reputation: 130
Go to sun.java.com, download the jre rpm.bin to your home directory.

Make the it executable:
chmod +x file_name.rpm.bin

Execute it:
./file_name.rpm.bin

It will create a set of rpm files. Install them (you need to be root for this part) with:
rpm -ivh *rpm

Install galternatives from the fedora repositories and use it to switch the plug-in from icedtea to sun jre.
 
Old 04-20-2008, 08:05 PM   #12
nowshining
Member
 
Registered: Dec 2007
Distribution: Ibex
Posts: 93

Rep: Reputation: 15
by the way the newest java for the browsers as of this post sucks, it's worser than the last version or so they had, so expect some trouble on some sites and freezing the browser so much to where about the only way out is to open a terminal and killall it well at last it does this on my browser. :/

edit: oh yeah, and if u changed your useragent and ur using firefox expect a crash where the browser will just suddenly quit when trying to start any java apps, the only way to use a java app. seems to use the default useragent.

well at least these were the troubles I had with it on my browser.

Last edited by nowshining; 04-20-2008 at 08:07 PM. Reason: oh! yeah!
 
Old 04-20-2008, 10:38 PM   #13
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Original Poster
Rep: Reputation: 15
Question

Quote:
Originally Posted by jay73 View Post
Go to sun.java.com, download the jre rpm.bin to your home directory.

Make the it executable:
chmod +x file_name.rpm.bin

Execute it:
./file_name.rpm.bin

It will create a set of rpm files. Install them (you need to be root for this part) with:
rpm -ivh *rpm

Install galternatives from the fedora repositories and use it to switch the plug-in from icedtea to sun jre.
Ok... giving it a try. I'll update.

Last edited by algogeek; 04-20-2008 at 11:01 PM.
 
Old 04-20-2008, 11:37 PM   #14
algogeek
Member
 
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103

Original Poster
Rep: Reputation: 15
Ok, no help. This seems to be a bug with Java - as shown here: http://bugs.sun.com/bugdatabase/view...bug_id=6532373

Problem is, their alternatives don't work for me.
 
Old 04-21-2008, 06:40 AM   #15
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 50
This not a bug, not a bug at all... the icedtea jvm is not complete yet. I think they use gcj to run applets for now. If you use sun jvm and make it the default on your pc, it should work...

The steps below might not be simple but if you can manage them, you're done. Sorry, I can't go into deep explanations, too long :
- You need to install the sun jvm rpm
- The sun jvm needs to be the first one found in your $PATH environment variable
- The java plugin linked in the firefox plugins directory must be the one from Sun JVM

BTW, the update-alternatives command is usually found on Debian based distributions such as Ubuntu, etc.
 
  


Reply

Tags
applet, fedora, java, jdk, jre


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
java applets basak Programming 1 05-20-2007 03:49 PM
, won't appear in Java applets JussiKp Linux - General 3 12-08-2006 03:51 AM
How do I use java applets? brooks_45 Linux - Newbie 6 02-01-2006 05:47 PM
java applets nOOb1kanobee Linux - Newbie 1 02-25-2004 02:47 AM
Java applets run fine in Konqueror, but won't run in MS IE. OAnimal Linux - Software 7 12-04-2002 06:32 AM


All times are GMT -5. The time now is 01:10 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