You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by John Kostaras <jk...@gmail.com> on 2018/01/02 23:34:00 UTC

Re: Debugging issues in nightly build

Hi Kirk. Could you be a bit more specific about the steps you follow?

I assume that you want to create a new NetBeans module project called
'HelloWorld'.
Menu File -> New -> NetBeans Modules -> Module -> Next

and in the 2nd step of the wizard you select 'Standalone Module' and
'VisualVM 1.4' as your platform, correct?

I created an empty project and built it without any issues on a Mac.

Could you please verify that
incubator-netbeans/nbbuild/netbeans/etc/netbeans.conf

contains:

netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/"

or something? Otherwise could you send me your project to try it in my mac?

John.



On 31 December 2017 at 12:57, Geertjan Wielenga <
geertjan.wielenga@googlemail.com> wrote:

> Just to be clear, can you point to what you're using as a nightly
> build, i.e., where are you getting it from exactly?
>
> Thanks,
>
> Gj
>
> On Sun, Dec 31, 2017 at 12:47 PM, Kirk Pepperdine <ki...@kodewerk.com>
> wrote:
> > Hi all,
> >
> > I’ve started testing NetBeans nightly build using VisualVM 1.4 as a
> platform. At the moment I am unable to run my simple VisualVM plugin inside
> the IDE. I’m able to create a NBM, load it into VVM and it all checks out.
> I’ve now done this on two different OS X machines.
> >
> > The error that I’m facing is below. I’ve set idk_home in both the
> netbeans and visualvm config files. I’ve also started netbeans from the
> command line adding —jdkhome. Would love to help debug this one.
> >
> > — Kirk
> >
> >
> > ant -f /Users/kirk/NetBeansProjects/helloworld -Dcontinue.after.failing.tests=true
> run
> > taskdefs:
> > common-init:
> > projectized-common.basic-init:
> > basic-init:
> > files-init:
> > nbm-license-init:
> > build-init:
> > Scanning for modules in /Users/kirk/opt/visualvm_14/platform
> > Scanning for modules in /Users/kirk/opt/visualvm_14/profiler
> > Scanning for modules in /Users/kirk/opt/visualvm_14/visualvm
> > init:
> > up-to-date:
> > compile:
> > jar-prep:
> > jar:
> > netbeans-extra:
> > javahelp:
> > module-auto-deps:
> > release:
> > module-xml-regular:
> > module-xml-autoload:
> > module-xml-eager:
> > chmod-executables:
> > verify-class-linkage:
> > 0 file(s) have been successfully validated.
> > netbeans:
> > Generating Auto Update information for com.kodewerk.visualvm.helloworld
> > run:
> > run.run:
> > Cannot find java. Please use the --jdkhome switch.
> > Result: 2
> > BUILD SUCCESSFUL (total time: 0 seconds)
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: Debugging issues in nightly build

Posted by John Kostaras <jk...@gmail.com>.
Thank you for the fixes Florian. After having upgraded to jdk-9.0.4 I
encountered the same issues as Kirk.

Applying your fixes resolved the issue and I could continue with NetCAT
testing.

+1 to merge them.

Thanks.

On 7 January 2018 at 01:23, Florian Vogler <fl...@gmail.com> wrote:

> Hi all,
>
> I forgot to mention another quick fix:
> Running netbeans on jdk8 and want run a suite project with a configured
> jdk9 platform (on MacOS),
> I had to disable the class loading check for "java.lang.Object". (Running
> ant on jdk8, jmod files are not recognised as classpath entries)
> See ant traget '-jdk-preinit' in 'harness/jdk.xml'
> ...
>         <condition property="nbjdk.valid">
>             <and>
>                 <available file="${nbjdk.home}" type="dir"/>
>                 <available file="${nbjdk.javac}" type="file"/>
>                 <available file="${nbjdk.java}" type="file"/>
>                 <available file="${nbjdk.javadoc}" type="file"/>
>                 <available classname="java.lang.Object"
> classpath="${nbjdk.bootclasspath}" ignoresystemclasses="true"/>
>             </and>
>         </condition>
> ...
> Remove/Comment out following line:
>                 <available classname="java.lang.Object"
> classpath="${nbjdk.bootclasspath}" ignoresystemclasses="true"/>
>
> Overall I think a deeper look at 'harness/jdk.xml' is needed.
>
> Regards
> Florian
>
>
>
> 2018-01-07 0:49 GMT+01:00 Florian Vogler <fl...@gmail.com>:
>
> > Hi all,
> > I had a same error running a suite project on MacOS with jdk9 as well.
> > The problem is a wrong nbjdk.home detection on MacOS for jdk9.
> >
> > See ant target '-jdk-default' in 'harness/jdk.xml'.
> > ...
> >         <!-- Mac OS X -->
> >         <condition property="nbjdk.home" value="${java.home}">
> >             <available file="${java.home}/../Classes/classes.jar"
> > type="file"/>
> >         </condition>
> > ...
> > with following properties:
> >     java.home=/Library/Java/JavaVirtualMachines/jdk-9.0.1.
> > jdk/Contents/Home
> >     jdk.home=/Library/Java/JavaVirtualMachines/jdk-9.0.1.
> jdk/Contents/Home
> >     java.home.parent=/Library/Java/JavaVirtualMachines/jdk-
> > 9.0.1.jdk/Contents
> >
> > Following change works for me:
> > (Check for javac to ensure jdk, but check for java might be good enough)
> > ...
> >         <!-- Mac OS X -->
> >         <condition property="nbjdk.home" value="${java.home}">
> >             <available file="${java.home}/bin/javac" type="file"/>
> >         </condition>
> > ...
> >
> > It was just a quick fix two days ago.
> > Before providing a pull request I need to test with other JRE and JDK
> > versions
> > and check for already existing jira issues.
> >
> > Regards
> > Florian
> >
> >
> >
> > 2018-01-04 15:37 GMT+01:00 Geertjan Wielenga <
> > geertjan.wielenga@googlemail.com>:
> >
> >> Hi Kirk,
> >>
> >> Can you point to where you're getting the nightly build from? That
> >> might be the start of tracking the problem down, just to know what
> >> we're referring to the same thing.
> >>
> >> Gj
> >>
> >> On Thu, Jan 4, 2018 at 3:18 PM, Kirk Pepperdine
> >> <ki...@gmail.com> wrote:
> >> > Hi John,
> >> >
> >> > The problem was, I was using Java 9 as my project IDE. It all works in
> >> 8 but not in 9. The message is unfortunate as it lead me on a wild goose
> >> chase. Changing to Java 8 solved the problem. I’ll see if I can sort out
> >> *why* we got this error message and not a more helpful one.
> >> >
> >> > Kind regards,
> >> > Kirk
> >> >
> >> >> On Jan 3, 2018, at 12:34 AM, John Kostaras <jk...@gmail.com>
> >> wrote:
> >> >>
> >> >> Hi Kirk. Could you be a bit more specific about the steps you follow?
> >> >>
> >> >> I assume that you want to create a new NetBeans module project called
> >> >> 'HelloWorld'.
> >> >> Menu File -> New -> NetBeans Modules -> Module -> Next
> >> >>
> >> >> and in the 2nd step of the wizard you select 'Standalone Module' and
> >> >> 'VisualVM 1.4' as your platform, correct?
> >> >>
> >> >> I created an empty project and built it without any issues on a Mac.
> >> >>
> >> >> Could you please verify that
> >> >> incubator-netbeans/nbbuild/netbeans/etc/netbeans.conf
> >> >>
> >> >> contains:
> >> >>
> >> >> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-9.0.
> >> 1.jdk/Contents/Home/"
> >> >>
> >> >> or something? Otherwise could you send me your project to try it in
> my
> >> mac?
> >> >>
> >> >> John.
> >> >>
> >> >>
> >> >>
> >> >> On 31 December 2017 at 12:57, Geertjan Wielenga <
> >> >> geertjan.wielenga@googlemail.com> wrote:
> >> >>
> >> >>> Just to be clear, can you point to what you're using as a nightly
> >> >>> build, i.e., where are you getting it from exactly?
> >> >>>
> >> >>> Thanks,
> >> >>>
> >> >>> Gj
> >> >>>
> >> >>> On Sun, Dec 31, 2017 at 12:47 PM, Kirk Pepperdine <
> kirk@kodewerk.com>
> >> >>> wrote:
> >> >>>> Hi all,
> >> >>>>
> >> >>>> I’ve started testing NetBeans nightly build using VisualVM 1.4 as a
> >> >>> platform. At the moment I am unable to run my simple VisualVM plugin
> >> inside
> >> >>> the IDE. I’m able to create a NBM, load it into VVM and it all
> checks
> >> out.
> >> >>> I’ve now done this on two different OS X machines.
> >> >>>>
> >> >>>> The error that I’m facing is below. I’ve set idk_home in both the
> >> >>> netbeans and visualvm config files. I’ve also started netbeans from
> >> the
> >> >>> command line adding —jdkhome. Would love to help debug this one.
> >> >>>>
> >> >>>> — Kirk
> >> >>>>
> >> >>>>
> >> >>>> ant -f /Users/kirk/NetBeansProjects/helloworld
> >> -Dcontinue.after.failing.tests=true
> >> >>> run
> >> >>>> taskdefs:
> >> >>>> common-init:
> >> >>>> projectized-common.basic-init:
> >> >>>> basic-init:
> >> >>>> files-init:
> >> >>>> nbm-license-init:
> >> >>>> build-init:
> >> >>>> Scanning for modules in /Users/kirk/opt/visualvm_14/platform
> >> >>>> Scanning for modules in /Users/kirk/opt/visualvm_14/profiler
> >> >>>> Scanning for modules in /Users/kirk/opt/visualvm_14/visualvm
> >> >>>> init:
> >> >>>> up-to-date:
> >> >>>> compile:
> >> >>>> jar-prep:
> >> >>>> jar:
> >> >>>> netbeans-extra:
> >> >>>> javahelp:
> >> >>>> module-auto-deps:
> >> >>>> release:
> >> >>>> module-xml-regular:
> >> >>>> module-xml-autoload:
> >> >>>> module-xml-eager:
> >> >>>> chmod-executables:
> >> >>>> verify-class-linkage:
> >> >>>> 0 file(s) have been successfully validated.
> >> >>>> netbeans:
> >> >>>> Generating Auto Update information for
> com.kodewerk.visualvm.hellowor
> >> ld
> >> >>>> run:
> >> >>>> run.run:
> >> >>>> Cannot find java. Please use the --jdkhome switch.
> >> >>>> Result: 2
> >> >>>> BUILD SUCCESSFUL (total time: 0 seconds)
> >> >>>> ------------------------------------------------------------
> >> ---------
> >> >>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incub
> >> ator.apache.org
> >> >>>> For additional commands, e-mail: dev-help@netbeans.incubator.ap
> >> ache.org
> >> >>>>
> >> >>>> For further information about the NetBeans mailing lists, visit:
> >> >>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >> >>>>
> >> >>>>
> >> >>>>
> >> >>>
> >> >>> ------------------------------------------------------------
> ---------
> >> >>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.
> incubator.apache.org
> >> >>> For additional commands, e-mail: dev-help@netbeans.incubator.ap
> >> ache.org
> >> >>>
> >> >>> For further information about the NetBeans mailing lists, visit:
> >> >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >> >>>
> >> >>>
> >> >>>
> >> >>>
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> >> > For additional commands, e-mail: dev-help@netbeans.incubator.
> apache.org
> >> >
> >> > For further information about the NetBeans mailing lists, visit:
> >> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >> >
> >> >
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> >> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>
> >>
> >>
> >>
> >
> >
> > --
> > Software Engineer and Developer
> > Java User Group am Bodensee
> > NetBeans Dream Team Member and Contributor
> >
> > http://www.jug-bodensee.de/
> > http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
> > http://www.netbeans.org
> >
>
>
>
> --
> Software Engineer and Developer
> Java User Group am Bodensee
> NetBeans Dream Team Member and Contributor
>
> http://www.jug-bodensee.de/
> http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
> http://www.netbeans.org
>

Re: Debugging issues in nightly build

Posted by Florian Vogler <fl...@gmail.com>.
Hi all,

I forgot to mention another quick fix:
Running netbeans on jdk8 and want run a suite project with a configured
jdk9 platform (on MacOS),
I had to disable the class loading check for "java.lang.Object". (Running
ant on jdk8, jmod files are not recognised as classpath entries)
See ant traget '-jdk-preinit' in 'harness/jdk.xml'
...
        <condition property="nbjdk.valid">
            <and>
                <available file="${nbjdk.home}" type="dir"/>
                <available file="${nbjdk.javac}" type="file"/>
                <available file="${nbjdk.java}" type="file"/>
                <available file="${nbjdk.javadoc}" type="file"/>
                <available classname="java.lang.Object"
classpath="${nbjdk.bootclasspath}" ignoresystemclasses="true"/>
            </and>
        </condition>
...
Remove/Comment out following line:
                <available classname="java.lang.Object"
classpath="${nbjdk.bootclasspath}" ignoresystemclasses="true"/>

Overall I think a deeper look at 'harness/jdk.xml' is needed.

Regards
Florian



2018-01-07 0:49 GMT+01:00 Florian Vogler <fl...@gmail.com>:

> Hi all,
> I had a same error running a suite project on MacOS with jdk9 as well.
> The problem is a wrong nbjdk.home detection on MacOS for jdk9.
>
> See ant target '-jdk-default' in 'harness/jdk.xml'.
> ...
>         <!-- Mac OS X -->
>         <condition property="nbjdk.home" value="${java.home}">
>             <available file="${java.home}/../Classes/classes.jar"
> type="file"/>
>         </condition>
> ...
> with following properties:
>     java.home=/Library/Java/JavaVirtualMachines/jdk-9.0.1.
> jdk/Contents/Home
>     jdk.home=/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home
>     java.home.parent=/Library/Java/JavaVirtualMachines/jdk-
> 9.0.1.jdk/Contents
>
> Following change works for me:
> (Check for javac to ensure jdk, but check for java might be good enough)
> ...
>         <!-- Mac OS X -->
>         <condition property="nbjdk.home" value="${java.home}">
>             <available file="${java.home}/bin/javac" type="file"/>
>         </condition>
> ...
>
> It was just a quick fix two days ago.
> Before providing a pull request I need to test with other JRE and JDK
> versions
> and check for already existing jira issues.
>
> Regards
> Florian
>
>
>
> 2018-01-04 15:37 GMT+01:00 Geertjan Wielenga <
> geertjan.wielenga@googlemail.com>:
>
>> Hi Kirk,
>>
>> Can you point to where you're getting the nightly build from? That
>> might be the start of tracking the problem down, just to know what
>> we're referring to the same thing.
>>
>> Gj
>>
>> On Thu, Jan 4, 2018 at 3:18 PM, Kirk Pepperdine
>> <ki...@gmail.com> wrote:
>> > Hi John,
>> >
>> > The problem was, I was using Java 9 as my project IDE. It all works in
>> 8 but not in 9. The message is unfortunate as it lead me on a wild goose
>> chase. Changing to Java 8 solved the problem. I’ll see if I can sort out
>> *why* we got this error message and not a more helpful one.
>> >
>> > Kind regards,
>> > Kirk
>> >
>> >> On Jan 3, 2018, at 12:34 AM, John Kostaras <jk...@gmail.com>
>> wrote:
>> >>
>> >> Hi Kirk. Could you be a bit more specific about the steps you follow?
>> >>
>> >> I assume that you want to create a new NetBeans module project called
>> >> 'HelloWorld'.
>> >> Menu File -> New -> NetBeans Modules -> Module -> Next
>> >>
>> >> and in the 2nd step of the wizard you select 'Standalone Module' and
>> >> 'VisualVM 1.4' as your platform, correct?
>> >>
>> >> I created an empty project and built it without any issues on a Mac.
>> >>
>> >> Could you please verify that
>> >> incubator-netbeans/nbbuild/netbeans/etc/netbeans.conf
>> >>
>> >> contains:
>> >>
>> >> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-9.0.
>> 1.jdk/Contents/Home/"
>> >>
>> >> or something? Otherwise could you send me your project to try it in my
>> mac?
>> >>
>> >> John.
>> >>
>> >>
>> >>
>> >> On 31 December 2017 at 12:57, Geertjan Wielenga <
>> >> geertjan.wielenga@googlemail.com> wrote:
>> >>
>> >>> Just to be clear, can you point to what you're using as a nightly
>> >>> build, i.e., where are you getting it from exactly?
>> >>>
>> >>> Thanks,
>> >>>
>> >>> Gj
>> >>>
>> >>> On Sun, Dec 31, 2017 at 12:47 PM, Kirk Pepperdine <ki...@kodewerk.com>
>> >>> wrote:
>> >>>> Hi all,
>> >>>>
>> >>>> I’ve started testing NetBeans nightly build using VisualVM 1.4 as a
>> >>> platform. At the moment I am unable to run my simple VisualVM plugin
>> inside
>> >>> the IDE. I’m able to create a NBM, load it into VVM and it all checks
>> out.
>> >>> I’ve now done this on two different OS X machines.
>> >>>>
>> >>>> The error that I’m facing is below. I’ve set idk_home in both the
>> >>> netbeans and visualvm config files. I’ve also started netbeans from
>> the
>> >>> command line adding —jdkhome. Would love to help debug this one.
>> >>>>
>> >>>> — Kirk
>> >>>>
>> >>>>
>> >>>> ant -f /Users/kirk/NetBeansProjects/helloworld
>> -Dcontinue.after.failing.tests=true
>> >>> run
>> >>>> taskdefs:
>> >>>> common-init:
>> >>>> projectized-common.basic-init:
>> >>>> basic-init:
>> >>>> files-init:
>> >>>> nbm-license-init:
>> >>>> build-init:
>> >>>> Scanning for modules in /Users/kirk/opt/visualvm_14/platform
>> >>>> Scanning for modules in /Users/kirk/opt/visualvm_14/profiler
>> >>>> Scanning for modules in /Users/kirk/opt/visualvm_14/visualvm
>> >>>> init:
>> >>>> up-to-date:
>> >>>> compile:
>> >>>> jar-prep:
>> >>>> jar:
>> >>>> netbeans-extra:
>> >>>> javahelp:
>> >>>> module-auto-deps:
>> >>>> release:
>> >>>> module-xml-regular:
>> >>>> module-xml-autoload:
>> >>>> module-xml-eager:
>> >>>> chmod-executables:
>> >>>> verify-class-linkage:
>> >>>> 0 file(s) have been successfully validated.
>> >>>> netbeans:
>> >>>> Generating Auto Update information for com.kodewerk.visualvm.hellowor
>> ld
>> >>>> run:
>> >>>> run.run:
>> >>>> Cannot find java. Please use the --jdkhome switch.
>> >>>> Result: 2
>> >>>> BUILD SUCCESSFUL (total time: 0 seconds)
>> >>>> ------------------------------------------------------------
>> ---------
>> >>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incub
>> ator.apache.org
>> >>>> For additional commands, e-mail: dev-help@netbeans.incubator.ap
>> ache.org
>> >>>>
>> >>>> For further information about the NetBeans mailing lists, visit:
>> >>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> >>>>
>> >>>>
>> >>>>
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>> >>> For additional commands, e-mail: dev-help@netbeans.incubator.ap
>> ache.org
>> >>>
>> >>> For further information about the NetBeans mailing lists, visit:
>> >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> >>>
>> >>>
>> >>>
>> >>>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>> > For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>> >
>> > For further information about the NetBeans mailing lists, visit:
>> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> >
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>>
>
>
> --
> Software Engineer and Developer
> Java User Group am Bodensee
> NetBeans Dream Team Member and Contributor
>
> http://www.jug-bodensee.de/
> http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
> http://www.netbeans.org
>



-- 
Software Engineer and Developer
Java User Group am Bodensee
NetBeans Dream Team Member and Contributor

http://www.jug-bodensee.de/
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org

Re: Debugging issues in nightly build

Posted by Florian Vogler <fl...@gmail.com>.
Hi all,
I had a same error running a suite project on MacOS with jdk9 as well.
The problem is a wrong nbjdk.home detection on MacOS for jdk9.

See ant target '-jdk-default' in 'harness/jdk.xml'.
...
        <!-- Mac OS X -->
        <condition property="nbjdk.home" value="${java.home}">
            <available file="${java.home}/../Classes/classes.jar"
type="file"/>
        </condition>
...
with following properties:
    java.home=/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home
    jdk.home=/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home

java.home.parent=/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents

Following change works for me:
(Check for javac to ensure jdk, but check for java might be good enough)
...
        <!-- Mac OS X -->
        <condition property="nbjdk.home" value="${java.home}">
            <available file="${java.home}/bin/javac" type="file"/>
        </condition>
...

It was just a quick fix two days ago.
Before providing a pull request I need to test with other JRE and JDK
versions
and check for already existing jira issues.

Regards
Florian



2018-01-04 15:37 GMT+01:00 Geertjan Wielenga <
geertjan.wielenga@googlemail.com>:

> Hi Kirk,
>
> Can you point to where you're getting the nightly build from? That
> might be the start of tracking the problem down, just to know what
> we're referring to the same thing.
>
> Gj
>
> On Thu, Jan 4, 2018 at 3:18 PM, Kirk Pepperdine
> <ki...@gmail.com> wrote:
> > Hi John,
> >
> > The problem was, I was using Java 9 as my project IDE. It all works in 8
> but not in 9. The message is unfortunate as it lead me on a wild goose
> chase. Changing to Java 8 solved the problem. I’ll see if I can sort out
> *why* we got this error message and not a more helpful one.
> >
> > Kind regards,
> > Kirk
> >
> >> On Jan 3, 2018, at 12:34 AM, John Kostaras <jk...@gmail.com> wrote:
> >>
> >> Hi Kirk. Could you be a bit more specific about the steps you follow?
> >>
> >> I assume that you want to create a new NetBeans module project called
> >> 'HelloWorld'.
> >> Menu File -> New -> NetBeans Modules -> Module -> Next
> >>
> >> and in the 2nd step of the wizard you select 'Standalone Module' and
> >> 'VisualVM 1.4' as your platform, correct?
> >>
> >> I created an empty project and built it without any issues on a Mac.
> >>
> >> Could you please verify that
> >> incubator-netbeans/nbbuild/netbeans/etc/netbeans.conf
> >>
> >> contains:
> >>
> >> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-
> 9.0.1.jdk/Contents/Home/"
> >>
> >> or something? Otherwise could you send me your project to try it in my
> mac?
> >>
> >> John.
> >>
> >>
> >>
> >> On 31 December 2017 at 12:57, Geertjan Wielenga <
> >> geertjan.wielenga@googlemail.com> wrote:
> >>
> >>> Just to be clear, can you point to what you're using as a nightly
> >>> build, i.e., where are you getting it from exactly?
> >>>
> >>> Thanks,
> >>>
> >>> Gj
> >>>
> >>> On Sun, Dec 31, 2017 at 12:47 PM, Kirk Pepperdine <ki...@kodewerk.com>
> >>> wrote:
> >>>> Hi all,
> >>>>
> >>>> I’ve started testing NetBeans nightly build using VisualVM 1.4 as a
> >>> platform. At the moment I am unable to run my simple VisualVM plugin
> inside
> >>> the IDE. I’m able to create a NBM, load it into VVM and it all checks
> out.
> >>> I’ve now done this on two different OS X machines.
> >>>>
> >>>> The error that I’m facing is below. I’ve set idk_home in both the
> >>> netbeans and visualvm config files. I’ve also started netbeans from the
> >>> command line adding —jdkhome. Would love to help debug this one.
> >>>>
> >>>> — Kirk
> >>>>
> >>>>
> >>>> ant -f /Users/kirk/NetBeansProjects/helloworld
> -Dcontinue.after.failing.tests=true
> >>> run
> >>>> taskdefs:
> >>>> common-init:
> >>>> projectized-common.basic-init:
> >>>> basic-init:
> >>>> files-init:
> >>>> nbm-license-init:
> >>>> build-init:
> >>>> Scanning for modules in /Users/kirk/opt/visualvm_14/platform
> >>>> Scanning for modules in /Users/kirk/opt/visualvm_14/profiler
> >>>> Scanning for modules in /Users/kirk/opt/visualvm_14/visualvm
> >>>> init:
> >>>> up-to-date:
> >>>> compile:
> >>>> jar-prep:
> >>>> jar:
> >>>> netbeans-extra:
> >>>> javahelp:
> >>>> module-auto-deps:
> >>>> release:
> >>>> module-xml-regular:
> >>>> module-xml-autoload:
> >>>> module-xml-eager:
> >>>> chmod-executables:
> >>>> verify-class-linkage:
> >>>> 0 file(s) have been successfully validated.
> >>>> netbeans:
> >>>> Generating Auto Update information for com.kodewerk.visualvm.
> helloworld
> >>>> run:
> >>>> run.run:
> >>>> Cannot find java. Please use the --jdkhome switch.
> >>>> Result: 2
> >>>> BUILD SUCCESSFUL (total time: 0 seconds)
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> >>>> For additional commands, e-mail: dev-help@netbeans.incubator.
> apache.org
> >>>>
> >>>> For further information about the NetBeans mailing lists, visit:
> >>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>>>
> >>>>
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> >>> For additional commands, e-mail: dev-help@netbeans.incubator.
> apache.org
> >>>
> >>> For further information about the NetBeans mailing lists, visit:
> >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>>
> >>>
> >>>
> >>>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> > For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> >
> > For further information about the NetBeans mailing lists, visit:
> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>


-- 
Software Engineer and Developer
Java User Group am Bodensee
NetBeans Dream Team Member and Contributor

http://www.jug-bodensee.de/
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org

Re: Debugging issues in nightly build

Posted by Geertjan Wielenga <ge...@googlemail.com>.
Hi Kirk,

Can you point to where you're getting the nightly build from? That
might be the start of tracking the problem down, just to know what
we're referring to the same thing.

Gj

On Thu, Jan 4, 2018 at 3:18 PM, Kirk Pepperdine
<ki...@gmail.com> wrote:
> Hi John,
>
> The problem was, I was using Java 9 as my project IDE. It all works in 8 but not in 9. The message is unfortunate as it lead me on a wild goose chase. Changing to Java 8 solved the problem. I’ll see if I can sort out *why* we got this error message and not a more helpful one.
>
> Kind regards,
> Kirk
>
>> On Jan 3, 2018, at 12:34 AM, John Kostaras <jk...@gmail.com> wrote:
>>
>> Hi Kirk. Could you be a bit more specific about the steps you follow?
>>
>> I assume that you want to create a new NetBeans module project called
>> 'HelloWorld'.
>> Menu File -> New -> NetBeans Modules -> Module -> Next
>>
>> and in the 2nd step of the wizard you select 'Standalone Module' and
>> 'VisualVM 1.4' as your platform, correct?
>>
>> I created an empty project and built it without any issues on a Mac.
>>
>> Could you please verify that
>> incubator-netbeans/nbbuild/netbeans/etc/netbeans.conf
>>
>> contains:
>>
>> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/"
>>
>> or something? Otherwise could you send me your project to try it in my mac?
>>
>> John.
>>
>>
>>
>> On 31 December 2017 at 12:57, Geertjan Wielenga <
>> geertjan.wielenga@googlemail.com> wrote:
>>
>>> Just to be clear, can you point to what you're using as a nightly
>>> build, i.e., where are you getting it from exactly?
>>>
>>> Thanks,
>>>
>>> Gj
>>>
>>> On Sun, Dec 31, 2017 at 12:47 PM, Kirk Pepperdine <ki...@kodewerk.com>
>>> wrote:
>>>> Hi all,
>>>>
>>>> I’ve started testing NetBeans nightly build using VisualVM 1.4 as a
>>> platform. At the moment I am unable to run my simple VisualVM plugin inside
>>> the IDE. I’m able to create a NBM, load it into VVM and it all checks out.
>>> I’ve now done this on two different OS X machines.
>>>>
>>>> The error that I’m facing is below. I’ve set idk_home in both the
>>> netbeans and visualvm config files. I’ve also started netbeans from the
>>> command line adding —jdkhome. Would love to help debug this one.
>>>>
>>>> — Kirk
>>>>
>>>>
>>>> ant -f /Users/kirk/NetBeansProjects/helloworld -Dcontinue.after.failing.tests=true
>>> run
>>>> taskdefs:
>>>> common-init:
>>>> projectized-common.basic-init:
>>>> basic-init:
>>>> files-init:
>>>> nbm-license-init:
>>>> build-init:
>>>> Scanning for modules in /Users/kirk/opt/visualvm_14/platform
>>>> Scanning for modules in /Users/kirk/opt/visualvm_14/profiler
>>>> Scanning for modules in /Users/kirk/opt/visualvm_14/visualvm
>>>> init:
>>>> up-to-date:
>>>> compile:
>>>> jar-prep:
>>>> jar:
>>>> netbeans-extra:
>>>> javahelp:
>>>> module-auto-deps:
>>>> release:
>>>> module-xml-regular:
>>>> module-xml-autoload:
>>>> module-xml-eager:
>>>> chmod-executables:
>>>> verify-class-linkage:
>>>> 0 file(s) have been successfully validated.
>>>> netbeans:
>>>> Generating Auto Update information for com.kodewerk.visualvm.helloworld
>>>> run:
>>>> run.run:
>>>> Cannot find java. Please use the --jdkhome switch.
>>>> Result: 2
>>>> BUILD SUCCESSFUL (total time: 0 seconds)
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>>>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>>>>
>>>> For further information about the NetBeans mailing lists, visit:
>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>>>
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>>
>>>
>>>
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

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




Re: Debugging issues in nightly build

Posted by John Kostaras <jk...@gmail.com>.
As you saw in my post, I have setup my Apache NB 9 to use Oracle's JDK
9.0.1 (in netbeans.conf) and managed to create an empty NB module project
without any errors.

Maybe there is something else you 're missing?

Regards,

John

On 4 January 2018 at 16:18, Kirk Pepperdine <ki...@gmail.com>
wrote:

> Hi John,
>
> The problem was, I was using Java 9 as my project IDE. It all works in 8
> but not in 9. The message is unfortunate as it lead me on a wild goose
> chase. Changing to Java 8 solved the problem. I’ll see if I can sort out
> *why* we got this error message and not a more helpful one.
>
> Kind regards,
> Kirk
>
> > On Jan 3, 2018, at 12:34 AM, John Kostaras <jk...@gmail.com> wrote:
> >
> > Hi Kirk. Could you be a bit more specific about the steps you follow?
> >
> > I assume that you want to create a new NetBeans module project called
> > 'HelloWorld'.
> > Menu File -> New -> NetBeans Modules -> Module -> Next
> >
> > and in the 2nd step of the wizard you select 'Standalone Module' and
> > 'VisualVM 1.4' as your platform, correct?
> >
> > I created an empty project and built it without any issues on a Mac.
> >
> > Could you please verify that
> > incubator-netbeans/nbbuild/netbeans/etc/netbeans.conf
> >
> > contains:
> >
> > netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-
> 9.0.1.jdk/Contents/Home/"
> >
> > or something? Otherwise could you send me your project to try it in my
> mac?
> >
> > John.
> >
> >
> >
> > On 31 December 2017 at 12:57, Geertjan Wielenga <
> > geertjan.wielenga@googlemail.com> wrote:
> >
> >> Just to be clear, can you point to what you're using as a nightly
> >> build, i.e., where are you getting it from exactly?
> >>
> >> Thanks,
> >>
> >> Gj
> >>
> >> On Sun, Dec 31, 2017 at 12:47 PM, Kirk Pepperdine <ki...@kodewerk.com>
> >> wrote:
> >>> Hi all,
> >>>
> >>> I’ve started testing NetBeans nightly build using VisualVM 1.4 as a
> >> platform. At the moment I am unable to run my simple VisualVM plugin
> inside
> >> the IDE. I’m able to create a NBM, load it into VVM and it all checks
> out.
> >> I’ve now done this on two different OS X machines.
> >>>
> >>> The error that I’m facing is below. I’ve set idk_home in both the
> >> netbeans and visualvm config files. I’ve also started netbeans from the
> >> command line adding —jdkhome. Would love to help debug this one.
> >>>
> >>> — Kirk
> >>>
> >>>
> >>> ant -f /Users/kirk/NetBeansProjects/helloworld
> -Dcontinue.after.failing.tests=true
> >> run
> >>> taskdefs:
> >>> common-init:
> >>> projectized-common.basic-init:
> >>> basic-init:
> >>> files-init:
> >>> nbm-license-init:
> >>> build-init:
> >>> Scanning for modules in /Users/kirk/opt/visualvm_14/platform
> >>> Scanning for modules in /Users/kirk/opt/visualvm_14/profiler
> >>> Scanning for modules in /Users/kirk/opt/visualvm_14/visualvm
> >>> init:
> >>> up-to-date:
> >>> compile:
> >>> jar-prep:
> >>> jar:
> >>> netbeans-extra:
> >>> javahelp:
> >>> module-auto-deps:
> >>> release:
> >>> module-xml-regular:
> >>> module-xml-autoload:
> >>> module-xml-eager:
> >>> chmod-executables:
> >>> verify-class-linkage:
> >>> 0 file(s) have been successfully validated.
> >>> netbeans:
> >>> Generating Auto Update information for com.kodewerk.visualvm.
> helloworld
> >>> run:
> >>> run.run:
> >>> Cannot find java. Please use the --jdkhome switch.
> >>> Result: 2
> >>> BUILD SUCCESSFUL (total time: 0 seconds)
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> >>> For additional commands, e-mail: dev-help@netbeans.incubator.
> apache.org
> >>>
> >>> For further information about the NetBeans mailing lists, visit:
> >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>>
> >>>
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> >> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
> >>
> >> For further information about the NetBeans mailing lists, visit:
> >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> >>
> >>
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

Re: Debugging issues in nightly build

Posted by Kirk Pepperdine <ki...@gmail.com>.
Hi John,

The problem was, I was using Java 9 as my project IDE. It all works in 8 but not in 9. The message is unfortunate as it lead me on a wild goose chase. Changing to Java 8 solved the problem. I’ll see if I can sort out *why* we got this error message and not a more helpful one. 

Kind regards,
Kirk

> On Jan 3, 2018, at 12:34 AM, John Kostaras <jk...@gmail.com> wrote:
> 
> Hi Kirk. Could you be a bit more specific about the steps you follow?
> 
> I assume that you want to create a new NetBeans module project called
> 'HelloWorld'.
> Menu File -> New -> NetBeans Modules -> Module -> Next
> 
> and in the 2nd step of the wizard you select 'Standalone Module' and
> 'VisualVM 1.4' as your platform, correct?
> 
> I created an empty project and built it without any issues on a Mac.
> 
> Could you please verify that
> incubator-netbeans/nbbuild/netbeans/etc/netbeans.conf
> 
> contains:
> 
> netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/Home/"
> 
> or something? Otherwise could you send me your project to try it in my mac?
> 
> John.
> 
> 
> 
> On 31 December 2017 at 12:57, Geertjan Wielenga <
> geertjan.wielenga@googlemail.com> wrote:
> 
>> Just to be clear, can you point to what you're using as a nightly
>> build, i.e., where are you getting it from exactly?
>> 
>> Thanks,
>> 
>> Gj
>> 
>> On Sun, Dec 31, 2017 at 12:47 PM, Kirk Pepperdine <ki...@kodewerk.com>
>> wrote:
>>> Hi all,
>>> 
>>> I’ve started testing NetBeans nightly build using VisualVM 1.4 as a
>> platform. At the moment I am unable to run my simple VisualVM plugin inside
>> the IDE. I’m able to create a NBM, load it into VVM and it all checks out.
>> I’ve now done this on two different OS X machines.
>>> 
>>> The error that I’m facing is below. I’ve set idk_home in both the
>> netbeans and visualvm config files. I’ve also started netbeans from the
>> command line adding —jdkhome. Would love to help debug this one.
>>> 
>>> — Kirk
>>> 
>>> 
>>> ant -f /Users/kirk/NetBeansProjects/helloworld -Dcontinue.after.failing.tests=true
>> run
>>> taskdefs:
>>> common-init:
>>> projectized-common.basic-init:
>>> basic-init:
>>> files-init:
>>> nbm-license-init:
>>> build-init:
>>> Scanning for modules in /Users/kirk/opt/visualvm_14/platform
>>> Scanning for modules in /Users/kirk/opt/visualvm_14/profiler
>>> Scanning for modules in /Users/kirk/opt/visualvm_14/visualvm
>>> init:
>>> up-to-date:
>>> compile:
>>> jar-prep:
>>> jar:
>>> netbeans-extra:
>>> javahelp:
>>> module-auto-deps:
>>> release:
>>> module-xml-regular:
>>> module-xml-autoload:
>>> module-xml-eager:
>>> chmod-executables:
>>> verify-class-linkage:
>>> 0 file(s) have been successfully validated.
>>> netbeans:
>>> Generating Auto Update information for com.kodewerk.visualvm.helloworld
>>> run:
>>> run.run:
>>> Cannot find java. Please use the --jdkhome switch.
>>> Result: 2
>>> BUILD SUCCESSFUL (total time: 0 seconds)
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>>> 
>>> For further information about the NetBeans mailing lists, visit:
>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>> 
>>> 
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
>> For additional commands, e-mail: dev-help@netbeans.incubator.apache.org
>> 
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> 
>> 
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.incubator.apache.org
For additional commands, e-mail: dev-help@netbeans.incubator.apache.org

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