JFreeChart on Windows 7?
-
- Posts: 23
- Joined: Mon Jul 06, 2009 12:59 pm
JFreeChart on Windows 7?
I have heard of people successfully using the version of JFreeChart and JCommon that I have (1.0.13 and 1.0.16 respectively), but when I try running my application, the window where the chart panel should be is blank. It displays properly on Vista and XP. I am clearly doing something wrong, but I'm not sure what.
Re: JFreeChart on Windows 7?
What java version are you using ?
-
- Posts: 23
- Joined: Mon Jul 06, 2009 12:59 pm
Re: JFreeChart on Windows 7?
Whoops, I should have specified that in my first post.
I compiled it with JDK 1.6.0_14 (By compiled I mean into an executable JAR), and tried running it under both that and JRE 6 update 21, with the same results on both.

I compiled it with JDK 1.6.0_14 (By compiled I mean into an executable JAR), and tried running it under both that and JRE 6 update 21, with the same results on both.
-
- Posts: 1634
- Joined: Sat Feb 17, 2007 1:51 pm
Re: JFreeChart on Windows 7?
I have seen a jFreeChart based app run smoothly under windows, so whatever problem you have, it does not seem to be general.
Since you haven´t given any information about the app (JFree demo, something you have made, something that is using a database, Swing or SWT based, use of a specific LAF), I can only guess.
And my guess would by that your code is creating an exception under Windows7 that does not occur under the other systems. Are you seeing any exceptions?
Since you haven´t given any information about the app (JFree demo, something you have made, something that is using a database, Swing or SWT based, use of a specific LAF), I can only guess.
And my guess would by that your code is creating an exception under Windows7 that does not occur under the other systems. Are you seeing any exceptions?
-
- Posts: 23
- Joined: Mon Jul 06, 2009 12:59 pm
Re: JFreeChart on Windows 7?
It does use Swing components, but those are displaying. It's only the JFreeChart items I can't see.
And I am not getting any exceptions.
And I am not getting any exceptions.
Re: JFreeChart on Windows 7?
Do the demos included with the distribution work?
-
- Posts: 23
- Joined: Mon Jul 06, 2009 12:59 pm
Re: JFreeChart on Windows 7?
They do not, with the same problem that my own application has - the window comes up and remains blank, with no actual errors.
Re: JFreeChart on Windows 7?
Perhaps there is some conflict with the video drivers. Try including one or both of these in the command line
Code: Select all
-Dsun.java2d.opengl=false
-Dsun.java2d.noddraw=true
-
- Posts: 23
- Joined: Mon Jul 06, 2009 12:59 pm
Re: JFreeChart on Windows 7?
That did the trick! Brilliant work!