compiling JFreeChart.java

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
jcamp
Posts: 36
Joined: Thu Apr 01, 2004 4:20 pm

compiling JFreeChart.java

Post by jcamp » Fri May 07, 2004 7:38 pm

when using ant to compile JFreeChart, i get error messages saying that the class Rectangle2D etc. can not be found.

can someone tell me how to remedy this. i have j2sdk 1.4.2_03. beyond that i don't know what else i need.

Mimil
JFreeReport Staff Member
Posts: 69
Joined: Tue Mar 25, 2003 7:33 pm

Post by Mimil » Sat May 08, 2004 11:30 pm

Hi,

Rectangle2D ??? That is an internal java class (java.awt.geom.Rectangle2D)
Can you past the full stack trace, i think that the problem comes from elsewhere.

Bye,
Mimil

jcamp
Posts: 36
Joined: Thu Apr 01, 2004 4:20 pm

compiling JFreeChart.java

Post by jcamp » Sun May 09, 2004 1:48 am

thanks for your offer. i believe i may have figured out the problem. i'll know some time monday.

if not, i'll send you the stack.

jcamp
Posts: 36
Joined: Thu Apr 01, 2004 4:20 pm

compilation problem rephrased

Post by jcamp » Mon May 10, 2004 8:44 pm

downloading a fresh jfreechart-0.1.18 (complete with ant and other folders) if i change anything in the JFreeChart.java file and run 'ant compile' i get a bazillion error messages.

can someone please explain to me why that is ???

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

Post by david.gilbert » Mon May 10, 2004 10:14 pm

Why don't you post the error messages (or the first dozen lines or so)? Other useful information includes:

- your JDK version;
- operating system;
- the version of Ant you have installed;
David Gilbert
JFreeChart Project Leader

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

jcamp
Posts: 36
Joined: Thu Apr 01, 2004 4:20 pm

JFreeChart.java

Post by jcamp » Mon May 10, 2004 10:46 pm

jfreechart: 0.9.18
jdk: 1.4.2_03
os: windows 2000 professional

there appears to be something wrong with the jfreechart-0.9.18.zip file.

if you make any change (delete a period and put it back) and then re-compile JFreechart.java, you will get a myriad of errors.

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

Post by david.gilbert » Mon May 10, 2004 11:12 pm

I still need to know what version of Ant you are using and what the error messages say...otherwise I can only make blind guesses.
David Gilbert
JFreeChart Project Leader

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

jcamp
Posts: 36
Joined: Thu Apr 01, 2004 4:20 pm

partially solved

Post by jcamp » Tue May 11, 2004 12:13 am

sorry about forgetting the 'ant' part of your request.

i'm at home now so i'm not sure of the version but i only dowloaded ant, and got the very latest version, just a couple of months ago. so i'm sure that's not the problem. in fact, any other file in the charts folder compiles without a problem it's just the JFreeChart.java that's giving me the headache.

i have, however, discovered that for some reason the JFreeChart.java file as it stands won't compile because there is some garbled text somewhere.

i created a brand new text file and took the guts out of the JFreeChart.java file that came packaged in the zip file and put it in the new text file. i then renamed the text file JFreeChart.java and that got rid of most of the errors.

l'll go from here tomorrow and if i can't remedy the remaining errors i'll post again.

thanks for your help.

jcamp
Posts: 36
Joined: Thu Apr 01, 2004 4:20 pm

my bad

Post by jcamp » Tue May 11, 2004 2:58 pm

looks like the problem was 'op error.' if i click on the JFreeChart.java file and edit it and try to compile i get all the error messages. if, instead of clicking, i right click and say open with wordpad and then compile things work fine.

until next time ...

Mimil
JFreeReport Staff Member
Posts: 69
Joined: Tue Mar 25, 2003 7:33 pm

Post by Mimil » Tue May 11, 2004 3:07 pm

Hi,

Can you post all errors? (the full output)
Else it is hard to help you because we can't know from where the problem comes ;)

Bye,
Mimil

jcamp
Posts: 36
Joined: Thu Apr 01, 2004 4:20 pm

op error

Post by jcamp » Tue May 11, 2004 3:19 pm

no need to post the errors. the problem was that i had assumed that when i clicked the program it was being opened with wordpad. apparently not. i just changed the 'open with' to use wordpad on all .java files and things are working fine.

thanks.

garv
Posts: 127
Joined: Wed Mar 31, 2004 3:44 pm
Location: Amsterdam, The Netherlands

Post by garv » Tue May 11, 2004 3:55 pm

JCamp wrote:the problem was that i had assumed that when i clicked the program it was being opened with wordpad. apparently not. i just changed the 'open with' to use wordpad on all .java files and things are working fine.
I know that voluntary advice can be a bit annoying, but... Wordpad to edit Java files? Don't torture yourself like that!

Try Crimson Editor. It's completely free of charge, and its got syntax highlighting and line numbering. Do yourself a favour, you've earned it. ;)

Mimil
JFreeReport Staff Member
Posts: 69
Joined: Tue Mar 25, 2003 7:33 pm

Post by Mimil » Tue May 11, 2004 5:11 pm

Yes, as garv said, use an real java editor.

But, anyway, i don't understand the problem. Well, yes I understand, but this problem shouldn't appear because java, as i know, don't realy care about the end-of-line statement.
I mean, if sources have been edited under linux the EOF will only be <CR> and if they have been edited under windows it will be <CR><LF> (or the opposit, i don't really rememeber).
I suppose that David use Linux and you windows so you will have this behaviour.
But java don't care about that, so it is strange!

Bye,
Mimil

jcamp
Posts: 36
Joined: Thu Apr 01, 2004 4:20 pm

advice

Post by jcamp » Wed May 12, 2004 1:37 am

thanks for the 'heads up' on the editor. i'm a rut kinda guy, but i'll see if i can force myself to shift gears :)

Locked