netbeans-netcat mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Salter <davidmsal...@me.com>
Subject Re: [news] Welcome to NetCAT 9.0 program!
Date Thu, 15 Jun 2017 13:25:40 GMT
I’d be interested if anyone else can get “ant tryme” to work with Java 9 to help identify
if its an issue, or a problem with my setup.

Dave.

> On 15 Jun 2017, at 14:05, Geertjan Wielenga <geertjan.wielenga@googlemail.com>
wrote:
> 
> I guess 'ant tryme' picks up the default JDK.
> 
> Gj
> 
> On Thu, Jun 15, 2017 at 3:01 PM, David Salter <davidmsalter@me.com> wrote:
> 
>> That works perfectly.
>> 
>> I guess there’s potentially an issue with “ant tryme” on Java 9?
>> 
>> Ta.
>> 
>> Dave.
>> 
>>> On 15 Jun 2017, at 13:51, Geertjan Wielenga <
>> geertjan.wielenga@googlemail.com> wrote:
>>> 
>>> In 'nbbuild' folder, you'll find 'netbeans' folder, containing
>>> 'etc/netbeans.conf' as with any NetBeans installation. Set JDK 9 there
>> and
>>> run NetBeans from 'nbbuild/netbeans/bin' as always.
>>> 
>>> Gj
>>> 
>>> On Thu, Jun 15, 2017 at 2:48 PM, David Salter <davidmsalter@me.com>
>> wrote:
>>> 
>>>> Yes, I can build on Java 8, but then I’m having trouble running with
>> Java
>>>> 9 :(
>>>> 
>>>> I get the following error:
>>>> 
>>>> ant tryme
>>>> …
>>>> 
>>>> tryme:
>>>>    [exec] Cannot find java. Please use the --jdkhome switch.
>>>> 
>>>> BUILD FAILED
>>>> /Users/david/Develop/Code/NetBeans/netbeans-donation-
>> review/nbbuild/build.xml:1027:
>>>> exec returned: 2
>>>> 
>>>> I’ve tried setting the —jdkhome property, exporting JAVA_HOME and
>> editing
>>>> ./nbbuild/netbeans/etc/netbeans.conf
>>>> 
>>>> Any suggestions?
>>>> 
>>>>> On 15 Jun 2017, at 12:07, Geertjan Wielenga <
>>>> geertjan.wielenga@googlemail.com> wrote:
>>>>> 
>>>>> Use JDK 8 for building. Note that just because you can't build yet on
>>>> JDK 9
>>>>> doesn't mean you can't run on JDK 9. In fact, you CAN run on JDK 9,
>> which
>>>>> will give you the JShell integration (via the Tools window).
>>>>> 
>>>>> Gj
>>>>> 
>>>>> On Thu, Jun 15, 2017 at 12:53 PM, David Salter <davidmsalter@me.com>
>>>> wrote:
>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> Building on Java 9 fails for me on Mac OS X 10.12.4
>>>>>> 
>>>>>> Java HotSpot(TM) 64-Bit Server VM (build 9-ea+173, mixed mode)
>>>>>> 
>>>>>> [repeat] /Users/david/Develop/Code/NetBeans/netbeans-donation-
>>>>>> review/o.n.bootstrap/src/org/netbeans/NbInstrumentation.java:66:
>> error:
>>>>>> NbInstrumentation is not abstract and does not override abstract
>> method
>>>>>> isModifiableModule(Module) in Instrumentation
>>>>>> [repeat] final class NbInstrumentation implements Instrumentation
{
>>>>>> 
>>>>>> Has anyone managed to build successful on Java 9?
>>>>>> 
>>>>>> To start the build on Java 9, I used the following:
>>>>>> 
>>>>>> $ ant build -Dcluster.config=java -Dpermit.jdk9.builds=true
>>>>>> [repeat] final class NbInstrumentation implements Instrumentation
{
>>>>>> 
>>>>>>> On 15 Jun 2017, at 08:04, Thilina Ranathunga <r.thilina@gmail.com>
>>>>>> wrote:
>>>>>>> 
>>>>>>> OS: *Windows 10 Pro 64bit*
>>>>>>> Processor: i7-7500U CPU @ 2.70GHz 2.9GHz
>>>>>>> RAM: 16.0 GB
>>>>>>> 
>>>>>>> Ant Version: 1.10.1
>>>>>>> Javac Version: javac 1.8.0_121
>>>>>>> 
>>>>>>> *BUILD SUCCESSFUL*
>>>>>>> *Total time: 12 minutes 24 seconds*
>>>>>>> 
>>>>>>> ant tryme works fine.
>>>>>>> 
>>>>>>> Trying Spring Boot v1.5.4 + maven based project with custom action
>>>>>>> 
>>>>>>> <action>
>>>>>>>         <actionName>CUSTOM-spring-boot:run dev</actionName>
>>>>>>>         <displayName>spring-boot:run dev</displayName>
>>>>>>>         <goals>
>>>>>>>             <goal>spring-boot:run</goal>
>>>>>>>         </goals>
>>>>>>>         <properties>
>>>>>>>             <spring.profiles.active>dev</spring.profiles.active>
>>>>>>>         </properties>
>>>>>>>         <activatedProfiles>
>>>>>>>             <activatedProfile>dev</activatedProfile>
>>>>>>>         </activatedProfiles>
>>>>>>>     </action>
>>>>>>> 
>>>>>>> Which executes this goal
>>>>>>> 
>>>>>>> mvn -Dspring.profiles.active=dev
>>>>>>> -Dmaven.ext.class.path=D:\\Downloads\\Compressed\\
>>>>>> netbeans-donation-review_20170715\\nbbuild\\netbeans\\
>>>>>> java\\maven-nblib\\netbeans-eventspy.jar
>>>>>>> -Dfile.encoding=UTF-8 -Pdev spring-boot:run\
>>>>>>> 
>>>>>>> Result
>>>>>>> 2017-06-15 12:12:51.095  INFO 7408 --- [           main]
>>>>>>> s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on
>> port(s):
>>>>>> 8080
>>>>>>> (http)
>>>>>>> 2017-06-15 12:12:51.111  INFO 7408 --- [           main]
>>>>>>> c.t.fma.FileManagerApiApplication        : Started FMApiApplication
>> in
>>>>>>> 16.978 seconds (JVM running for 31.706)
>>>>>>> 
>>>>>>> Will use in production for some time and update you with any
>> detection.
>>>>>>> 
>>>>>>> 8 plugin updates available, currently testing without applying
>> updates.
>>>>>> *Please
>>>>>>> advice* which way is preferable for testing with current situation
of
>>>>>>> donation build, update plugins or not*?*
>>>>>>> 
>>>>>>> 
>>>>>>> On Thu, Jun 15, 2017 at 10:58 AM, Manikantan Narender nath <
>>>>>>> manikantannaren@gmail.com> wrote:
>>>>>>> 
>>>>>>>> Build successful with Java 8.
>>>>>>>> 
>>>>>>>> On Jun 15, 2017 08:57, "Geertjan Wielenga"
>>>>>> <geertjan.wielenga@googlemail.
>>>>>>>> com>
>>>>>>>> wrote:
>>>>>>>> 
>>>>>>>>> Can you try with JDK 8 as well, to check that the issue
is related
>> to
>>>>>> the
>>>>>>>>> JDK you're using?
>>>>>>>>> 
>>>>>>>>> Gj
>>>>>>>>> 
>>>>>>>>> On Thu, Jun 15, 2017 at 5:24 AM, Manikantan Narender
nath <
>>>>>>>>> manikantannaren@gmail.com> wrote:
>>>>>>>>> 
>>>>>>>>>> I got compilation errors on a different module *xml.tools*.
>>>>>>>>>> 
>>>>>>>>>> With Java 9 (build 9-ea+173)
>>>>>>>>>> 
>>>>>>>>>> compile:
>>>>>>>>>> 
>>>>>>>>>> [depend] Deleted 12 out of date files in 0 seconds
>>>>>>>>>> 
>>>>>>>>>> [nb-javac] Compiling 5 source files to
>> <unzip-root>/xml.tools/build/
>>>>>>>>>> classes
>>>>>>>>>> 
>>>>>>>>>> [repeat] warning: [options] bootstrap class path
not set in
>>>>>>>>> conjunction
>>>>>>>>>> with -source 1.4
>>>>>>>>>> 
>>>>>>>>>> [repeat] error: Source option 1.4 is no longer supported.
Use 1.6
>>>> or
>>>>>>>>>> later.
>>>>>>>>>> 
>>>>>>>>>> [repeat] error: Target option 1.4 is no longer supported.
Use 1.6
>>>> or
>>>>>>>>>> later.
>>>>>>>>>> 
>>>>>>>>>> [nbmerge] Failed to build target: all-xml.tools
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> BUILD FAILED
>>>>>>>>>> 
>>>>>>>>>> <unzip-root>/nbbuild/build.xml:450: The following
error occurred
>>>>>> while
>>>>>>>>>> executing this line:
>>>>>>>>>> 
>>>>>>>>>> <unzip-root>/nbbuild/build.xml:445: The following
error occurred
>>>>>> while
>>>>>>>>>> executing this line:
>>>>>>>>>> 
>>>>>>>>>> <unzip-root>/nbbuild/build.xml:492: The following
error occurred
>>>>>> while
>>>>>>>>>> executing this line:
>>>>>>>>>> 
>>>>>>>>>> <unzip-root>/nbbuild/templates/common.xml:225:
Compile failed;
>> see
>>>>>> the
>>>>>>>>>> compiler error output for details.
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> *Cheers*
>>>>>>>>>> Mani/Naren/Iyer
>>>>>>>>>> *The trick of walking on water is knowing where the
stones are.*
>>>>>>>>>> 
>>>>>>>>>> On Thu, Jun 15, 2017 at 12:13 AM, Marco Molteni <
>> moltenma@gmail.com
>>>>> 
>>>>>>>>>> wrote:
>>>>>>>>>> 
>>>>>>>>>>> hi,
>>>>>>>>>>> 
>>>>>>>>>>> macOS: High Sierra Beta
>>>>>>>>>>> JDK: Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
>>>>>>>>>>> 
>>>>>>>>>>> Build, tryme and new small application: OK
>>>>>>>>>>> 
>>>>>>>>>>> With JDK 9 there I get the following error, it
seems that JDK 9
>> is
>>>>>>>> not
>>>>>>>>>>> supported.
>>>>>>>>>>> 
>>>>>>>>>>> /Users/marco/Downloads/netbeans-donation-review/
>>>>>>>>>>> nbbuild/templates/projectized.xml:96:
>>>>>>>>>>> You are attempting to build NetBeans using JDK
9 (or higher).
>>>>>>>>>>> 
>>>>>>>>>>> This is forbidden as it may lead to accidental
usage of JDK 9+
>>>> APIs.
>>>>>>>>>>> 
>>>>>>>>>>> Either run Ant with JDK 8, or set nbjdk.home=<JDK
8 home> in
>>>>>>>>>>> /Users/marco/Downloads/netbeans-donation-review/
>>>>>>>>>>> nbbuild/user.build.properties
>>>>>>>>>>> 
>>>>>>>>>>> (can be set from IDE by opening a module project's
Properties
>>>> dialog
>>>>>>>>> and
>>>>>>>>>>> picking the right Java Platform in Libraries).
>>>>>>>>>>> 
>>>>>>>>>>> You can alternatively set this property in /Users/marco/.nbbuild.
>>>>>>>>>>> properties
>>>>>>>>>>> to affect all checkouts on this machine.
>>>>>>>>>>> 
>>>>>>>>>>> If you are sure you want to build with JDK 9+
anyway, use:
>>>>>>>>>>> -Dpermit.jdk9.builds=true
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> I tried with '-Dpermit.jdk9.builds=true' but
the build failed:
>>>>>>>>>>> 
>>>>>>>>>>> [nbmerge] Failed to build target: all-o.n.bootstrap
>>>>>>>>>>> 
>>>>>>>>>>> BUILD FAILED
>>>>>>>>>>> 
>>>>>>>>>>> On Wed, Jun 14, 2017 at 8:15 PM, Geertjan Wielenga
<
>>>>>>>>>>> geertjan.wielenga@googlemail.com> wrote:
>>>>>>>>>>> 
>>>>>>>>>>>> Can you also try with JDK 8 and see if that
makes a difference?
>>>>>>>>>>>> 
>>>>>>>>>>>> Gj
>>>>>>>>>>>> 
>>>>>>>>>>>> On Wed, Jun 14, 2017 at 7:55 PM, Marco Molteni
<
>>>> moltenma@gmail.com
>>>>>>>>> 
>>>>>>>>>>> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>>> Hi,
>>>>>>>>>>>>> 
>>>>>>>>>>>>> OS: macOS 10.13 Beta (High Sierra)
>>>>>>>>>>>>> JDK 9: Java(TM) SE Runtime Environment
(build 9-ea+173)
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Build FAILED.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Should I open an issue or the environment
doesn't qualify for
>> the
>>>>>>>>>> test?
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>>> Marco
>>>>>>>>>>>>> 
>>>>>>>>>>>>> On Wed, Jun 14, 2017 at 1:25 AM, Jiří
Kovalský <
>>>>>>>>>>> jiri.kovalsky@oracle.com
>>>>>>>>>>>>> 
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Hello NetCAT 9.0 participants,
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> let me first of all warmly welcome
all the well known faces
>>>>>>>>>> (ehm,
>>>>>>>>>>>>>> e-mails :) in this new Apache hosted
NetCAT mailing list but
>>>>>>>> more
>>>>>>>>>>>>>> importantly we are thrilled to see
several new supporters!
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> While there are almost 80 subscribers
to this list, we have
>>>>>>>>> only
>>>>>>>>>>> 56
>>>>>>>>>>>>>> participants registered in the NetBeans
dashboard [1] so if
>> you
>>>>>>>>>> don't
>>>>>>>>>>>>> find
>>>>>>>>>>>>>> your name in the table, we strongly
suggest to sign up [2] as
>>>>>>>>> soon
>>>>>>>>>> as
>>>>>>>>>>>>>> possible. Without passing this registration
step, you won't
>>>>>>>> have
>>>>>>>>>> your
>>>>>>>>>>>>>> account created in Synergy and you
won't be able to
>> participate
>>>>>>>>> in
>>>>>>>>>>> the
>>>>>>>>>>>>>> official certification later.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> [1] http://services.netbeans.org/
>>>>>>>> dashboard/web/participants.php
>>>>>>>>>>>>>> [2] http://services.netbeans.org/dashboard/web/netcat_signup.
>>>>>>>> php
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Today we have the very first assignment
for you. As the
>>>>>>>>> initial
>>>>>>>>>>>>>> NetBeans code donation to Apache
Incubator is just round the
>>>>>>>>> corner
>>>>>>>>>>> we
>>>>>>>>>>>>>> would like you to download the ZIP
with NetBeans sources,
>>>>>>>> extract
>>>>>>>>>>> these
>>>>>>>>>>>>>> locally, build the IDE with ANT and
then give it your first
>>>>>>>> test
>>>>>>>>>>> drive.
>>>>>>>>>>>>> The
>>>>>>>>>>>>>> more OS/JDK8/JDK9 configurations
we get covered the better!
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> If you spot anything suspicious either
during the building
>>>>>>>>>> process
>>>>>>>>>>>> or
>>>>>>>>>>>>>> using the IDE later, don't hesitate
to share your findings
>>>>>>>>> through
>>>>>>>>>>> this
>>>>>>>>>>>>>> list first and let's file common
problems to JIRA [3] then.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> [3] https://issues.apache.org/jira/projects/NETBEANS
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> The ZIP and instructions what to
do are available here:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> http://deadlock.netbeans.org/job/prototypes-donation_review/
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Thanks for your help and we declare
open the NetBeans
>> Community
>>>>>>>>>>>>> Acceptance
>>>>>>>>>>>>>> Program (NetCAT) of version 9.0!
:)
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> Happy testing,
>>>>>>>>>>>>>> Jirka & Hermien
>>>>>>>>>>>>>> 
>>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>> 
>>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> --
>>>>>>> 
>>>>>>> Best regards,
>>>>>>> Thilina Ranathunga.
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>> 
>> 


Mime
View raw message