Skip to content

Add one more step in the Getting Started with Gradle section #195

@aqueleestevao

Description

@aqueleestevao

Hi,

I realised you're using the application plugin by following this tutorial https://openjfx.io/openjfx-docs/#gradle.

Well, if a beginner just ./gradlew run after adding plugin and javafx, he will face the "No main class specified and classpath is not an executable jar" error, since one more step is mandatory https://docs.gradle.org/current/userguide/application_plugin.html.

Maybe by adding this additional step in the tutorial it could be more friendly for newcomers.

application {
    mainClass = 'Main'
}

Chers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions