How to associate jnlp file with javaws





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







10















My actual version of java is



$ java -version
java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)


and it possible to run jnlp file as



$ javaws ContestAppletProd.jnlp


(it's TopCoder Contest Arena)



but I want to run it with simple double click.



When I do right click on file, there is "Open with Other Application" option, but I do not know how to add javaws here.










share|improve this question





























    10















    My actual version of java is



    $ java -version
    java version "1.6.0_38"
    Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)


    and it possible to run jnlp file as



    $ javaws ContestAppletProd.jnlp


    (it's TopCoder Contest Arena)



    but I want to run it with simple double click.



    When I do right click on file, there is "Open with Other Application" option, but I do not know how to add javaws here.










    share|improve this question

























      10












      10








      10


      7






      My actual version of java is



      $ java -version
      java version "1.6.0_38"
      Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)


      and it possible to run jnlp file as



      $ javaws ContestAppletProd.jnlp


      (it's TopCoder Contest Arena)



      but I want to run it with simple double click.



      When I do right click on file, there is "Open with Other Application" option, but I do not know how to add javaws here.










      share|improve this question














      My actual version of java is



      $ java -version
      java version "1.6.0_38"
      Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)


      and it possible to run jnlp file as



      $ javaws ContestAppletProd.jnlp


      (it's TopCoder Contest Arena)



      but I want to run it with simple double click.



      When I do right click on file, there is "Open with Other Application" option, but I do not know how to add javaws here.







      java






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 3 '13 at 23:01









      BetlistaBetlista

      2362310




      2362310






















          2 Answers
          2






          active

          oldest

          votes


















          15














          You will need to create a .desktop file like described in the this post for javaws to appear in Open With dialog.



          In your case you will need to create a new text file in the folder ~/.local/share/applications. Name this file whatever you want, it has to have the extension .desktop. The content of this file has to be the following:



          [Desktop Entry]
          Encoding=UTF-8
          Name=Java 6 Web Start
          Comment=Java 6 Web Start
          Exec=/usr/lib/jvm/java-6-oracle/jre/bin/javaws %u
          Terminal=false
          Type=Application
          Icon=javaws
          Categories=Application;Network;
          MimeType=application/x-java-jnlp-file;


          Please pay attention that the path to javaws executable in the Exec parameter may be different on your system. You can find out the path to your javaws executable by typing the following command in terminal:



          which javaws


          or by listing all your JDK/JRE installations with the command:



          update-alternatives --display javaws





          share|improve this answer


























          • Thanks I used this Tweak and it works exactly as I expected ;-)

            – Betlista
            Jan 4 '13 at 0:03



















          0














          As an addendum to bender's answer, if you are using Chrome you may not get a chance to change the default application without first going through the file manager's "Open With other Application" step. In my case (Chrome on XUbuntu 15.10 - XFCE), I had to:




          1. Let Chrome (or whatever browser) save the JNLP file

          2. Right click on it in the file manager, select "open with other application", choose application and check "Always use this".


          There was already a correct jnlp application option in /usr/share/applications (multiple, in fact), so I didn't need to create my own, but it was not used until I did the above (JNLP files were associated with Firefox which didn't know what to do with them)



          This is so basic that I couldn't figure it out for a while :)






          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f235861%2fhow-to-associate-jnlp-file-with-javaws%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            15














            You will need to create a .desktop file like described in the this post for javaws to appear in Open With dialog.



            In your case you will need to create a new text file in the folder ~/.local/share/applications. Name this file whatever you want, it has to have the extension .desktop. The content of this file has to be the following:



            [Desktop Entry]
            Encoding=UTF-8
            Name=Java 6 Web Start
            Comment=Java 6 Web Start
            Exec=/usr/lib/jvm/java-6-oracle/jre/bin/javaws %u
            Terminal=false
            Type=Application
            Icon=javaws
            Categories=Application;Network;
            MimeType=application/x-java-jnlp-file;


            Please pay attention that the path to javaws executable in the Exec parameter may be different on your system. You can find out the path to your javaws executable by typing the following command in terminal:



            which javaws


            or by listing all your JDK/JRE installations with the command:



            update-alternatives --display javaws





            share|improve this answer


























            • Thanks I used this Tweak and it works exactly as I expected ;-)

              – Betlista
              Jan 4 '13 at 0:03
















            15














            You will need to create a .desktop file like described in the this post for javaws to appear in Open With dialog.



            In your case you will need to create a new text file in the folder ~/.local/share/applications. Name this file whatever you want, it has to have the extension .desktop. The content of this file has to be the following:



            [Desktop Entry]
            Encoding=UTF-8
            Name=Java 6 Web Start
            Comment=Java 6 Web Start
            Exec=/usr/lib/jvm/java-6-oracle/jre/bin/javaws %u
            Terminal=false
            Type=Application
            Icon=javaws
            Categories=Application;Network;
            MimeType=application/x-java-jnlp-file;


            Please pay attention that the path to javaws executable in the Exec parameter may be different on your system. You can find out the path to your javaws executable by typing the following command in terminal:



            which javaws


            or by listing all your JDK/JRE installations with the command:



            update-alternatives --display javaws





            share|improve this answer


























            • Thanks I used this Tweak and it works exactly as I expected ;-)

              – Betlista
              Jan 4 '13 at 0:03














            15












            15








            15







            You will need to create a .desktop file like described in the this post for javaws to appear in Open With dialog.



            In your case you will need to create a new text file in the folder ~/.local/share/applications. Name this file whatever you want, it has to have the extension .desktop. The content of this file has to be the following:



            [Desktop Entry]
            Encoding=UTF-8
            Name=Java 6 Web Start
            Comment=Java 6 Web Start
            Exec=/usr/lib/jvm/java-6-oracle/jre/bin/javaws %u
            Terminal=false
            Type=Application
            Icon=javaws
            Categories=Application;Network;
            MimeType=application/x-java-jnlp-file;


            Please pay attention that the path to javaws executable in the Exec parameter may be different on your system. You can find out the path to your javaws executable by typing the following command in terminal:



            which javaws


            or by listing all your JDK/JRE installations with the command:



            update-alternatives --display javaws





            share|improve this answer















            You will need to create a .desktop file like described in the this post for javaws to appear in Open With dialog.



            In your case you will need to create a new text file in the folder ~/.local/share/applications. Name this file whatever you want, it has to have the extension .desktop. The content of this file has to be the following:



            [Desktop Entry]
            Encoding=UTF-8
            Name=Java 6 Web Start
            Comment=Java 6 Web Start
            Exec=/usr/lib/jvm/java-6-oracle/jre/bin/javaws %u
            Terminal=false
            Type=Application
            Icon=javaws
            Categories=Application;Network;
            MimeType=application/x-java-jnlp-file;


            Please pay attention that the path to javaws executable in the Exec parameter may be different on your system. You can find out the path to your javaws executable by typing the following command in terminal:



            which javaws


            or by listing all your JDK/JRE installations with the command:



            update-alternatives --display javaws






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 9 at 0:42









            Kevin Bowen

            14.8k155970




            14.8k155970










            answered Jan 3 '13 at 23:43









            benderbender

            1,5711223




            1,5711223













            • Thanks I used this Tweak and it works exactly as I expected ;-)

              – Betlista
              Jan 4 '13 at 0:03



















            • Thanks I used this Tweak and it works exactly as I expected ;-)

              – Betlista
              Jan 4 '13 at 0:03

















            Thanks I used this Tweak and it works exactly as I expected ;-)

            – Betlista
            Jan 4 '13 at 0:03





            Thanks I used this Tweak and it works exactly as I expected ;-)

            – Betlista
            Jan 4 '13 at 0:03













            0














            As an addendum to bender's answer, if you are using Chrome you may not get a chance to change the default application without first going through the file manager's "Open With other Application" step. In my case (Chrome on XUbuntu 15.10 - XFCE), I had to:




            1. Let Chrome (or whatever browser) save the JNLP file

            2. Right click on it in the file manager, select "open with other application", choose application and check "Always use this".


            There was already a correct jnlp application option in /usr/share/applications (multiple, in fact), so I didn't need to create my own, but it was not used until I did the above (JNLP files were associated with Firefox which didn't know what to do with them)



            This is so basic that I couldn't figure it out for a while :)






            share|improve this answer




























              0














              As an addendum to bender's answer, if you are using Chrome you may not get a chance to change the default application without first going through the file manager's "Open With other Application" step. In my case (Chrome on XUbuntu 15.10 - XFCE), I had to:




              1. Let Chrome (or whatever browser) save the JNLP file

              2. Right click on it in the file manager, select "open with other application", choose application and check "Always use this".


              There was already a correct jnlp application option in /usr/share/applications (multiple, in fact), so I didn't need to create my own, but it was not used until I did the above (JNLP files were associated with Firefox which didn't know what to do with them)



              This is so basic that I couldn't figure it out for a while :)






              share|improve this answer


























                0












                0








                0







                As an addendum to bender's answer, if you are using Chrome you may not get a chance to change the default application without first going through the file manager's "Open With other Application" step. In my case (Chrome on XUbuntu 15.10 - XFCE), I had to:




                1. Let Chrome (or whatever browser) save the JNLP file

                2. Right click on it in the file manager, select "open with other application", choose application and check "Always use this".


                There was already a correct jnlp application option in /usr/share/applications (multiple, in fact), so I didn't need to create my own, but it was not used until I did the above (JNLP files were associated with Firefox which didn't know what to do with them)



                This is so basic that I couldn't figure it out for a while :)






                share|improve this answer













                As an addendum to bender's answer, if you are using Chrome you may not get a chance to change the default application without first going through the file manager's "Open With other Application" step. In my case (Chrome on XUbuntu 15.10 - XFCE), I had to:




                1. Let Chrome (or whatever browser) save the JNLP file

                2. Right click on it in the file manager, select "open with other application", choose application and check "Always use this".


                There was already a correct jnlp application option in /usr/share/applications (multiple, in fact), so I didn't need to create my own, but it was not used until I did the above (JNLP files were associated with Firefox which didn't know what to do with them)



                This is so basic that I couldn't figure it out for a while :)







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 4 '16 at 13:55









                akomakom

                1064




                1064






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f235861%2fhow-to-associate-jnlp-file-with-javaws%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to change which sound is reproduced for terminal bell?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?