Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8119815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:55:09+00:00 2026-06-06T04:55:09+00:00

Good Day, I a working my way through the official JavaFX FXML tutorial (See

  • 0

Good Day,
I a working my way through the official JavaFX FXML tutorial (See source code here). However when I compile it using the Netbeans IDE I get the following error:

Can anyone help me with this

I’m running JDK 1.7 and JavaFX 2.0

init: Deleting:
C:\Users\riash\Documents\Riaz\Personal\Java\Samples\FXMLExample\build\built-jar.properties
deps-jar: Updating property file:
C:\Users\riash\Documents\Riaz\Personal\Java\Samples\FXMLExample\build\built-jar.properties
compile: Detected JavaFX Ant API version 1.1 Launching task
from C:\Program Files (x86)\Oracle\JavaFX 2.0 SDK\tools\ant-javafx.jar
Signing JAR:
C:\Users\riash\Documents\Riaz\Personal\Java\Samples\FXMLExample\dist\FXMLExample.jar
to
C:\Users\riash\Documents\Riaz\Personal\Java\Samples\FXMLExample\dist\FXMLExample.jar
as nb-jfx

Warning: The signer certificate will expire within six months. Enter
Passphrase for keystore: Enter key password for nb-jfx: Launching
task from C:\Program Files (x86)\Oracle\JavaFX 2.0
SDK\tools\ant-javafx.jar Skip jar copy to itself: FXMLExample.jar
jfx-deployment: jar: run: Jun 19, 2012 9:10:33 PM
javafx.fxml.FXMLLoader logException SEVERE: The following error
occurred at line 48 in file
/C:/Users/riash/Documents/Riaz/Personal/Java/Samples/FXMLExample/build/classes/fxmlexample/fxml_example.fxml[Ljava.lang.StackTraceElement;@1bb3a11
Exception in Application start method
java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
com.javafx.main.Main.launchApp(Main.java:453)
at
com.javafx.main.Main.main(Main.java:537)

Caused by:
java.lang.RuntimeException: Exception in Application start method
at
com.sun.javafx.application.LauncherImpl.launchApplication1(Unknown
Source)
at com.sun.javafx.application.LauncherImpl.access$000(Unknown
Source)
at com.sun.javafx.application.LauncherImpl$1.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:722)

Caused by:
javafx.fxml.LoadException: javafx.scene.layout.GridPane does not have
a default property.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:55:10+00:00Added an answer on June 6, 2026 at 4:55 am

    Upgrading your JavaFX runtime to at least 2.1 will fix your problem.

    The sample source you reference is designed for a 2.1 runtime, not a 2.0 runtime.

    The reason the new source is incompatible with 2.0 is that 2.1 adds an inherited @DefaultProperty annotation to the Pane class (this annotated behaviour gets inherited by GridPane). Because of this, when you write fxml using 2.1 you can omit certain tags which get defaulted, making the 2.1 fxml less verbose than what is required for 2.0. A full explanation of this is provided by Dustin Marx in his blog.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good Day, I have a simple working routine in Perl that swaps two words:
Good day everyone. I am working on a Firefox extension, and I want to
Good day. Has somebody working solution for deleting asset in nested form in Carrierwave?
After working in good ole' c++ all day, I like to have a few
Good Day, I have been trying various methods both found on here and in
Good day everyone. I'm trying to figure out a way to use multiple flags
Good day everyone. I am creating a calendar component, and I'm working in the
Good day people, I am working on a project where i load pages into
Good day, I've been working on this project and learning how to place a
Good day, I am working on a Stratix III FPGA which contains M9K block

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.