Having trouble setting up the JFX project in IntelliJ
Jonathan Vusich
jonathanvusich at gmail.com
Thu Aug 19 19:56:03 UTC 2021
Thanks for the link to the IDE instructions, Nir. I did not see that
before. I was trying to import the project as a Gradle project which was
not working very well. I have imported the project as an IntelliJ project
and seem to be having more success, but I am still getting these module
warnings that are preventing me from building the project or running any of
the apps. https://imgur.com/a/G6r32HG If anyone else who uses IntelliJ
knows how to resolve this, please let me know.
On Thu, Aug 19, 2021 at 1:25 PM Nir Lisker <nlisker at gmail.com> wrote:
> There are IDE instructions here:
> https://wiki.openjdk.java.net/display/OpenJFX/Using+an+IDE
>
> I don't know about IntelliJ since I use Eclipse. The project files there
> were pending an update at https://github.com/openjdk/jfx/pull/514, but
> since then projects were removed and more changes are planned, so I closed
> the PR. Still, you can test the changes there and see if they solve at
> least some of the issues. I can create a new PR if you are willing to serve
> as a reviewer because lack of reviewers is what stops the PRs for updating
> the Eclipse files.
>
> Some tests, like ones that use the Robot API, require additional command
> line arguments to work, so just clicking run on the unit test won't work. I
> tend to run those from the command line, but it should be possible to make
> them run from Eclipse somehow. Regular unit tests run for me.
>
> On Wed, Aug 18, 2021 at 10:46 PM Jonathan Vusich <jonathanvusich at gmail.com>
> wrote:
>
>> Hello all,
>>
>>
>>
>> As the title suggests, I am struggling to figure out how to properly set
>> up
>> the JavaFX project in IntelliJ or Eclipse. I can run the tests for JavaFX
>> through Gradle on the command line, so I am sure that I have all of the
>> needed tools and environment variables set correctly. However, my IntelliJ
>> and Eclipse IDEs both show many compile and build errors, and do not allow
>> me to run any of the test apps due to these compile errors. In order to
>> address feedback on a pull request for JavaFX, I need to be able to run
>> the
>> Ensemble8 test application, and I cannot figure out how to do this from
>> the
>> command line alone. Is there something that I am missing that would cause
>> IntelliJ to be able to resolve these compile errors? Or am I just supposed
>> to run everything through the command line? If the latter is true, how do
>> I
>> run the Ensemble8 application through Gradle from the command line? Many
>> thanks to anyone who can provide some answers.
>>
>>
>>
>> Jonathan Vusich
>>
>
More information about the openjfx-dev
mailing list