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

Running demos within NetBeans (8.0.1) #94

Closed
ynlin opened this issue Nov 12, 2014 · 4 comments
Closed

Running demos within NetBeans (8.0.1) #94

ynlin opened this issue Nov 12, 2014 · 4 comments

Comments

@ynlin
Copy link

ynlin commented Nov 12, 2014

Hi Tomas,
I was trying to run the demos, say JavaKeywords.java, under NetBeans as a JavaFX Application. The build was successful but failed at run-time as follows. Any other thing that I should be aware of to use this library? Tks a lot!

Yi-Neng

===Building===
ant -f C:\Users\user\Documents\NetBeansProjects\JavaKeywords jfx-build
init:
Deleting: C:\Users\user\Documents\NetBeansProjects\JavaKeywords\build\built-jar.properties
deps-jar:
Updating property file: C:\Users\user\Documents\NetBeansProjects\JavaKeywords\build\built-jar.properties
compile:
Deleting directory C:\Users\user\Documents\NetBeansProjects\JavaKeywords\dist\lib
Copying 1 file to C:\Users\user\Documents\NetBeansProjects\JavaKeywords\dist\lib
Detected JavaFX Ant API version 1.3
jfx-deployment:
jar:
jfx-build:
BUILD SUCCESSFUL (total time: 0 seconds)

===Executing === C:\Users\user\Documents\NetBeansProjects\JavaKeywords\dist\run1780041502\JavaKeywords.jar using platform C:\Program Files\Java\jdk1.8.0_05\jre/bin/java
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:483)

@TomasMikula
Copy link
Member

Hi,

I don't use NetBeans, but it doesn't seem to build anything. It probably built some empty jar. The project uses gradle as the build tool. You should look for gradle support in NetBeans.

@ghost
Copy link

ghost commented Nov 12, 2014

Hi there, I don't have any issues on building the project on Netbeans. 8.0.1--Windows.
If you build the RichText[root], you will get libraries for both with/without demos. They should be at:
C:...\RichTextFX\richtextfx-demos\build\libs
C:...\RichTextFX\richtextfx\build\libs

sample

As Tomas said, I think you need to install NetBeans Gradle plugin.
To do that, go to the Tools menu-> Plugins. Then search for Gradle Support, the latest version is 1.3.2.

@ynlin
Copy link
Author

ynlin commented Nov 14, 2014

Tks both for the response. I can compile now with the Gradle Support installed and an additional tip mentioned in the page below:
http://stackoverflow.com/questions/23418954/cant-debug-in-netbeans-after-switching-to-gradle

replace the "com.foo.acme.Main" with "org.fxmisc.richtext.demo.JavaKeywords" if you want to build the JavaKEywords sample.

@ghost
Copy link

ghost commented Nov 14, 2014

Nice! Its strange though that you had to make changes. I didn't have to
change anything in the code to build it. Great that its working!
On Nov 13, 2014 8:13 PM, "ynlin" notifications@github.com wrote:

Tks both for the response. I can compile now with the Gradle Support
installed and an additional tip mentioned in the page below:

http://stackoverflow.com/questions/23418954/cant-debug-in-netbeans-after-switching-to-gradle

replace the "com.foo.acme.Main" with
"org.fxmisc.richtext.demo.JavaKeywords" if you want to build the
JavaKEywords sample.


Reply to this email directly or view it on GitHub
#94 (comment)
.

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

No branches or pull requests

2 participants