[jira] [Commented] (NETBEANS-2622) gradle project seams always taken the default JDK

2019-06-08 Thread JIRA


[ 
https://issues.apache.org/jira/browse/NETBEANS-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16859216#comment-16859216
 ] 

Andreas Eberhöfer commented on NETBEANS-2622:
-

It is working now, thanks

> gradle project seams always taken the default JDK
> -
>
> Key: NETBEANS-2622
> URL: https://issues.apache.org/jira/browse/NETBEANS-2622
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.0
>Reporter: Andreas Eberhöfer
>Assignee: Laszlo Kishalmi
>Priority: Minor
> Attachments: JDKTest.tar.gz, netbeans_jdk.png
>
>
> Hi,
> I start netbeans with JDK 10, set in the `etc/netbeans.conf` the jdkhome 
> path. Now I create a new gradle project and set in the `build.gradle` 
> ```
> sourceCompatibility = 11
> targetCompatibility = 11
> ```
> In my code I use a JDK 11 API like
> ```
> Path p = Path.of(".");
> ```
> This won't compile. 
> I added a JDK 11 to netbeans and change under 
> `Properies->Build->Compile->Java Platform` to JDK 11. It still does not 
> compile. 
> After a restart, it still does not compile.
>  I changed the jdkhome in `etc/netbeans.conf` to the JDK 11. After a restart 
> it compiles. 
> Not a big deal, but maybe you should have a look at it. To me it seams like 
> gradle project always takes the default JDK.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-2622) gradle project seams always taken the default JDK

2019-06-07 Thread Laszlo Kishalmi (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16859094#comment-16859094
 ] 

Laszlo Kishalmi commented on NETBEANS-2622:
---

Can you rest it with the recent patch for NETBEANS-2004?
You may get it installing the netbeans-dev Snap package (that keeps you on the 
edge): sudo snap install netbeans-dev --classic

> gradle project seams always taken the default JDK
> -
>
> Key: NETBEANS-2622
> URL: https://issues.apache.org/jira/browse/NETBEANS-2622
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.0
>Reporter: Andreas Eberhöfer
>Assignee: Laszlo Kishalmi
>Priority: Minor
> Attachments: JDKTest.tar.gz, netbeans_jdk.png
>
>
> Hi,
> I start netbeans with JDK 10, set in the `etc/netbeans.conf` the jdkhome 
> path. Now I create a new gradle project and set in the `build.gradle` 
> ```
> sourceCompatibility = 11
> targetCompatibility = 11
> ```
> In my code I use a JDK 11 API like
> ```
> Path p = Path.of(".");
> ```
> This won't compile. 
> I added a JDK 11 to netbeans and change under 
> `Properies->Build->Compile->Java Platform` to JDK 11. It still does not 
> compile. 
> After a restart, it still does not compile.
>  I changed the jdkhome in `etc/netbeans.conf` to the JDK 11. After a restart 
> it compiles. 
> Not a big deal, but maybe you should have a look at it. To me it seams like 
> gradle project always takes the default JDK.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-2622) gradle project seams always taken the default JDK

2019-06-01 Thread Laszlo Kishalmi (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16853795#comment-16853795
 ] 

Laszlo Kishalmi commented on NETBEANS-2622:
---

I see something, tough it needs to be tested with NETBEANS-2004 patch.

Thank for the sample app.

> gradle project seams always taken the default JDK
> -
>
> Key: NETBEANS-2622
> URL: https://issues.apache.org/jira/browse/NETBEANS-2622
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.0
>Reporter: Andreas Eberhöfer
>Assignee: Laszlo Kishalmi
>Priority: Minor
> Attachments: JDKTest.tar.gz, netbeans_jdk.png
>
>
> Hi,
> I start netbeans with JDK 10, set in the `etc/netbeans.conf` the jdkhome 
> path. Now I create a new gradle project and set in the `build.gradle` 
> ```
> sourceCompatibility = 11
> targetCompatibility = 11
> ```
> In my code I use a JDK 11 API like
> ```
> Path p = Path.of(".");
> ```
> This won't compile. 
> I added a JDK 11 to netbeans and change under 
> `Properies->Build->Compile->Java Platform` to JDK 11. It still does not 
> compile. 
> After a restart, it still does not compile.
>  I changed the jdkhome in `etc/netbeans.conf` to the JDK 11. After a restart 
> it compiles. 
> Not a big deal, but maybe you should have a look at it. To me it seams like 
> gradle project always takes the default JDK.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-2622) gradle project seams always taken the default JDK

2019-06-01 Thread JIRA


[ 
https://issues.apache.org/jira/browse/NETBEANS-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16853712#comment-16853712
 ] 

Andreas Eberhöfer commented on NETBEANS-2622:
-

Sorry my description was not so good. Maybe a Screenshot helps to clarify. You 
can see that the build was successful and in the Java Dependencies is my JDK 
11, but the editor shows an error, because it can not find the symbol 
"of(String)" which is part of JDK 11. I started the IDE with Java 10, when I 
configure Java 11 in etc/netbeans.conf everything is good. So for me it seams, 
that the IDE only use the default JDK and not the one that I have configured 
for the project.

[^JDKTest.tar.gz]
 !netbeans_jdk.png!

> gradle project seams always taken the default JDK
> -
>
> Key: NETBEANS-2622
> URL: https://issues.apache.org/jira/browse/NETBEANS-2622
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.0
>Reporter: Andreas Eberhöfer
>Assignee: Laszlo Kishalmi
>Priority: Minor
> Attachments: JDKTest.tar.gz, netbeans_jdk.png
>
>
> Hi,
> I start netbeans with JDK 10, set in the `etc/netbeans.conf` the jdkhome 
> path. Now I create a new gradle project and set in the `build.gradle` 
> ```
> sourceCompatibility = 11
> targetCompatibility = 11
> ```
> In my code I use a JDK 11 API like
> ```
> Path p = Path.of(".");
> ```
> This won't compile. 
> I added a JDK 11 to netbeans and change under 
> `Properies->Build->Compile->Java Platform` to JDK 11. It still does not 
> compile. 
> After a restart, it still does not compile.
>  I changed the jdkhome in `etc/netbeans.conf` to the JDK 11. After a restart 
> it compiles. 
> Not a big deal, but maybe you should have a look at it. To me it seams like 
> gradle project always takes the default JDK.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



[jira] [Commented] (NETBEANS-2622) gradle project seams always taken the default JDK

2019-05-31 Thread Laszlo Kishalmi (JIRA)


[ 
https://issues.apache.org/jira/browse/NETBEANS-2622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16853541#comment-16853541
 ] 

Laszlo Kishalmi commented on NETBEANS-2622:
---

Could you provide some logs as well, like Gradle output with stack trace, IDE 
logs, or a sample project would be welcome.

Also please note whenever Gradle tries to retrieve information from your 
project it always uses the default JDK (this is how Gradle works.)

> gradle project seams always taken the default JDK
> -
>
> Key: NETBEANS-2622
> URL: https://issues.apache.org/jira/browse/NETBEANS-2622
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 11.0
>Reporter: Andreas Eberhöfer
>Assignee: Laszlo Kishalmi
>Priority: Minor
>
> Hi,
> I start netbeans with JDK 10, set in the `etc/netbeans.conf` the jdkhome 
> path. Now I create a new gradle project and set in the `build.gradle` 
> ```
> sourceCompatibility = 11
> targetCompatibility = 11
> ```
> In my code I use a JDK 11 API like
> ```
> Path p = Path.of(".");
> ```
> This won't compile. 
> I added a JDK 11 to netbeans and change under 
> `Properies->Build->Compile->Java Platform` to JDK 11. It still does not 
> compile. 
> After a restart, it still does not compile.
>  I changed the jdkhome in `etc/netbeans.conf` to the JDK 11. After a restart 
> it compiles. 
> Not a big deal, but maybe you should have a look at it. To me it seams like 
> gradle project always takes the default JDK.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists