Re: Become an early Java 9 expert: AJUG + vJUG + JUGs Worldwide Hackday Feedback on JDK 9 EA

2017-09-22 Thread Mani Sarkar
Thanks Alex for the response, and clarifying the question further with your
answer.

There a few issues reported as well, would you want to comment on them,
should I put them on a separate thread for further discussions?

Cheers,
Mani


On Wed, 20 Sep 2017 at 02:54 Alex Buckley <alex.buck...@oracle.com> wrote:

> Hi Mani,
>
> On 9/19/2017 2:55 PM, Mani Sarkar wrote:
> > Last month (19th August 2017) AJUG and a number of JUGs worldwide with
> the
> > help and support from vJUG, re-ran the  "Become an early Java 9 expert"
> > hackday.
>
> Thank you AJUG and vJUG!
>
> > You can find the feedback gathered in
> http://bit.ly/J9HackDay-AJUG-feedback,
> > we have been trailing JDK 9 EA b181 (RC1).
>
> A lot of feedback seems to boil down to "JDK command line tools are not
> so easy to use; I want my IDE!". I don't mean to make light of people's
> usability issues, but the module-related paths and flags in JDK 9 tools
> tend to operate along similar lines as the paths and flags in JDK 8
> tools -- it's just that a lot of people haven't set ANY paths and flags
> for a long time.
>
> I see there were some more open-ended questions and this one in
> particular caught my attention:
>
> -
> Do I need to convert a legacy Java program to use named modules in order
> to take advantage of the smaller images that jlink can create?
>
> Mani: You will have to convert your applications to use Java 9’s modules
> system in order to take advantage of JLink fully, although please play
> around with older legacy apps to see what JLink produces (most likely
> the whole JDK and not modularised pieces).
>
> Simon: create an empty module with module-info.java and handcraft the
> dependencies using requires and have jlink compile it. This is
> experimental, would need to be tested to see how it works.
> -
>
> The direct answer to the question is "No, you do not need to convert a
> legacy Java program to use named modules in order to take advantage of
> the smaller images that jlink can create."
>
> The Java runtime that's present in even the smallest image (just
> java.base) still lets you to put your pre-existing JAR files on the
> classpath and run them with java -cp. You do not need to turn your JAR
> files into named modules. Even as traditional JAR files, they have
> access to all the APIs that you would expect from such an image.
> (Obviously if your JAR files try to use Swing on an image built from
> just java.base, that won't work.) The reduced footprint and security
> surface of the smaller image is plainly an advantage from jlink.
>
> Alex
>
-- 
@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!*


Re: Become an early Java 9 expert: AJUG + vJUG + JUGs Worldwide Hackday Feedback on JDK 9 EA

2017-09-19 Thread Mani Sarkar
Adding hubert.p...@gmail.com, vaslab...@gmail.com, mgr...@markgrand.com to
the conversation.

On Tue, 19 Sep 2017 at 22:55 Mani Sarkar <sadhak...@gmail.com> wrote:

> Hi all,
>
> My apologies for the delayed message, as everyone is getting ready for
> JavaOne and also busy with working on JDK 9 RC1 feedback since last month.
>
> Last month (19th August 2017) AJUG and a number of JUGs worldwide with
> the help and support from vJUG, re-ran the  "Become an early Java 9 expert"
> hackday.
>
> You can find the feedback gathered in
> http://bit.ly/J9HackDay-AJUG-feedback, we have been trailing JDK 9 EA
> b181 (RC1).
>
> I hope you will be able to make good use of the feedback and post your
> responses in the doc, I could also post the individual issues as separate
> messages if they become discussion worthy.
>
> Like the previous time, points that need addressing are marked with a
> rightwards arrowhead ( ➣ ) - we have had three categories of feedbacks
> namely *Potential bugs, Suggestions* and *Queries* about the different
> aspects of Jigsaw & Java 9.
>
> Please let me know if any other individuals or lists need to be informed
> about this.
>
> Thanks.
>
> Cheers,
> Mani
> --
> @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!*
>
-- 
@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!*


Become an early Java 9 expert: AJUG + vJUG + JUGs Worldwide Hackday Feedback on JDK 9 EA

2017-09-19 Thread Mani Sarkar
Hi all,

My apologies for the delayed message, as everyone is getting ready for
JavaOne and also busy with working on JDK 9 RC1 feedback since last month.

Last month (19th August 2017) AJUG and a number of JUGs worldwide with the
help and support from vJUG, re-ran the  "Become an early Java 9 expert"
hackday.

You can find the feedback gathered in http://bit.ly/J9HackDay-AJUG-feedback,
we have been trailing JDK 9 EA b181 (RC1).

I hope you will be able to make good use of the feedback and post your
responses in the doc, I could also post the individual issues as separate
messages if they become discussion worthy.

Like the previous time, points that need addressing are marked with a
rightwards arrowhead ( ➣ ) - we have had three categories of feedbacks
namely *Potential bugs, Suggestions* and *Queries* about the different
aspects of Jigsaw & Java 9.

Please let me know if any other individuals or lists need to be informed
about this.

Thanks.

Cheers,
Mani
-- 
@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!*


Re: TestNG build failing with JDK9 Jigsaw due to Gradle

2015-11-02 Thread Mani Sarkar
Hi Rory,

TestNG has an alternative build system which we will try to use to build it
using the Jigsaw binary.

How do you report such bugs to Gradle / Groovy ? Is it simpler if you
reported to them on their mailing list ? Let me know what works best, this
is fairly important as other Gradle users might have similar issues.

Cheers,
Mani

On Mon, Nov 2, 2015 at 8:51 AM, Rory O'Donnell <rory.odonn...@oracle.com>
wrote:

> I can't find a bug in Gradle's JIRA on this issue, Mani do you want to log
> an issue there ?
>
> Rgds,Rory
>
>
> On 31/10/2015 13:56, Alan Bateman wrote:
>
>> On 31/10/2015 12:50, Mani Sarkar wrote:
>>
>>> Hi Rory,
>>>
>>> Do you know of a version of Gradle or a EA version which is JDK 9 Jigsaw
>>> compatible, we get these failures when building:
>>>
>>>
>>> https://adopt-openjdk.ci.cloudbees.com/view/Quality%20Outreach/job/TestNG-Jigsaw/5/console
>>>
>>> Caused by: java.lang.IllegalAccessException: class
>> org.gradle.internal.reflect.DirectInstantiator cannot access class
>> com.sun.tools.javac.api.JavacTool (in module jdk.compiler) because module
>> jdk.compiler does not export package com.sun.tools.javac.api to > module @b7f23d9>
>> at
>> org.gradle.internal.reflect.DirectInstantiator.newInstance(DirectInstantiator.java:49)
>> ... 86 more
>>
>> We should at least check if there is a bug in the Gradle JIRA for this.
>> It can be worked around by configuring the compileJava options to fork
>> javac but you might not want to do that.
>>
>> The other issue with Gradle that we know about is the ClassCastException
>> when attempting to run tests, this is tracked here:
>> https://issues.gradle.org/browse/GRADLE-3287
>>
>> -Alan.
>>
>>
> --
> Rgds,Rory O'Donnell
> Quality Engineering Manager
> Oracle EMEA , Dublin, Ireland
>
>


-- 
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*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 2016:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*


Re: Jigsaw Hackday in September

2015-09-19 Thread Mani Sarkar
Also want to add that the attendees last weekend, also contributed a few
more examples for us to play with, see
https://github.com/AdoptOpenJDK/jdk9-jigsaw/ - if you guys like it, it
could be made part of the Quick Starter Guide.

Once again thanks to our host John Stevenson from Heroku, for the space and
food provided, at the SalesForce office in London.

Cheers,
Mani

On Fri, Sep 18, 2015 at 10:30 PM, Mani Sarkar <sadhak...@gmail.com> wrote:

> Hi all,
>
> Like every month, this month we had the Adopt OpenJDK hackday last weekend
> (12th September) in London, see
> http://www.meetup.com/Londonjavacommunity/events/224258725/.
>
> We also had the good company of Alan Bateman (from Oracle) - thanks Alan
> for all your support and for answering our various queries about Jigsaw.
>
> We have managed to gather some feedback from the attendees:
>
> https://docs.google.com/document/d/1KlumN74IGt-TU-Md3Fn5h4sXHa75RApWNLszUTVp-DE/edit
> (thanks to all those who contributed to this doc)
>
> Everything we used and gathering use the hackday is in this document, its
> open for further amendments if we have updates.
>
> We performed a number of builds - which failed then, but looking at the
> messages on the Jigsaw-dev mailing list, there might be some good
> resolution to those issues.
>
> Thanks again, I hope the feedback gathered is of help to you.
>
> Regards,
> Mani
>
> --
> @theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
> <http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
> (@adoptopenjdk & @adoptajsr programs)
> *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 2016:* http://www.devoxx.co.uk/
>
> *Don't chase success, rather aim for "Excellence", and success will come
> chasing after you!*
>



-- 
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*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 2016:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*


Jigsaw Hackday in September

2015-09-18 Thread Mani Sarkar
Hi all,

Like every month, this month we had the Adopt OpenJDK hackday last weekend
(12th September) in London, see
http://www.meetup.com/Londonjavacommunity/events/224258725/.

We also had the good company of Alan Bateman (from Oracle) - thanks Alan
for all your support and for answering our various queries about Jigsaw.

We have managed to gather some feedback from the attendees:
https://docs.google.com/document/d/1KlumN74IGt-TU-Md3Fn5h4sXHa75RApWNLszUTVp-DE/edit
(thanks to all those who contributed to this doc)

Everything we used and gathering use the hackday is in this document, its
open for further amendments if we have updates.

We performed a number of builds - which failed then, but looking at the
messages on the Jigsaw-dev mailing list, there might be some good
resolution to those issues.

Thanks again, I hope the feedback gathered is of help to you.

Regards,
Mani

-- 
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*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 2016:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*


Project Jigsaw JDK & JRE binaries + test results

2015-09-14 Thread Mani Sarkar
Hi all,

Project Jigsaw JDK & JRE binaries + test results are now available on the
Adopt OpenJDK Cloudbees Build farm:

https://adopt-openjdk.ci.cloudbees.com/view/OpenJDK/job/project-jigsaw-openjdk-1.9-linux-x86_64/lastSuccessfulBuild/artifact/

Please share with your communities.

Cheers,
Mani

-- 
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*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 2016:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*


Re: Project Jigsaw JDK & JRE binaries + test results

2015-09-14 Thread Mani Sarkar
Hi Alan,

Thanks for the update - I recollect Jon's email about jtreg needing some
work.

Cheers,
Mani

On Mon, Sep 14, 2015 at 12:51 PM, Alan Bateman <alan.bate...@oracle.com>
wrote:

> On 14/09/2015 12:30, Mani Sarkar wrote:
>
>> Hi all,
>>
>> Project Jigsaw JDK & JRE binaries + test results are now available on the
>> Adopt OpenJDK Cloudbees Build farm:
>>
>>
>> https://adopt-openjdk.ci.cloudbees.com/view/OpenJDK/job/project-jigsaw-openjdk-1.9-linux-x86_64/lastSuccessfulBuild/artifact/
>>
>>
>> Hi Mani,
>
> There are patches needed to jtreg to support @modules and @compile/module
> that aren't in code-tools/jtreg yet. Hopefully soon and that should give
> you much better test results.
>
> The other issue is that these test runs are running tests that are
> temporarily excluded by jdk/test/ProblemList.jake.txt needed and
> langtools/test/ProblemList.jake.txt. To skip these tests requires
> specifying these files to jtreg -exclude. As to why there are excluded
> tests, then it's partly that there is more work to do on jtreg and partly
> other issues (both product and test issues). Where possible, then the
> exclude list has the JIRA issue tracking the reason why the test is
> temporarily excluded.
>
> -Alan.
>
>


-- 
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*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 2016:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*


Re: Project Jigsaw: Early-Access Builds available on jdk9.java.net/jigsaw

2015-09-11 Thread Mani Sarkar
Looking forward to it - always a pleasure to help.

Cheers,
Mani

On Fri, Sep 11, 2015 at 11:35 AM, Alan Bateman <alan.bate...@oracle.com>
wrote:

>
>
> On 10/09/2015 22:12, Mani Sarkar wrote:
>
>> Jim you stole my thunder and lightening - that was it.
>>
>> Thanks Mani, thanks Jim, this is fixed on the QS page now. I've no doubt
> that in time that there will be much better examples and tutorials, that
> page is just a start.
>
> -Alan
>



-- 
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*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 2016:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*


Re: Another Quick Start Guide Nitpick

2015-09-10 Thread Mani Sarkar
Jim,

Yes that's another issue there. I meant to report - already switched it
around in my bash scripts see the 5_Missing_xxx folders.

One more thing while we are at it - wherever possible in the examples we
need to mention that the javac and java commands should be executed from
outside the src folder - its obviously but just to be a bit more clear, as
these are new things we are learning about JDK9.

Cheers,
Mani

On Thu, Sep 10, 2015 at 10:24 PM, Jim Connors <james.conn...@oracle.com>
wrote:

> One more thing while I'm at it:
>
> In the "Missing requires or missing exports" section:
> http://openjdk.java.net/projects/jigsaw/quick-start#missing
>
> We now fix this module declaration but introduce a different mistake, this
> time we omit the exports from the org.astro module declaration:
>
> $ cat src/com.greetings/module-info.java
> module com.greetings {
> requires org.astro;
> }
> $ cat src/org.astro/module-info.java
> module org.astro {
> // exports org.astro;
> }
>
>
> Prior to issuing the javac on the greetings.com module (with anticipated
> error)
>
> $ javac -modulepath mods -d mods/com.greetings \
>src/com.greetings/module-info.java 
> src/com.greetings/com/greetings/Main.java
>
>
> I think the org.astro module has to be rebuilt first.  Otherwise no error
> will appear.
>
> $ javac -d mods/org.astro \
> src/org.astro/module-info.java src/org.astro/org/astro/World.java
>
> Make sense?
> -- Jim C
>



-- 
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*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 2016:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*


Re: Project Jigsaw: Early-Access Builds available on jdk9.java.net/jigsaw

2015-09-10 Thread Mani Sarkar
Jim you stole my thunder and lightening - that was it.

Cheers,
Mani

On Thu, Sep 10, 2015 at 9:55 PM, Jim Connors <james.conn...@oracle.com>
wrote:

> On 9/10/2015 4:30 PM, Alan Bateman wrote:
>
> I don't immediately see the error in the services example (I need to look
> closer) but I think you have a point that this example jumps ahead too
> much. Good idea to get the examples into a repo with scripts.
>
>
> In the Services Section:
> http://openjdk.java.net/projects/jigsaw/quick-start#services
>
> $ cat src/com.greetings/com/greetings/Main.java
> package com.greetings;
>
> import com.socket.NetworkSocket;
>
> public class Main {
> public static void main(String[] args) {
> NetworkSocket s = NetworkSocket.open();
> }
> }
>
> When you run the com.greetings.Main class via:
>
> $ java -mp mods -m com.greetings/com.greetings.Main
>
> The Quick Start guide shows the output as:
>
> class org.fastsocket.FastNetworkSocket
>
> The Main.java file referenced above prints nothing (at least in my case),
> would it have to be modified slightly, something like:
>
> $ cat src/com.greetings/com/greetings/Main.java
> package com.greetings;
>
> import com.socket.NetworkSocket;
>
> public class Main {
> public static void main(String[] args) {
> NetworkSocket s = NetworkSocket.open();
> System.out.println(s.getClass().toString());
>}
> }
>
> -- Jim C
>



-- 
@theNeomatrix369 <http://twitter.com/theNeomatrix369>*  |  **Blog
<http://neomatrix369.wordpress.com>**  |  *LJC Associate & LJC Advocate
(@adoptopenjdk & @adoptajsr programs)
*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 2016:* http://www.devoxx.co.uk/

*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*