Do I need to have Java 9 installed to run the image generated by jLink?

kant kodali kanth909 at gmail.com
Mon Sep 25 03:37:58 UTC 2017


Is there a anyway to create self contained image independent of platform ?

On Sun, Sep 24, 2017 at 8:28 PM, David Holmes <david.holmes at oracle.com>
wrote:

> On 25/09/2017 12:56 PM, kant kodali wrote:
>
>> If Jlink produces an image that is "portable across machines across the
>> same OS type". This would defeat the purpose of JVM right? If I use jlink
>> and produce an image on mac I should be able to run on windows isn't it?
>>
>
> A jlink image is created for a specific platform (OS + CPU combination).
> It contains executables and native libraries built for a specific platform.
>
> David
> -----
>
> On Sun, Sep 24, 2017 at 7:21 PM, Sundararajan Athijegannathan <
>> sundararajan.athijegannathan at oracle.com> wrote:
>>
>> Hi,
>>>
>>> Right. The jvm and other shared objects are obviously platform dependent
>>> and so jlink produced binaries can only be run on specific target
>>> platform.
>>> That said, his question was about whether he still needs to install Java
>>> to
>>> use the produced image. I answered that question. (i.e., the image is
>>> complete and does not require java to be installed to use).
>>>
>>> Thanks,
>>> -Sundar
>>>
>>>
>>> On 23/09/17, 3:39 PM, Mani Sarkar wrote:
>>>
>>> Hi Sundar,
>>>
>>> Although can we cannot run this app on any OS on the target machine, but
>>> the specific OS it has been compiled/linked on.
>>>
>>> So its portable across machines across the same OS type.
>>>
>>> I hope my understanding is correct, happy to be corrected.
>>>
>>> Thanks.
>>>
>>> Regards,
>>> Mani
>>>
>>>
>>>
>>> On Sat, 23 Sep 2017 02:35 Sundararajan Athijegannathan <
>>> sundararajan.athijegannathan at oracle.com> wrote:
>>>
>>> Hi,
>>>>
>>>> jlink produced image dir is complete - it has jvm, required platform +
>>>> app modules, config. etc. to run your modular app.  You don't need to
>>>> install java separately on the target machine ("machine 2").
>>>>
>>>> Thanks,
>>>> -Sundar
>>>>
>>>> On 23/09/17, 1:39 AM, kant kodali wrote:
>>>>
>>>>> Hi All,
>>>>>
>>>>> Let's say I create a modularize my app and generate a image using jLink
>>>>>
>>>> on
>>>>
>>>>> machine1 and from what I understand the image has the runtime as well
>>>>>
>>>> so if
>>>>
>>>>> I transfer this image to machine 2 which has nothing installed(not even
>>>>> Java) can I simply run my app on machine? or does machine2 also need to
>>>>> have Java installed?
>>>>>
>>>>> Thanks!
>>>>>
>>>>
>>>> --
>>> @theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
>>> <http://neomatrix369.wordpress.com/>**  |  *@adoptopenjdk | Dev
>>> communities
>>> *Meet-a-Project - *MutabilityDetector
>>> <https://github.com/MutabilityDetector>*  |  **Bitbucket
>>> <https://bitbucket.org/neomatrix369>* * |  **Github
>>> <https://github.com/neomatrix369>* * |  **LinkedIn
>>> <http://uk.linkedin.com/pub/mani-sarkar/71/a77/39b>*
>>> *Come to Devoxx UK 2018:* http://www.devoxx.co.uk/
>>>
>>> *Don't chase success, rather aim for "Excellence", and success will come
>>> chasing after you!*
>>>
>>>
>>>


More information about the jdk9-dev mailing list