That would be a good motive to move to Gradle!!

On Fri, Sep 27, 2019 at 7:00 AM Scott Palmer <swpal...@gmail.com> wrote:

> You can also easily make a JavaFX project with NetBeans if you use a
> Gradle project - as everyone should ;-)
>
> https://openjfx.io/openjfx-docs/#gradle
>
> But you do have to manually add the javafx-plugin to your Gradle build
> script.  Perhaps we can get that fixed with a tweak to the new project
> wizard for Gradle-based projects.
>
> Scott
>
>
> On Sep 27, 2019, at 9:47 AM, Chuck Davis <cjgun...@gmail.com> wrote:
>
> Chris:
>
> NB has not made a JFX project that works since JDK8.  The JavaFX
> application should be taken off the new project menu until such time as it
> can build and run a JFX application.
>
> You might find some help here:  https://openjfx.io/openjfx-docs/#maven
>
> You can use NB to create the application but then you have to delete the
> entire pom and replace it with one that works -- which you will find at
> this link.  After you do that NB will actually run your application from
> the IDE.
>
> I recommend you build your dialogs with SceneBuilder outside the IDE for
> convenience.  One of the great features of fxml is reusability.  You can
> copy your fxml files into other projects, load them and nothing blows up.
> Since NB would not run a JFX application I wrote a script to copy the NB
> project files to another directory and run it there from a desktop icon.
> If you do that there are some tweaks to make for it to find the jfx
> modules.  I think you will also find  those issues addressed at the link
> but I don't remember for sure.  If you run into that you can email me
> off-list and we can discuss what has to be done.
>
> HTH with your frustrations.
>
> On Fri, Sep 27, 2019 at 5:12 AM Chris Olsen <col...@mchsi.com> wrote:
>
>> Scott and All --
>>
>>   > The target should be 11 not 1.11.
>>
>>   Thanks to Scott!  I'm not sure where the 1.11 came from -- I think it
>> was generated somewhere out of my control.  (Yes, passing the buck.)
>>
>>   In any case, one step forward has gotten me to another problem, which I
>> believe is with something called javafxpackager:
>>
>> -----------
>>   Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec
>> (unpack-dependencies) on project Splat_Maven: Command execution failed.
>> Cannot run program "C:\Program
>> Files\AdoptOpenJDK\jdk-11.0.4.11-hotspot\..\bin\javafxpackager" (in
>> directory "C:\Users\olsenc\Documents\NetBeansProjects\Splat_Maven"):
>> CreateProcess error=2, The system cannot find the file specified -> [Help 1]
>> -----------
>>
>>   In searching the web I found a great deal of only partially helpful
>> information, much related to Java 6 and 7.  Some places, in discussing Java
>> 11, seemed to suggest there was no longer in existence a javafxpackager,
>> and would there not be one until Java 14.  This is distressing, as my app
>> is replete with FX.  I wonder if someone could give me an authoritative
>> answer about what javafxpackager -- if it exists -- actually does.  I
>> believe would like to be able to deploy my app bundled with Java 11 in
>> Windows and Mac versions because of my target audience (high school
>> teachers with even less computer savvy that I have).  I'm beginning to
>> think I should just return to Java 8. I have solved many problems in
>> migrating to Java 11, but I am getting a bit discouraged when I contemplate
>> the possibility of many problems still to come, problems that suggest I
>> should change professions from statistician to Java developer -- not
>> something I want to contemplate at this stage in my career.
>>
>>   Any advice for the harried and distraught _amateur_ programmer?
>>
>>   Thank you in advance!
>>
>>   -- Chris
>>
>>
>>
>>
>>
>> ----- Original Message -----
>> From: Scott Palmer <swpal...@gmail.com>
>> To: Chris Olsen <col...@mchsi.com>
>> Cc: users@netbeans.apache.org
>> Sent: Tue, 24 Sep 2019 21:29:47 -0400 (EDT)
>> Subject: Re: Hopefully close to the finish line with Java 11 & FX
>>
>> The target should be 11 not 1.11.
>>
>> Scott
>>
>> > On Sep 24, 2019, at 8:49 PM, Chris Olsen <col...@mchsi.com> wrote:
>> >
>> > Hello, Everyone --
>> >
>> >   I have downloaded AdoptOpenJDK, JavaFX 11, and Maven (or so I
>> believe).  I have waded through getting to zero FX compile errors, and with
>> the clarion call of "Excelcior!" I told Apache Netbeans 11.1 to run.  This
>> is what I got:
>> >
>> > --------
>> > Failed to execute goal
>> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
>> (default-compile) on project Splat_Maven: Fatal error compiling: error:
>> invalid target release: 1.11 -> [Help 1]
>> > --------
>> >
>> >   I did my due diligence and looked for solutions on line, but nothing
>> I found seemed to work.  What I'm thinking is that SOMEwhere I must have
>> told some file or other that there is another Java 11 in town, but I don't
>> really know where I would have said this.  (I blew away all my old Java 8
>> JDKs.
>> >
>> >   In hopes that this might give someone might have greater than zero
>> clues, I am appending some System output below.  Any ideas of what and
>> where to look for solutions and/or suggestions for how to proceed are very
>> welcome!  I'm running this on Windows 7, but my Windows 10 laptop gives the
>> same "invalid target release" message.
>> >
>> >   Thanks in advance...
>> >
>> >   -- Chris Olsen
>> >
>> > ------------------------
>> >
>> > Echo %JAVA_HOME%:
>> >
>> > C:\Program Files\AdoptOpenJDK\jdk-11.0.4.11-hotspot\
>> >
>> > Echo %MAVEN_HOME%:
>> >
>> > c:\Program Files\Maven\apache-maven-3.6.2-bin\apache-maven-3.6.2\bin
>> >
>> >
>> > Path:
>> >
>> > C:\Program
>> Files\AdoptOpenJDK\jdk-11.0.4.11-hotspot\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program
>> Files
>> (x86)\CambridgeSoft\ChemOffice2015\ChemScript\Lib;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Anaconda3;C:\Anaconda3\Scripts;C:\Program
>> Files\MATLAB\R2015a\bin;c:\Program Files (x86)\Microsoft SQL
>> Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL
>> Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL
>> Server\100\DTS\Binn\;C:\PROGRAM FILES\OPENOFFICE.ORG
>> <http://openoffice.org/> 3\URE\BIN; C:\PROGRAM FILES (X86)\OPENOFFICE.ORG
>> <http://openoffice.org/> 3\URE\BIN;C:\Program
>> Files\SASHome\Secure\ccme4;C:\Program
>> Files\SASHome\x86\Secure\ccme4;C:\Program Files (x86)\Skype\Phone\;
>> c:\Program Files (x86)\Inno Setup 5;C:\Program Files
>> (x86)\QuickTime\QTSystem\;C:\Program Files
>> (x86)\SMLNJ\bin\;%JAVA_HOME%\bin; C:\Program
>> Files\Java\jdk-11\bin;c:\Program
>> Files\Maven\apache-maven-3.6.2-bin\apache-maven-3.6.2\bin
>> >
>> > ---------------------
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> > For additional commands, e-mail: users-h...@netbeans.apache.org
>> >
>> > For further information about the NetBeans mailing lists, visit:
>> > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>
>

Reply via email to