compiling JFreeChart.java
compiling JFreeChart.java
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.
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.
compiling JFreeChart.java
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.
if not, i'll send you the stack.
compilation problem rephrased
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 ???
can someone please explain to me why that is ???
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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;
- your JDK version;
- operating system;
- the version of Ant you have installed;
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


JFreeChart.java
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.
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.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
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
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


partially solved
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.
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.
my bad
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 ...
until next time ...
op error
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.
thanks.
I know that voluntary advice can be a bit annoying, but... Wordpad to edit Java files? Don't torture yourself like that!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.
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.

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
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