JFreeChart on Windows 7?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Mike Keller
Posts: 23
Joined: Mon Jul 06, 2009 12:59 pm

JFreeChart on Windows 7?

Post by Mike Keller » Thu Aug 12, 2010 5:25 pm

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.

pooo
Posts: 9
Joined: Tue Jul 13, 2010 2:04 pm
antibot: No, of course not.

Re: JFreeChart on Windows 7?

Post by pooo » Fri Aug 13, 2010 8:51 am

What java version are you using ?

Mike Keller
Posts: 23
Joined: Mon Jul 06, 2009 12:59 pm

Re: JFreeChart on Windows 7?

Post by Mike Keller » Fri Aug 13, 2010 7:59 pm

Whoops, I should have specified that in my first post. :oops:

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.

paradoxoff
Posts: 1634
Joined: Sat Feb 17, 2007 1:51 pm

Re: JFreeChart on Windows 7?

Post by paradoxoff » Sat Aug 14, 2010 11:28 am

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?

Mike Keller
Posts: 23
Joined: Mon Jul 06, 2009 12:59 pm

Re: JFreeChart on Windows 7?

Post by Mike Keller » Sat Aug 14, 2010 3:13 pm

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.

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: JFreeChart on Windows 7?

Post by skunk » Sat Aug 14, 2010 4:18 pm

Do the demos included with the distribution work?

Mike Keller
Posts: 23
Joined: Mon Jul 06, 2009 12:59 pm

Re: JFreeChart on Windows 7?

Post by Mike Keller » Mon Aug 16, 2010 1:52 pm

They do not, with the same problem that my own application has - the window comes up and remains blank, with no actual errors.

skunk
Posts: 1087
Joined: Thu Jun 02, 2005 10:14 pm
Location: Brisbane, Australia

Re: JFreeChart on Windows 7?

Post by skunk » Mon Aug 16, 2010 3:31 pm

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

Mike Keller
Posts: 23
Joined: Mon Jul 06, 2009 12:59 pm

Re: JFreeChart on Windows 7?

Post by Mike Keller » Mon Aug 16, 2010 3:47 pm

That did the trick! Brilliant work!

Locked