Closed ynlin closed 9 years ago
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.
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
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.
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.
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 https://github.com/TomasMikula/RichTextFX/issues/94#issuecomment-63008243 .
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)