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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
04-20-2008, 05:15 AM
|
#1
|
|
Member
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103
Rep:
|
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. 
|
|
|
|
04-20-2008, 07:03 AM
|
#2
|
|
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690
Rep:
|
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.
|
|
|
|
04-20-2008, 07:24 AM
|
#3
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
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.
|
|
|
|
04-20-2008, 10:55 AM
|
#4
|
|
Member
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103
Original Poster
Rep:
|
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?
|
|
|
|
04-20-2008, 01:56 PM
|
#5
|
|
Member
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103
Original Poster
Rep:
|
Hello, can anyone please reply?
This has been my first hand linux experience and I didn't know linux was this buggy as well. 
|
|
|
|
04-20-2008, 01:59 PM
|
#6
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
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.
|
|
|
|
04-20-2008, 03:29 PM
|
#7
|
|
Member
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103
Original Poster
Rep:
|
Quote:
Originally Posted by alan_ri
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.
|
|
|
|
04-20-2008, 03:46 PM
|
#8
|
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
Are you sure that you have sun's-jdk installed?
|
|
|
|
04-20-2008, 04:03 PM
|
#9
|
|
Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep: 
|
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.
|
|
|
|
04-20-2008, 04:40 PM
|
#10
|
|
Member
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103
Original Poster
Rep:
|
Quote:
Originally Posted by jay73
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.
|
|
|
|
04-20-2008, 05:13 PM
|
#11
|
|
Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019
Rep: 
|
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.
|
|
|
|
04-20-2008, 08:05 PM
|
#12
|
|
Member
Registered: Dec 2007
Distribution: Ibex
Posts: 93
Rep:
|
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!
|
|
|
|
04-20-2008, 10:38 PM
|
#13
|
|
Member
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103
Original Poster
Rep:
|
Quote:
Originally Posted by jay73
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.
|
|
|
|
04-20-2008, 11:37 PM
|
#14
|
|
Member
Registered: Apr 2008
Distribution: Fedora 9, Ubuntu 8.04, Ubuntu 8.04 Server
Posts: 103
Original Poster
Rep:
|
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. 
|
|
|
|
04-21-2008, 06:40 AM
|
#15
|
|
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:25 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|