Update Eclipse with newly build JDK

Remi Forax forax at univ-mlv.fr
Thu Sep 14 13:33:12 UTC 2017


Razvan,
Eclipse uses its own compiler, not javac, so it will not recognize 'var' as a keyword.

You can create a fake class named 'var', but you will still have some compilation error.

Rémi

----- Mail original -----
> De: "Razvan Minciuna" <razvan.minciuna at gmail.com>
> À: "Maurizio Cimadamore" <maurizio.cimadamore at oracle.com>
> Cc: "amber-dev" <amber-dev at openjdk.java.net>
> Envoyé: Jeudi 14 Septembre 2017 08:44:58
> Objet: Re: Update Eclipse with newly build JDK

> Hi,
> 
> I was able to configure the Eclipse to support modularized jdk  and I could
> add it.
> but it´s still not working and I have a compilation error
> please see attached the configuration image and tell me if I´m missing
> something
> 
> Regards
> Razvan
> 
> On Wed, Sep 13, 2017 at 10:18 PM, Maurizio Cimadamore <
> maurizio.cimadamore at oracle.com> wrote:
> 
>>
>>
>> On 13/09/17 20:39, Razvan Minciuna wrote:
>>
>>> Hi,
>>>
>>> I am not able to update the Eclipse jdk environment with the newly build
>>> jdk.
>>>
>> Might that be caused by the fact that this JDK is basically a fully
>> modularized JDK? Does your version of Eclipse support modularized JDKs?
>>
>> Try to look here:
>>
>> https://wiki.eclipse.org/Configure_Eclipse_for_Java_9
>>
>> Maurizio
>>
>>  From cli I can compile and execute tha application, so I think the build
>>> went ok but I would like to use it from eclipse.
>>>
>>> What am I missing?
>>>
>>> Regards
>>> Razvan
>>>
>>


More information about the amber-dev mailing list