Attempt to build JFreeChart-FSE fails

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mrubin
Posts: 6
Joined: Thu Jun 16, 2016 6:49 am
antibot: No, of course not.

Attempt to build JFreeChart-FSE fails

Post by mrubin » Fri Jun 17, 2016 4:46 pm

Following Dave Gilbert's steps for building the JFreeChart-FSE project, I attempted to do so on my Windows machine. The build seemed to succeed, failing on only four Surefire tests (I will try to attach the debug log, but if not you'll find it here).

Although the four tests failed, I expected to find the jfreechart-fse-1.0-SNAPSHOT.jar file, or any other JAR file for that matter, but there are none. What am I doing wrong?

Looking at the [INFO] lines in the log shows:

Code: Select all

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building JFreeChart2 2.0-pre1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ jfreechart2 ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jfreechart2 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 41 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ jfreechart2 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 732 source files to C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse\target\classes
[INFO] /C:/Private/MVS/ThirdParty/JFreeChart-FSE/jfreechart-fse/src/main/java/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java: Some input files use or override a deprecated API.
[INFO] /C:/Private/MVS/ThirdParty/JFreeChart-FSE/jfreechart-fse/src/main/java/org/jfree/chart/renderer/category/AbstractCategoryItemRenderer.java: Recompile with -Xlint:deprecation for details.
[INFO] /C:/Private/MVS/ThirdParty/JFreeChart-FSE/jfreechart-fse/src/main/java/org/jfree/data/general/SelectionChangeEvent.java: Some input files use unchecked or unsafe operations.
[INFO] /C:/Private/MVS/ThirdParty/JFreeChart-FSE/jfreechart-fse/src/main/java/org/jfree/data/general/SelectionChangeEvent.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jfreechart2 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse\src\test\resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.2:testCompile (default-testCompile) @ jfreechart2 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 354 source files to C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse\target\test-classes
[INFO] /C:/Private/MVS/ThirdParty/JFreeChart-FSE/jfreechart-fse/src/test/java/org/jfree/chart/axis/ValueAxisTest.java: Some input files use or override a deprecated API.
[INFO] /C:/Private/MVS/ThirdParty/JFreeChart-FSE/jfreechart-fse/src/test/java/org/jfree/chart/axis/ValueAxisTest.java: Recompile with -Xlint:deprecation for details.
[INFO] /C:/Private/MVS/ThirdParty/JFreeChart-FSE/jfreechart-fse/src/test/java/org/jfree/chart/renderer/category/ScatterRendererTest.java: Some input files use unchecked or unsafe operations.
[INFO] /C:/Private/MVS/ThirdParty/JFreeChart-FSE/jfreechart-fse/src/test/java/org/jfree/chart/renderer/category/ScatterRendererTest.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ jfreechart2 ---
[INFO] Surefire report directory: C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse\target\surefire-reports
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:12 min
[INFO] Finished at: 2016-06-17T17:24:27+03:00
[INFO] Final Memory: 23M/483M
[INFO] ------------------------------------------------------------------------
The build failure seems related to the four failed Surefire tests. Would that cause the JAR file to be deleted?

I'm running the following software:

Java

Code: Select all

@>java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
Maven

Code: Select all

@>mvn -version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T18:41:47+02:00)
Maven home: C:\Users\moshe\Maven\apache-maven-3.3.9\bin\..
Java version: 1.8.0_74, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_74\jre
Default locale: en_US, platform encoding: Cp1255
OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos"
Thanks in advance,

Moshe

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Attempt to build JFreeChart-FSE fails

Post by david.gilbert » Fri Jun 17, 2016 9:53 pm

It looks like the build is failing because the unit tests don't all pass. I'll fix that, but in the meantime you could skip the tests:

Code: Select all

mvn clean install -DskipTests=true
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

mrubin
Posts: 6
Joined: Thu Jun 16, 2016 6:49 am
antibot: No, of course not.

Re: Attempt to build JFreeChart-FSE fails

Post by mrubin » Sun Jun 19, 2016 8:14 am

Hi David,

Many thanks for the prompt reply. Indeed, when skipping the tests, the JAR file builds correctly and stays around.

I am, however, experiencing problems running the demo classes:
  • org.jfree.chart.demo
  • org.jfree.chart.demo.selection
  • org.jfree.chart.fx.demo
Three demos in org.jfree.chart.demo ran correctly, while ApplicationFrame needs needs a main(). All other demos threw exceptions, see the following output log:

Code: Select all

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.BarChartDemo1 

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.PieChartDemo1 

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.TimeSeriesChartDemo1 

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.ApplicationFrame
Error: Main method not found in class org.jfree.chart.demo.ApplicationFrame, please define the main method as:
   public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.selection.SelectionDemo1 
Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.chart.renderer.AbstractRenderer.setPaintIRS(Lorg/jfree/chart/renderer/item/PaintIRS;)V
	at org.jfree.chart.renderer.item.IRSUtilities.setSelectedItemPaintIRS(IRSUtilities.java:192)
	at org.jfree.chart.renderer.item.IRSUtilities.setSelectedItemFillPaint(IRSUtilities.java:208)
	at org.jfree.chart.demo.selection.SelectionDemo1.createChart(SelectionDemo1.java:142)
	at org.jfree.chart.demo.selection.SelectionDemo1.createDemoPanel(SelectionDemo1.java:212)
	at org.jfree.chart.demo.selection.SelectionDemo1.<init>(SelectionDemo1.java:67)
	at org.jfree.chart.demo.selection.SelectionDemo1.main(SelectionDemo1.java:237)

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.selection.SelectionDemo2 
Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.chart.renderer.AbstractRenderer.setPaintIRS(Lorg/jfree/chart/renderer/item/PaintIRS;)V
	at org.jfree.chart.renderer.item.IRSUtilities.setSelectedItemPaintIRS(IRSUtilities.java:192)
	at org.jfree.chart.renderer.item.IRSUtilities.setSelectedItemFillPaint(IRSUtilities.java:208)
	at org.jfree.chart.demo.selection.SelectionDemo2.createChart(SelectionDemo2.java:156)
	at org.jfree.chart.demo.selection.SelectionDemo2.createDemoPanel(SelectionDemo2.java:192)
	at org.jfree.chart.demo.selection.SelectionDemo2.<init>(SelectionDemo2.java:70)
	at org.jfree.chart.demo.selection.SelectionDemo2.main(SelectionDemo2.java:218)

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.selection.SelectionDemo3 
Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.chart.renderer.AbstractRenderer.setPaintIRS(Lorg/jfree/chart/renderer/item/PaintIRS;)V
	at org.jfree.chart.renderer.item.IRSUtilities.setSelectedItemPaintIRS(IRSUtilities.java:192)
	at org.jfree.chart.renderer.item.IRSUtilities.setSelectedItemPaint(IRSUtilities.java:224)
	at org.jfree.chart.demo.selection.SelectionDemo3.createChart(SelectionDemo3.java:138)
	at org.jfree.chart.demo.selection.SelectionDemo3.createDemoPanel(SelectionDemo3.java:202)
	at org.jfree.chart.demo.selection.SelectionDemo3.<init>(SelectionDemo3.java:70)
	at org.jfree.chart.demo.selection.SelectionDemo3.main(SelectionDemo3.java:227)

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.selection.SelectionDemo4 
Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.data.statistics.HistogramDataset.<init>(Ljava/lang/Comparable;)V
	at org.jfree.chart.demo.selection.SelectionDemo4.createDataset(SelectionDemo4.java:117)
	at org.jfree.chart.demo.selection.SelectionDemo4.createDemoPanel(SelectionDemo4.java:173)
	at org.jfree.chart.demo.selection.SelectionDemo4.<init>(SelectionDemo4.java:66)
	at org.jfree.chart.demo.selection.SelectionDemo4.main(SelectionDemo4.java:209)

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.selection.SelectionDemo5Category 
Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.chart.renderer.AbstractRenderer.setPaintIRS(Lorg/jfree/chart/renderer/item/PaintIRS;)V
	at org.jfree.chart.renderer.item.IRSUtilities.setSelectedItemPaintIRS(IRSUtilities.java:192)
	at org.jfree.chart.renderer.item.IRSUtilities.setSelectedItemPaint(IRSUtilities.java:224)
	at org.jfree.chart.demo.selection.SelectionDemo5Category.createChart(SelectionDemo5Category.java:167)
	at org.jfree.chart.demo.selection.SelectionDemo5Category.createDemoPanel(SelectionDemo5Category.java:183)
	at org.jfree.chart.demo.selection.SelectionDemo5Category.<init>(SelectionDemo5Category.java:66)
	at org.jfree.chart.demo.selection.SelectionDemo5Category.main(SelectionDemo5Category.java:222)

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.selection.SelectionDemo6Pie 
Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.chart.ChartPanel.addMouseHandler(Lorg/jfree/chart/panel/AbstractMouseHandler;)V
	at org.jfree.chart.demo.selection.SelectionDemo6Pie.createDemoPanel(SelectionDemo6Pie.java:150)
	at org.jfree.chart.demo.selection.SelectionDemo6Pie.<init>(SelectionDemo6Pie.java:61)
	at org.jfree.chart.demo.selection.SelectionDemo6Pie.main(SelectionDemo6Pie.java:183)

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.demo.selection.SelectionDemo7ScatterRenderer 
Exception in thread "main" java.lang.NoSuchMethodError: org.jfree.chart.plot.CategoryPlot.setBackgroundColor(Ljava/awt/Color;)V
	at org.jfree.chart.demo.selection.SelectionDemo7ScatterRenderer.createChart(SelectionDemo7ScatterRenderer.java:114)
	at org.jfree.chart.demo.selection.SelectionDemo7ScatterRenderer.createDemoPanel(SelectionDemo7ScatterRenderer.java:158)
	at org.jfree.chart.demo.selection.SelectionDemo7ScatterRenderer.<init>(SelectionDemo7ScatterRenderer.java:53)
	at org.jfree.chart.demo.selection.SelectionDemo7ScatterRenderer.main(SelectionDemo7ScatterRenderer.java:183)

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.fx.ChartCanvas 
java.lang.NoClassDefFoundError: org/jfree/fx/FXGraphics2D
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.privateGetMethodRecursive(Unknown Source)
	at java.lang.Class.getMethod0(Unknown Source)
	at java.lang.Class.getMethod(Unknown Source)
	at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
	at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jfree.fx.FXGraphics2D
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 7 more
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" 
C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.fx.demo.BarChartFXDemo1 
Jun 19, 2016 9:48:33 AM javafx.scene.control.Control loadSkinClass
SEVERE: Failed to load skin 'org.jfree.chart.fx.ChartViewerSkin' for control ChartViewer@71740a34[styleClass=root chart-control]
java.lang.NoClassDefFoundError: org/jfree/fx/FXGraphics2D
	at org.jfree.chart.fx.ChartViewerSkin.createNode(ChartViewerSkin.java:200)
	at org.jfree.chart.fx.ChartViewerSkin.<init>(ChartViewerSkin.java:84)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at javafx.scene.control.Control.loadSkinClass(Unknown Source)
	at javafx.scene.control.Control$4.invalidated(Unknown Source)
	at javafx.beans.property.StringPropertyBase.markInvalid(Unknown Source)
	at javafx.beans.property.StringPropertyBase.set(Unknown Source)
	at javafx.css.StyleableStringProperty.set(Unknown Source)
	at javafx.scene.control.Control$4.set(Unknown Source)
	at javafx.css.StyleableStringProperty.applyStyle(Unknown Source)
	at javafx.css.StyleableStringProperty.applyStyle(Unknown Source)
	at javafx.scene.CssStyleHelper.transitionToState(Unknown Source)
	at javafx.scene.Node.impl_processCSS(Unknown Source)
	at javafx.scene.Parent.impl_processCSS(Unknown Source)
	at javafx.scene.control.Control.impl_processCSS(Unknown Source)
	at javafx.scene.Node.processCSS(Unknown Source)
	at javafx.scene.Scene.doCSSPass(Unknown Source)
	at javafx.scene.Scene.preferredSize(Unknown Source)
	at javafx.scene.Scene.impl_preferredSize(Unknown Source)
	at javafx.stage.Window$9.invalidated(Unknown Source)
	at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
	at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
	at javafx.stage.Window.setShowing(Unknown Source)
	at javafx.stage.Window.show(Unknown Source)
	at javafx.stage.Stage.show(Unknown Source)
	at org.jfree.chart.fx.demo.BarChartFXDemo1.start(BarChartFXDemo1.java:115)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(Unknown Source)
	at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(Unknown Source)
	at com.sun.javafx.application.PlatformImpl.lambda$null$173(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(Unknown Source)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.jfree.fx.FXGraphics2D
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 38 more

Jun 19, 2016 9:48:33 AM javafx.scene.control.Control impl_processCSS
SEVERE: The -fx-skin property has not been defined in CSS for ChartViewer@71740a34[styleClass=root chart-control] and createDefaultSkin() returned null.

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.fx.demo.PieChartFXDemo1 
Exception in Application start method
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
	at com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
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.lambda$launchApplication$155(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: org.jfree.chart.title.TextTitle.setHorizontalAlignment(Lorg/jfree/chart/ui/HorizontalAlignment;)V
	at org.jfree.chart.fx.demo.PieChartFXDemo1.createChart(PieChartFXDemo1.java:99)
	at org.jfree.chart.fx.demo.PieChartFXDemo1.start(PieChartFXDemo1.java:155)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(Unknown Source)
	at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(Unknown Source)
	at com.sun.javafx.application.PlatformImpl.lambda$null$173(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(Unknown Source)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
	... 1 more
Exception running application org.jfree.chart.fx.demo.PieChartFXDemo1

C:\Private\MVS\ThirdParty\JFreeChart-FSE\jfreechart-fse>java -classpath target/classes org.jfree.chart.fx.demo.TimeSeriesChartFXDemo1 
Exception in Application start method
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(Unknown Source)
	at com.sun.javafx.application.LauncherImpl.launchApplication(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
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.lambda$launchApplication$155(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoSuchMethodError: org.jfree.chart.title.LegendTitle.setHorizontalAlignment(Lorg/jfree/chart/ui/HorizontalAlignment;)V
	at org.jfree.chart.fx.demo.TimeSeriesChartFXDemo1.createChart(TimeSeriesChartFXDemo1.java:99)
	at org.jfree.chart.fx.demo.TimeSeriesChartFXDemo1.start(TimeSeriesChartFXDemo1.java:430)
	at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(Unknown Source)
	at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(Unknown Source)
	at com.sun.javafx.application.PlatformImpl.lambda$null$173(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(Unknown Source)
	at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
	at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
	at com.sun.glass.ui.win.WinApplication.lambda$null$148(Unknown Source)
	... 1 more
Exception running application org.jfree.chart.fx.demo.TimeSeriesChartFXDemo1
I would very much like to examine the selection demos to understand the lassoing method better. Can the FSE demos be fixed to enable that?

Thanking you in advance,

Moshe

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Attempt to build JFreeChart-FSE fails

Post by david.gilbert » Mon Jun 20, 2016 6:10 am

Hi,

I committed the fixes for the junit tests so if you update you should be able to build with the tests enabled.

When I try running the demos, I get the same error as you for the JavaFX demos but all the others run correctly (except ApplicationFrame which is a support class, not a demo application). I'll fix the JavaFX stuff hopefully tonight. Can you check that you don't have any local changes that could be causing the runtime exceptions?
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

mrubin
Posts: 6
Joined: Thu Jun 16, 2016 6:49 am
antibot: No, of course not.

Re: Attempt to build JFreeChart-FSE fails

Post by mrubin » Mon Jun 20, 2016 3:57 pm

Hi Dave,

Many thanks for committing the junit test fixes. I will carefully check my FSE installation and compilation, including my Java JRE/JDK settings and paths, etc. I will get back to you as soon as I have findings to report.

Regards,

Moshe

mrubin
Posts: 6
Joined: Thu Jun 16, 2016 6:49 am
antibot: No, of course not.

Re: Attempt to build JFreeChart-FSE fails

Post by mrubin » Mon Jun 27, 2016 12:10 pm

Hi Dave,

In answer to your question about why my JFreeChart-FSE demo classes are throwing exceptions, I'm happy to report that everything works correctly with no exceptions. Indeed, as you suggested, I checked the java environment. I noticed that the JRE and JDK versions, although both 1.0, were not the same revision. I cleaned up my Java environment by deleting older JRE/JDK installs, leaving only JRE/JDK 1.8.0._91. Now the FSE demo classes work flawlessly.

I'm about to integrate FSE into my existing projects and will post any issues, if they occur.

Thank you very much for your help and insights,

Moshe

Locked