Update Eclipse with newly build JDK

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Thu Sep 14 10:44:39 UTC 2017



On 14/09/17 11:02, Razvan Minciuna wrote:
> Hi,
> It´s seems that it takes more time to configure the environment than 
> testing the features.
> I wish there were more information or documentation.
Well, as I'm sure you understand, every developer has his/her own 
specific environment and preferred set of tools. It is not the goal of 
this mailing list to discuss how these _experimental_ feature are to be 
integrated inside IDEs. Since everything here has not been officially 
released, developers that want to chime in are bound to encounter some 
friction with the existing toolchain. While this is normally not a big 
issue for projects based on maven, ant or gradle (which can be pointed 
at the new JDK and will, more or less work), some work is required on 
the IDE side to allow you to create projects using those experimental 
features, and I hope you understand that we don't have much control over 
what IDE decide to do or support (esp. when it comes to experimental 
features).

Maurizio
>
> R
> R
>
> On Thu, Sep 14, 2017 at 11:02 AM, Maurizio Cimadamore 
> <maurizio.cimadamore at oracle.com 
> <mailto:maurizio.cimadamore at oracle.com>> wrote:
>
>     Hi Razvan,
>     as far as I know, Eclipse uses its own Java compiler (at least in
>     normal setups). So, you would need a modified version of Eclipse
>     to be able to make it understand 'var' and any other experimental
>     feature you might be using.
>
>     The situation is different for Netbeans and Intellij, which
>     eventually delegate back to some real javac to do the code
>     generation, so I would expect things to be easier with those IDEs.
>
>     If your project has an ant file, I think you can make it work with
>     Eclipse too (as Ant will be using javac) - and then you would use
>     Eclipse/Ant integration. But still you would need to put up with
>     the red squiggly lines in the editor, as the IDE cannot understand
>     the new grammar.
>
>     Cheers
>     Maurizio
>
>
>     On 14/09/17 09:30, Razvan Minciuna wrote:
>>     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 the configuration image and tell me if I´m missing
>>     something
>>     https://lh4.googleusercontent.com/CSZiq3gMYzTe3g9g2Edjvz0c0GgUguHo-95HRgbzGpiTFLoC8J9XOmFUM_hdWFplYwHg0efn=w1920-h1106
>>     <https://lh4.googleusercontent.com/CSZiq3gMYzTe3g9g2Edjvz0c0GgUguHo-95HRgbzGpiTFLoC8J9XOmFUM_hdWFplYwHg0efn=w1920-h1106>
>>
>>     Regards
>>     Razvan
>>
>>
>>     On Wed, Sep 13, 2017 at 10:18 PM, Maurizio Cimadamore
>>     <maurizio.cimadamore at oracle.com
>>     <mailto: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
>>         <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