Starting windows bundle from network-drive use not included JRE?

Multi tool use
Multi tool use












1














I bundle a java program by using install4j and put the jre into the bundle as it is possible with install4j.



At our company we have the situation that every user must use a network share e.g. drive X: on windows where they start the java programm by using the EXE produced by install4j.



When we check with the process explorer on windows if the JRE is used or not we see that the local JRE of the machine is used and not the one from the drive X:



any experience?










share|improve this question






















  • You can execute the launcher from the command line with the argument /create-i4j-log to get a log file that contains information about the JRE search sequence.
    – Ingo Kegel
    2 days ago
















1














I bundle a java program by using install4j and put the jre into the bundle as it is possible with install4j.



At our company we have the situation that every user must use a network share e.g. drive X: on windows where they start the java programm by using the EXE produced by install4j.



When we check with the process explorer on windows if the JRE is used or not we see that the local JRE of the machine is used and not the one from the drive X:



any experience?










share|improve this question






















  • You can execute the launcher from the command line with the argument /create-i4j-log to get a log file that contains information about the JRE search sequence.
    – Ingo Kegel
    2 days ago














1












1








1







I bundle a java program by using install4j and put the jre into the bundle as it is possible with install4j.



At our company we have the situation that every user must use a network share e.g. drive X: on windows where they start the java programm by using the EXE produced by install4j.



When we check with the process explorer on windows if the JRE is used or not we see that the local JRE of the machine is used and not the one from the drive X:



any experience?










share|improve this question













I bundle a java program by using install4j and put the jre into the bundle as it is possible with install4j.



At our company we have the situation that every user must use a network share e.g. drive X: on windows where they start the java programm by using the EXE produced by install4j.



When we check with the process explorer on windows if the JRE is used or not we see that the local JRE of the machine is used and not the one from the drive X:



any experience?







java install4j network-drive






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 2 days ago









user1994378

62




62












  • You can execute the launcher from the command line with the argument /create-i4j-log to get a log file that contains information about the JRE search sequence.
    – Ingo Kegel
    2 days ago


















  • You can execute the launcher from the command line with the argument /create-i4j-log to get a log file that contains information about the JRE search sequence.
    – Ingo Kegel
    2 days ago
















You can execute the launcher from the command line with the argument /create-i4j-log to get a log file that contains information about the JRE search sequence.
– Ingo Kegel
2 days ago




You can execute the launcher from the command line with the argument /create-i4j-log to get a log file that contains information about the JRE search sequence.
– Ingo Kegel
2 days ago












1 Answer
1






active

oldest

votes


















0

















Thx!

I check this with your cmd argument and get errors.

[9:280] unpack done
[9:285] could not delete packed file (error 5)
[9:286] checking x:applmyappsappjrelibdeploy.jar
[9:287] x:applmyappsappjrebinunpack200.exe
[9:288] -r "x:applmyappsappjrelibdeploy.jar.pack" "x:applmyappsappjrelibdeploy.jar"
[9:300] waiting for unpack200 to finish
[9:383] unpack done
[9:387] could not delete packed file (error 5)
....
**x:applmyappsapp has write protection.**
This happens 18 times for other jar files in the JRE too.
....
[11:25] Unpacking JRE done
[11:27] checkJavaExe (g:applmyappsappjrebinjava.exe, [out], 2, 2, 1)
[11:28] file exists
[11:29] tempPath is C:UsersmyuserAppDataLocalTemp
[11:30] tempFile is C:UsersmyuserAppDataLocalTempe4j4DF8.tmp
[11:672] Exit Code 1
[11:674] couldn't get version
[11:675] checkJavaExe returning 0
[11:677] Testing location (type Y)
[11:678] checkJavaExe (C:Program Files (x86)Javajrebinjava.exe, [out], 2, 2, 0)
[11:679] file exists
...starting from now I see that the local JRE is used...

Why happen this? Write protection? Wrong install4j config?








share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    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%2fstackoverflow.com%2fquestions%2f53944985%2fstarting-windows-bundle-from-network-drive-use-not-included-jre%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0

















    Thx!

    I check this with your cmd argument and get errors.

    [9:280] unpack done
    [9:285] could not delete packed file (error 5)
    [9:286] checking x:applmyappsappjrelibdeploy.jar
    [9:287] x:applmyappsappjrebinunpack200.exe
    [9:288] -r "x:applmyappsappjrelibdeploy.jar.pack" "x:applmyappsappjrelibdeploy.jar"
    [9:300] waiting for unpack200 to finish
    [9:383] unpack done
    [9:387] could not delete packed file (error 5)
    ....
    **x:applmyappsapp has write protection.**
    This happens 18 times for other jar files in the JRE too.
    ....
    [11:25] Unpacking JRE done
    [11:27] checkJavaExe (g:applmyappsappjrebinjava.exe, [out], 2, 2, 1)
    [11:28] file exists
    [11:29] tempPath is C:UsersmyuserAppDataLocalTemp
    [11:30] tempFile is C:UsersmyuserAppDataLocalTempe4j4DF8.tmp
    [11:672] Exit Code 1
    [11:674] couldn't get version
    [11:675] checkJavaExe returning 0
    [11:677] Testing location (type Y)
    [11:678] checkJavaExe (C:Program Files (x86)Javajrebinjava.exe, [out], 2, 2, 0)
    [11:679] file exists
    ...starting from now I see that the local JRE is used...

    Why happen this? Write protection? Wrong install4j config?








    share|improve this answer




























      0

















      Thx!

      I check this with your cmd argument and get errors.

      [9:280] unpack done
      [9:285] could not delete packed file (error 5)
      [9:286] checking x:applmyappsappjrelibdeploy.jar
      [9:287] x:applmyappsappjrebinunpack200.exe
      [9:288] -r "x:applmyappsappjrelibdeploy.jar.pack" "x:applmyappsappjrelibdeploy.jar"
      [9:300] waiting for unpack200 to finish
      [9:383] unpack done
      [9:387] could not delete packed file (error 5)
      ....
      **x:applmyappsapp has write protection.**
      This happens 18 times for other jar files in the JRE too.
      ....
      [11:25] Unpacking JRE done
      [11:27] checkJavaExe (g:applmyappsappjrebinjava.exe, [out], 2, 2, 1)
      [11:28] file exists
      [11:29] tempPath is C:UsersmyuserAppDataLocalTemp
      [11:30] tempFile is C:UsersmyuserAppDataLocalTempe4j4DF8.tmp
      [11:672] Exit Code 1
      [11:674] couldn't get version
      [11:675] checkJavaExe returning 0
      [11:677] Testing location (type Y)
      [11:678] checkJavaExe (C:Program Files (x86)Javajrebinjava.exe, [out], 2, 2, 0)
      [11:679] file exists
      ...starting from now I see that the local JRE is used...

      Why happen this? Write protection? Wrong install4j config?








      share|improve this answer


























        0












        0








        0









        Thx!

        I check this with your cmd argument and get errors.

        [9:280] unpack done
        [9:285] could not delete packed file (error 5)
        [9:286] checking x:applmyappsappjrelibdeploy.jar
        [9:287] x:applmyappsappjrebinunpack200.exe
        [9:288] -r "x:applmyappsappjrelibdeploy.jar.pack" "x:applmyappsappjrelibdeploy.jar"
        [9:300] waiting for unpack200 to finish
        [9:383] unpack done
        [9:387] could not delete packed file (error 5)
        ....
        **x:applmyappsapp has write protection.**
        This happens 18 times for other jar files in the JRE too.
        ....
        [11:25] Unpacking JRE done
        [11:27] checkJavaExe (g:applmyappsappjrebinjava.exe, [out], 2, 2, 1)
        [11:28] file exists
        [11:29] tempPath is C:UsersmyuserAppDataLocalTemp
        [11:30] tempFile is C:UsersmyuserAppDataLocalTempe4j4DF8.tmp
        [11:672] Exit Code 1
        [11:674] couldn't get version
        [11:675] checkJavaExe returning 0
        [11:677] Testing location (type Y)
        [11:678] checkJavaExe (C:Program Files (x86)Javajrebinjava.exe, [out], 2, 2, 0)
        [11:679] file exists
        ...starting from now I see that the local JRE is used...

        Why happen this? Write protection? Wrong install4j config?








        share|improve this answer

















        Thx!

        I check this with your cmd argument and get errors.

        [9:280] unpack done
        [9:285] could not delete packed file (error 5)
        [9:286] checking x:applmyappsappjrelibdeploy.jar
        [9:287] x:applmyappsappjrebinunpack200.exe
        [9:288] -r "x:applmyappsappjrelibdeploy.jar.pack" "x:applmyappsappjrelibdeploy.jar"
        [9:300] waiting for unpack200 to finish
        [9:383] unpack done
        [9:387] could not delete packed file (error 5)
        ....
        **x:applmyappsapp has write protection.**
        This happens 18 times for other jar files in the JRE too.
        ....
        [11:25] Unpacking JRE done
        [11:27] checkJavaExe (g:applmyappsappjrebinjava.exe, [out], 2, 2, 1)
        [11:28] file exists
        [11:29] tempPath is C:UsersmyuserAppDataLocalTemp
        [11:30] tempFile is C:UsersmyuserAppDataLocalTempe4j4DF8.tmp
        [11:672] Exit Code 1
        [11:674] couldn't get version
        [11:675] checkJavaExe returning 0
        [11:677] Testing location (type Y)
        [11:678] checkJavaExe (C:Program Files (x86)Javajrebinjava.exe, [out], 2, 2, 0)
        [11:679] file exists
        ...starting from now I see that the local JRE is used...

        Why happen this? Write protection? Wrong install4j config?








        Thx!

        I check this with your cmd argument and get errors.

        [9:280] unpack done
        [9:285] could not delete packed file (error 5)
        [9:286] checking x:applmyappsappjrelibdeploy.jar
        [9:287] x:applmyappsappjrebinunpack200.exe
        [9:288] -r "x:applmyappsappjrelibdeploy.jar.pack" "x:applmyappsappjrelibdeploy.jar"
        [9:300] waiting for unpack200 to finish
        [9:383] unpack done
        [9:387] could not delete packed file (error 5)
        ....
        **x:applmyappsapp has write protection.**
        This happens 18 times for other jar files in the JRE too.
        ....
        [11:25] Unpacking JRE done
        [11:27] checkJavaExe (g:applmyappsappjrebinjava.exe, [out], 2, 2, 1)
        [11:28] file exists
        [11:29] tempPath is C:UsersmyuserAppDataLocalTemp
        [11:30] tempFile is C:UsersmyuserAppDataLocalTempe4j4DF8.tmp
        [11:672] Exit Code 1
        [11:674] couldn't get version
        [11:675] checkJavaExe returning 0
        [11:677] Testing location (type Y)
        [11:678] checkJavaExe (C:Program Files (x86)Javajrebinjava.exe, [out], 2, 2, 0)
        [11:679] file exists
        ...starting from now I see that the local JRE is used...

        Why happen this? Write protection? Wrong install4j config?





        Thx!

        I check this with your cmd argument and get errors.

        [9:280] unpack done
        [9:285] could not delete packed file (error 5)
        [9:286] checking x:applmyappsappjrelibdeploy.jar
        [9:287] x:applmyappsappjrebinunpack200.exe
        [9:288] -r "x:applmyappsappjrelibdeploy.jar.pack" "x:applmyappsappjrelibdeploy.jar"
        [9:300] waiting for unpack200 to finish
        [9:383] unpack done
        [9:387] could not delete packed file (error 5)
        ....
        **x:applmyappsapp has write protection.**
        This happens 18 times for other jar files in the JRE too.
        ....
        [11:25] Unpacking JRE done
        [11:27] checkJavaExe (g:applmyappsappjrebinjava.exe, [out], 2, 2, 1)
        [11:28] file exists
        [11:29] tempPath is C:UsersmyuserAppDataLocalTemp
        [11:30] tempFile is C:UsersmyuserAppDataLocalTempe4j4DF8.tmp
        [11:672] Exit Code 1
        [11:674] couldn't get version
        [11:675] checkJavaExe returning 0
        [11:677] Testing location (type Y)
        [11:678] checkJavaExe (C:Program Files (x86)Javajrebinjava.exe, [out], 2, 2, 0)
        [11:679] file exists
        ...starting from now I see that the local JRE is used...

        Why happen this? Write protection? Wrong install4j config?






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited yesterday

























        answered yesterday









        user1994378

        62




        62






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2fstackoverflow.com%2fquestions%2f53944985%2fstarting-windows-bundle-from-network-drive-use-not-included-jre%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







            DRvhk iqk12cU0yXS1JxpVghC9ev5yVBTSz0UX,kYQIfg,rDdamfZ8izTanXq
            UrL1mPCzlbEmSlbP

            Popular posts from this blog

            Monofisismo

            Angular Downloading a file using contenturl with Basic Authentication

            Olmecas