ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Help in running chart director
Posted by geoff on Sep-05-2009 19:39
Hi everyone, I just downloaded the .war file and docs of chartdirector and I'm trying to run
it. I browse the docs and found the instructions I belong to the category of wanting to use
this on a standalone java program not web/jsp. So, based on the instructions I extracted
the .war file on my desktop also the chardirector_s.jar and then openened the gantt.java
and compiled it. It does not run because of some errors:


a. cannot find symbol (pointing to the first line "public class gantt implements demo")

b. cannot access chartviewer(pointing to "public void createChart(ChartViewer viewer, int
index)")

Again, I am running the gantt.java file under the javademo folder.

If someone can help me try to run this I truly appreciate it.

Thanks.

regards,

geoff

  Re: Help in running chart director
Posted by geoff on Sep-05-2009 19:41
I'm so sorry my previous post is regarding colorgantt.java

With gantt.java I only get this error - cannot access ChartDirector.aL

Hoping someone can help or clarify things.

Thanks again

  Re: Help in running chart director
Posted by geoff on Sep-05-2009 19:51
Hello again.

I can now compile all of the java program in javademo successfully however all of them does
not show the program. I always get "Exception in thread "main"
Java.Lang.NoClassDefFoundError:CharDirector/bV (wrong name: ChartDirector/bv)"

My apologies if i kept on posting but I am just eager to see this and make it run correctly.

Thanks understanding and your help.

  Re: Help in running chart director
Posted by Peter Kwan on Sep-05-2009 22:41
Hi geoff,

Is it possible that you have extracted the contents inside "ChartDirector_s.jar" or "ChartDirector.jar" to your hard disk?

The installation instruction mentions about extracting the "WAR" file, but not the "JAR" file.

As a general Java rule, one should not extract any "JAR" file in Windows or Mac OS X. It is because Java is case sensitive. For example, "aaa.class" and "AAA.class" are two different classes, represented as two different class files. However, the file system in Windows or Mac OS X is case insensitive. So if you extract the class files out, the two files "aaa.class" and "AAA.class" will overwrite each other, and you would end up losing one of the files.

Please make sure you have not extracted the contents in "ChartDirector_s.jar" or "ChartDirector.jar" to your hard disk. There should be no "ChartDirector/bv.class" file in your hard disk at all. Please compile and run your code as according to the steps in the Installation section of the ChartDirector documentation:

[Microsoft Windows Command Shell Syntax]

javac -classpath "ChartDirector_s.jar;." ChartDirectorDemo.java
java -classpath "ChartDirector_s.jar;." ChartDirectorDemo

Hope this can help.

Regards
Peter Kwan