On Sat, Jun 5, 2010 at 11:45, Terry Polzin <foxec208@xxxxxxxxxx> wrote:
I would install sun jdk or jre.On Sat, 2010-06-05 at 08:55 -0300, Andre Costa wrote:
> Hi,
>
>
> I use Chrome on F13, and everytime I try to open a JNLP file it opens
> it with gedit. First I thought it was a Chrome bug (there's even a bug
> report for
> that: http://code.google.com/p/chromium/issues/detail?id=10877), but
> then I realized that if I try to open a .jnlp on nautilus it also
> opens it with gedit, even if I click on "Open With... > Other
> Application... javaws" and check the "Remember this application for
> 'jnlp file' files".
>
>
> I tried to use xdg-mime install as suggested by comment #32 but it
> didn't work (see comment #34).
>
>
> Firefox opens JNLP files just fine, but I guess it has its own table
> of file associations.
>
>
> So, my guess is that if I can teach GNOME to open JNLP files with
> javaws my problem will be solved. Any tips?
I installed Sun JDK official RPM, from Oracle's site.
Then I would make sure that what I just installed was the default via
the alternatives command ie;
/usr/sbin/alternatives --install /usr/bin/java java [path to java] [any
digit]
/usr/sbin/alternatives --install /usr/bin/javaws javaws [path to javaws]
[any digit]
I am really not proficient with 'alternatives' command, but I did try to configure Sun's JDK as the default. The difference is that I configured javaws as a "slave" to java config, like this:
sudo alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000 \
--slave /usr/bin/javaws javaws /usr/java/latest/bin/javaws
It seems it worked:
~ ls -l /usr/bin/javaws
lrwxrwxrwx. 1 root root 24 Jun 5 12:25 /usr/bin/javaws -> /etc/alternatives/javaws
~ file /etc/alternatives/javaws
/etc/alternatives/javaws: symbolic link to `/usr/java/latest/bin/javaws'
/usr/java/latest/bin/javaws is the right executable (I mean, it is Sun's javaws).
Then make sure that alternatives is set to use what you just installed;
/usr/sbin/alternatives --config java
/usr/sbin/alternatives --config javaws
It is, at least AFAICS:
~ alternatives --display java
java - status is auto.
/usr/lib/jvm/jre-1.5.0-gcj/bin/java - priority 1500
slave jar: (null)
slave jarsigner: (null)
slave javadoc: (null)
slave javaws: (null)
...
/usr/java/latest/bin/java - priority 20000
slave jar: /usr/java/latest/bin/jar
slave jarsigner: /usr/java/latest/bin/jarsigner
slave javadoc: /usr/java/latest/bin/javadoc
slave javaws: /usr/java/latest/bin/javaws
Regards,
Andre
-- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines