problem compiling resource bundle classes

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Clarke Morris

problem compiling resource bundle classes

Post by Clarke Morris » Wed May 01, 2002 11:22 pm

When I try to compile the JFreeChartDemo I get the following error message:

error:cannot read: com/jrefinery/chart/demo/resources/*.java

I couldn't run the JFreeChartDemo as stated on pg. 18 of the freechart installation pdf file. I used the following command:

java -classpath jfreechart-0.8.1.jar:jcommon-0.6.1.jar
com.jrefinery.chart.demo.JFreeChartDemo


Then I tried to to separately compile the resource bundle classes.
I'm putting in the following command, as stated on pg. 19 of the freechart installation pdf file:

javac -g:none -O -verbose -classpath .:../jars/jcommon-0.6.1.jar com/jrefinery/chart/demo/resources/*.java

I have put all possible necessary paths in my classpath.

I am using SDK1.4.0.

Any ideas?

David Gilbert

Re: problem compiling resource bundle classes

Post by David Gilbert » Thu May 02, 2002 6:21 am

Clarke Morris wrote:
> error:cannot read: com/jrefinery/chart/demo/resources/*.java

You should have four source files in that directory - are they there?

> I couldn't run the JFreeChartDemo as stated on pg. 18 of the
> freechart installation pdf file. I used the following command:
>
> java -classpath jfreechart-0.8.1.jar:jcommon-0.6.1.jar
> com.jrefinery.chart.demo.JFreeChartDemo

What error did you get? Note that path separator (the colon between the jar file names) should be a semi-colon if you are using Windows.

> Then I tried to to separately compile the resource bundle
> classes.
> I'm putting in the following command, as stated on pg. 19 of
> the freechart installation pdf file:
>
> javac -g:none -O -verbose -classpath
> .:../jars/jcommon-0.6.1.jar
> com/jrefinery/chart/demo/resources/*.java

Did this give you an error?

Regards,

DG.

Clarke Morris

Re: problem compiling resource bundle classes

Post by Clarke Morris » Thu May 02, 2002 5:27 pm

Now that it is morning, and I am thinking clearly, let me restate my problem.
When I try to run the demo with the following command I get the following error:

command:

java -classpath jfreechart-0.8.1.jar:jcommon-0.6.1.jar
com.jrefinery.chart.demo.JFreeChartDemo

error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/jrefinery/chart/demo/JFreeChartDemo

* I tried it with a semicolon between jar and jcommon... I got the same error.
* I looked for the four files in the resources folder, and they are there.
DemoResources.java
DemoResources_de.java
DemoResources_es.java
DemoResources_fr.java



It was when I tried to compile the resource bundles that I got the following error:

command:

javac -g:none -O -verbose -classpath
.:../jars/jcommon-0.6.1.jar
com/jrefinery/chart/demo/resources/*.java

error:

error:cannot read: com/jrefinery/chart/demo/resources/*.java


* I tried running it again replacing the : with a ; and it still gave me the same error.


Thanks for answering my last note so quickly. I'm used to responses coming days after I enter them.
-Clarke

David Gilbert

Re: problem compiling resource bundle classes

Post by David Gilbert » Fri May 03, 2002 10:26 am

Was there an older version of the java tool that used -cp rather than -classpath? That's about all I can think of...

DG.

Locked