Re: How do I associate *.jnlp files to Java Webstart (javaws) on GNOME?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 5, 2010 at 11:45, Terry Polzin <foxec208@xxxxxxxxxx> wrote:
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 would install sun jdk or jre.

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
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux