Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in Application start method #19

Closed
mokun opened this issue Jul 3, 2017 · 6 comments
Closed

Exception in Application start method #19

mokun opened this issue Jul 3, 2017 · 6 comments
Assignees
Labels

Comments

@mokun
Copy link

mokun commented Jul 3, 2017

In 1.4.5, when I run Demo.java in eclipse, I'm getting "Exception in Application start method" and don't know why.

@HanSolo
Copy link
Owner

HanSolo commented Jul 3, 2017

Hmm...strange...works fine for me...took the screenshots running the Demo file.

@HanSolo
Copy link
Owner

HanSolo commented Jul 3, 2017

So I've imported the gradle project into Eclipse and started the Demo file without any problem. If you simply import the project as a Gradle project it should work.

@HanSolo HanSolo closed this as completed Jul 3, 2017
@mokun
Copy link
Author

mokun commented Jul 3, 2017

First, I cloned your git repo at https://github.com/HanSolo/tilesfx.git in Eclipse.

Then, I right click on "tilesfx" and chose "Import Projects" to import the project.

Next, I have to find "json-simple-1.1.1.jar" and download it from somewhere and configure the build path to include this jar.

At this point, I tried executing the Demo.java in eclipse since it has main() but for some strange reason, I received "Exception in Application start method".

But if I run "gradlew Demo" in my Windows OS's command prompt, it works. The JavaFX stage pops up showing off different tiles without a hitch.

It's only in eclipse that it didn't work.

@HanSolo
Copy link
Owner

HanSolo commented Jul 3, 2017

You need to import a gradle project and then select the tilesfx folder with the build.gradle file in it. Gradle will take care about all dependencies, no need to manually import ir download libraries. I've tested it in Eclipse Neon and it worked at the first try (and I don't use Eclipse normally).

@HanSolo HanSolo added the wontfix label Jul 3, 2017
@HanSolo HanSolo self-assigned this Jul 3, 2017
@mokun
Copy link
Author

mokun commented Jul 3, 2017

... with the build.gradle file

Got it. Yes I do need to jump thru a few more hoops : right click on build.gradle file and choose Import / Gradle / Existing Gradle Project

It runs well now in eclipse.

Keep up your good work !

@HanSolo
Copy link
Owner

HanSolo commented Jul 4, 2017

👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants