Jre not working in Fedora


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Jre not working in Fedora
# 1  
Old 11-28-2013
Jre not working in Fedora

I am having trouble getting my jre to work. I have uninstalled and reinstalled it several times but that is not working. I have setup the firefox symlink.

Code:
sudo ln -s /usr/java/jre1.7.0_21/lib/i386/libnpjp2.so

I have tried to follow these instructions.

http://www.mjmwired.net/resources/mj...-f19.html#java

I have checked here several times. The box just stays grey and nothing happens.

https://www.java.com/en/download/ins...jsp?detect=jre
# 2  
Old 11-28-2013
For starters your symbolic link command syntax is invalid.

You need to give us more information if this forum is going to be able to help you. Are you trying to install OpenJDK or Oracle java? What version of Fedora? 32bit or 64bit? Did you try use the alternatives command?
# 3  
Old 11-28-2013
Quote:
Originally Posted by fpmurphy
For starters your symbolic link command syntax is invalid.

You need to give us more information if this forum is going to be able to help you. Are you trying to install OpenJDK or Oracle java? What version of Fedora? 32bit or 64bit? Did you try use the alternatives command?
Can you explain what is going on here please?

Code:
[bob@hi ~]$ cd /usr/lib/mozilla/plugins
[bob@hi plugins]$ ls -l
total 240
lrwxrwxrwx  1 root root     39 Sep 28 23:43 libflashplayer.so -> /usr/lib/flash-plugin/libflashplayer.so
lrwxrwxrwx  1 root root     34 Nov 28 02:50 libjavaplugin.so -> /etc/alternatives/libjavaplugin.so
lrwxrwxrwx  1 root root     52 Oct 29 20:57 libnpgoogletalk.so -> ../../../../opt/google/talkplugin/libnpgoogletalk.so
lrwxrwxrwx  1 root root     58 Oct 29 20:57 libnpgtpo3dautoplugin.so -> ../../../../opt/google/talkplugin/libnpgtpo3dautoplugin.so
lrwxrwxrwx  1 root root     45 Oct 29 20:57 libnpo1d.so -> ../../../../opt/google/talkplugin/libnpo1d.so
-rwxr-xr-x  1 root root 176032 Sep  9 13:59 nppdf.so
-rwxr-xr-x. 1 root root  66736 Jul  1  2011 skypebuttons.so
[bob@hi plugins]$ sudo ln -s /usr/java/jre1.7.0_45/lib/i386/libnpjp2.so 
[sudo] password for bob: 
[bob@hi plugins]$ ls -l
total 240
lrwxrwxrwx  1 root root     39 Sep 28 23:43 libflashplayer.so -> /usr/lib/flash-plugin/libflashplayer.so
lrwxrwxrwx  1 root root     34 Nov 28 02:50 libjavaplugin.so -> /etc/alternatives/libjavaplugin.so
lrwxrwxrwx  1 root root     52 Oct 29 20:57 libnpgoogletalk.so -> ../../../../opt/google/talkplugin/libnpgoogletalk.so
lrwxrwxrwx  1 root root     58 Oct 29 20:57 libnpgtpo3dautoplugin.so -> ../../../../opt/google/talkplugin/libnpgtpo3dautoplugin.so
lrwxrwxrwx  1 root root     42 Nov 28 14:16 libnpjp2.so -> /usr/java/jre1.7.0_45/lib/i386/libnpjp2.so
lrwxrwxrwx  1 root root     45 Oct 29 20:57 libnpo1d.so -> ../../../../opt/google/talkplugin/libnpo1d.so
-rwxr-xr-x  1 root root 176032 Sep  9 13:59 nppdf.so
-rwxr-xr-x. 1 root root  66736 Jul  1  2011 skypebuttons.so

The oracle java. This is the version I installed.
jre-1.7.0_45-fcs.i586
Fedora 15
32 bit

Is this what you are talking about?

Code:
sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 200000
sudo /usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \ libjavaplugin.so /usr/java/default/lib/i386/libnpjp2.so 200000

Someone on another forum mentioned this. I am not seeing what I would expect.
Code:
[bob@hi plugins]$ alternatives --config libjavaplugin.so 

There are 2 programs which provide 'libjavaplugin.so'.

  Selection    Command
-----------------------------------------------
   1           /usr/lib/jvm/jre-1.6.0-openjdk/lib/i386/IcedTeaPlugin.so
*+ 2           /usr/java/default/lib/i386/libnpjp2.so

Enter to keep the current selection[+], or type selection number: 
failed to create /var/lib/alternatives/libjavaplugin.so.new: Permission denied
[bob@hi plugins]$ rpm -qa | grep -i jre
jre-1.7.0_45-fcs.i586

I doesn't mention anything similar to this jre-1.7.0_45-fcs.i586.

I forgot to mention I have tried to get the oracle JRE to work in Firefox, Seamonkey, and Chrome. Are there any other browsers that it would be a good idea to try oracle JRE in?

---------- Post updated at 06:09 PM ---------- Previous update was at 02:25 PM ----------

Here are the full logs of what is going on.

Code:
java.lang.NullPointerException
    at sun.plugin2.applet.JNLP2Manager.getAppInfo(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

cache: Initialize resource manager: com.sun.deploy.cache.ResourceProviderImpl@14c8743
network: Created version ID: 1.7.0.45
network: Created version ID: 1.7
network: Created version ID: 2.2.45
network: Cache entry not found [url: http://www.java.com/en/download/JavaDetection_applet.jnlp, version: null]
network: Cache entry not found [url: http://www.java.com/en/download/JavaDetection_applet.jnlp, version: null]
network: Cache entry not found [url: http://www.java.com/en/download/JavaDetection_applet.jnlp, version: null]
network: Connecting http://www.java.com/en/download/JavaDetection_applet.jnlp with proxy=DIRECT
network: Connecting http://www.java.com:80/ with proxy=DIRECT
java.net.UnknownHostException: www.java.com
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
    at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
    at sun.plugin2.main.client.PluginMain.access$200(Unknown Source)
    at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
network: Connecting http://www.java.com/en/download/JavaDetection_applet.jnlp with proxy=DIRECT
network: Connecting http://www.java.com:80/ with proxy=DIRECT
java.net.UnknownHostException: www.java.com
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
    at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
    at sun.plugin2.main.client.PluginMain.access$200(Unknown Source)
    at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://www.java.com/en/download/JavaDetection_applet.jnlp
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
    at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
    at sun.plugin2.main.client.PluginMain.access$200(Unknown Source)
    at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by:
java.net.UnknownHostException: www.java.com
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
    at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
    at com.sun.deploy.model.ResourceProvider.getResource(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory._buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at com.sun.javaws.jnl.LaunchDescFactory.buildDescriptor(Unknown Source)
    at sun.plugin2.applet.JNLP2Manager.initialize(Unknown Source)
    at sun.plugin2.main.client.PluginMain.initManager(Unknown Source)
    at sun.plugin2.main.client.PluginMain.access$200(Unknown Source)
    at sun.plugin2.main.client.PluginMain$2.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
network: Cache entry not found [url: http://www.java.com/en/download/JavaDetection_applet.jnlp, version: null]
network: Connecting http://www.java.com/en/download/JavaDetection_applet.jnlp with proxy=DIRECT
network: Connecting http://www.java.com:80/ with proxy=DIRECT
basic: JNLP2Manager.initialize(): JNLP not available: JavaDetection_applet.jnlp
basic: exception: null.
java.lang.NullPointerException
    at sun.plugin2.applet.JNLP2Manager.getAppInfo(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Ignored exception: java.lang.NullPointerException
basic: Dialog type is not candidate for embedding

# 4  
Old 11-29-2013
I have forgotten most of my Java knowledge as i have purposely avoided Java for a number of years.

However your exception handler output looks like Java's CLASSPATH is not set up correctly or the requisite jars are not available on your system.
# 5  
Old 11-29-2013
If again reinstalling try this and let me know if its helpful

Download Java from here
HTML Code:
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Code:
# Root
user@host:~$ sudo su

# Change according to your wish, for example this is installation directory
root@host:~# mkdir -p /usr/lib/jvm

# Optional you can copy or directly extract., this is old version change according to your need
root@host:~# cp -i jdk-7u11-linux-i586.tar.gz /usr/lib/jvm/
root@host:~# cp -i jre-7u11-linux-i586.tar.gz /usr/lib/jvm/

# change directory
root@host:~# cd /usr/lib/jvm/

# Extract jdk and Jre
root@host:/usr/lib/jvm# tar -xvf jdk-7u11-linux-i586.tar.gz
root@host:/usr/lib/jvm# tar -xvf jre-7u11-linux-i586.tar.gz

# If not needed delete
root@host:/usr/lib/jvm$ rm -rf *.gz

# confirm that these two are extracted
root@host:/usr/lib/jvm# ls -1
jdk1.7.0_11
jre1.7.0_11

# Configure according to foldername highlighted in blue color
root@host:/usr/lib/jvm# sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.7.0_11/bin/javac" 1

root@host:/usr/lib/jvm# sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.7.0_11/bin/java" 1

root@host:/usr/lib/jvm# sudo update-alternatives --set "javac" "/usr/lib/jvm/jdk1.7.0_11/bin/javac"

root@host:/usr/lib/jvm# sudo update-alternatives --set "java" "/usr/lib/jvm/jre1.7.0_11/bin/java"

# On successful installation you should be able to see following
root@host:/usr/lib/jvm# java -version
java version "1.7.0_11"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot(TM) Server VM (build 23.6-b04, mixed mode)

root@host:/usr/lib/jvm# javac -version
javac 1.7.0_11

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Fedora

Yum repository not working in Fedora 16

Hi, while installing/updating package using yum I am getting (repomd.xml) error # yum list Loaded plugins: langpacks, presto, refresh-packagekit http://mirror.cse.iitk.ac.in/fedora-archive/fedora/linux/fedora/linux/releases/16/Everything/x86_64/os/repodata/repomd.xml: HTTP Error 404 -... (12 Replies)
Discussion started by: muzaffar.k
12 Replies

2. Red Hat

Wine is not working in fedora 15

Hi Frnds I dont know where to post thread for fedora so here i am posting I have fedora 15 with kernel-2.6.41.4-1.fc15.x86_64.It was previously kernel-2.6.40.6-0.fc15.x86_64 which i updated today through Yum.After than i restarted with new kernel and installed wine-1.3.35-1.fc15.x86_64... (4 Replies)
Discussion started by: Vaibhav.T
4 Replies

3. Linux

fedora 11 updates not working

I am running fedora 11 as a virtual machine on vmware. when i open software updates they do not start.neither can new software be installed.but i am getting lan connection as firefox is working.have changed system proxy too. the directory /etc/yum.repos.d/ is not empty.this is output of ls... (2 Replies)
Discussion started by: linuxstudent
2 Replies

4. UNIX for Dummies Questions & Answers

Need to find the OS JRE as well as User installed JRE on my UNIX box!

Hi, I want to determine whether my java application is pointing to the OS version of Java or the User installed Java version on my Unix box. I am aware of the "java -version" command, however I am unsure if the version returned is the OS one or the user one. Please help. Ali. (5 Replies)
Discussion started by: ali40
5 Replies

5. IP Networking

Wireless stopped working- Fedora 12

I installed F12 around the time it was released and it picked up my wireless card and worked like a charm.....Suddenly last week everything stopped working and I receive what appears to be a driver error when wlan0 tries to load. Error for wireless request "Set Mode" (8B06) : SET failed on... (1 Reply)
Discussion started by: woodson2
1 Replies

6. Linux

gvfs-mount not working from command line (Fedora 11 x86-64)

When I access a samba share from command line using gvfs-mount, I can not see anything in ~/.gvfs/ directory. See below: ajitabhp:$ gvfs-mount smb://iomega-dstore/music/ ajitabhp:$ echo $? 0 ajitabhp:$ ls -l ~/.gvfs/ total 0 ajitabhp:$ ps -ef|grep gvfsd-smb ajitabhp 10896 1 0 11:28 ? ... (2 Replies)
Discussion started by: ajitabhpandey
2 Replies

7. Programming

JRE in Fedora 7

Perhaps this is the right forum for this question? Hi, I am trying to install the Java Runtime Environment in Fedora 7. However, according to articles such as this: How to Install Java in Fedora Core 6 - Java Runtime Environment - Softpedia I should have a plugin directory in the jre... (3 Replies)
Discussion started by: user23
3 Replies

8. UNIX for Dummies Questions & Answers

JRE in Fedora 7

Hi, I am trying to install the Java Runtime Environment in Fedora 7. However, according to articles such as this: How to Install Java in Fedora Core 6 - Java Runtime Environment - Softpedia I should have a plugin directory in the jre directory. I don't have that after running the... (1 Reply)
Discussion started by: user23
1 Replies

9. Ubuntu

Fedora and Ubuntu not working out with GRUB

I have tried befre but nothing works out proprly. I have Ubuntu I try to Install Fedora Core 1. When Fedora Cora is finished Installing It doesnt show Ubuntu on Grub. If I re-install Ubuntu and put grub on then Fedora wont show. I also have Windows 98 but that is always on the list as DOS or... (5 Replies)
Discussion started by: shade11
5 Replies
Login or Register to Ask a Question