User (Legacy) Posted October 8, 2004 Report Share Posted October 8, 2004 Hi. I'm using ChatFX for java development version. I'm trying to compile the Chart.java file which source is: import SoftwareFX.ChartFX.*; public class Chart { public static void main(String[] args) { Chart to = new Chart(); to.exportChart(FileFormat.PNG,"test.png"); } } To compile, I use the following command line: javac -classpath /usr/local/cfxjava/designer/chartfx.jar Chart.java But the compilator complains saying: Chart.java:6: cannot resolve symbol symbol : method exportChart (int,java.lang.String) location: class Chart to.exportChart(FileFormat.PNG,"test.png"); ^ Any help please? Thanks in advance. JuJu Link to comment Share on other sites More sharing options...
User (Legacy) Posted October 11, 2004 Author Report Share Posted October 11, 2004 JuJu wrote: > Hi. > I'm using ChatFX for java development version. > I'm trying to compile the Chart.java file which source is: > SNIP > > To compile, I use the following command line: > javac -classpath /usr/local/cfxjava/designer/chartfx.jar Chart.java > > But the compilator complains saying: > > Chart.java:6: cannot resolve symbol > symbol : method exportChart (int,java.lang.String) > location: class Chart > to.exportChart(FileFormat.PNG,"test.png"); > ^ > > Any help please? > Thanks in advance. > > JuJu Ok, forget this stupid question (the filename was not a very good choice!), and let's see this one: I'm still using ChatFX for java development version with JDK1.4.2_05. I've created the following file named "Graphique.java" which contains: import SoftwareFX.ChartFX.*; class Graphique { public static void main(String[] args) { Chart chartl; // = new Chart(); chartl = new Chart(); } } It's very simple. So, to compile, I do the following: javac -classpath .:/usr/local/cfxjava/designer/chartfx.jar Graphique.java It works fine, and thus generate a Graphique.class file. Then, I try to execute with the command line: java -classpath .:/usr/local/cfxjava/designer/chartfx.jar:/usr/local/cfxjava/designer/jai_codec.jar:/usr/local/cfxjava/designer/jai_core.jar:/usr/local/j2sdk1.4.2.05/jre/lib/rt.jar:/usr/local/j2sdk1.4.2.05/lib/tools.jar:/usr/local/cfxjava/designer/chartfx.designer.jar -Djava.awt.headless=true Graphique and I get the following error: java.util.zip.ZipException: Is a directory at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:112) at java.util.jar.JarFile.<init>(JarFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:79) at SoftwareFX.ChartFX.wxwy.vVxW(Unknown Source) at SoftwareFX.ChartFX.wxwy.VVxW(Unknown Source) at SoftwareFX.ChartFX.ywvw.wwVW(Unknown Source) at SoftwareFX.ChartFX.ywvw.ZwVW(Unknown Source) at SoftwareFX.ChartFX.ywvw.<init>(Unknown Source) at SoftwareFX.ChartFX._Chart.<init>(Unknown Source) at SoftwareFX.ChartFX.Chart.<init>(Unknown Source) at Graphique.main(Graphique.java:6) Designer license found for non designer app It seems to be a Jar error or something like that. I ran all these commands being 'root'. Any one to help me please? Thanks in advance. JuJu Link to comment Share on other sites More sharing options...
Software FX Posted October 11, 2004 Report Share Posted October 11, 2004 Hi, you are including the wrong path to your class path. By using .:/usr/local/cfxjava/designer/chartfx.jar you are using the designer license, which allows chart FX for Java to work "only" with the Chart FX for Java Designer. The license file is picked up from the same location where chartfx.jar is. Use .:/usr/local/cfxjava/server/WEB-INF/lib/chartfx.jar instead. That folder contains the proper license. GA Software FX, Inc. "JuJu" <jujut@free.fr> wrote in message news:nqigVN3rEHA.3984@webserver3.softwarefx.com... > JuJu wrote: >> Hi. >> I'm using ChatFX for java development version. >> I'm trying to compile the Chart.java file which source is: >> > SNIP >> >> To compile, I use the following command line: >> javac -classpath /usr/local/cfxjava/designer/chartfx.jar Chart.java >> >> But the compilator complains saying: >> >> Chart.java:6: cannot resolve symbol >> symbol : method exportChart (int,java.lang.String) >> location: class Chart >> to.exportChart(FileFormat.PNG,"test.png"); >> ^ >> >> Any help please? >> Thanks in advance. >> >> JuJu > Ok, forget this stupid question (the filename was not a very good > choice!), and let's see this one: > > I'm still using ChatFX for java development version with JDK1.4.2_05. > I've created the following file named "Graphique.java" which contains: > > import SoftwareFX.ChartFX.*; > > class Graphique { > public static void main(String[] args) { > Chart chartl; // = new Chart(); > chartl = new Chart(); > } > } > > It's very simple. So, to compile, I do the following: > javac -classpath .:/usr/local/cfxjava/designer/chartfx.jar Graphique.java > > It works fine, and thus generate a Graphique.class file. > Then, I try to execute with the command line: > java -classpath > .:/usr/local/cfxjava/designer/chartfx.jar:/usr/local/cfxjava/designer/jai_codec.jar:/usr/local/cfxjava/designer/jai_core.jar:/usr/local/j2sdk1.4.2.05/jre/lib/rt.jar:/usr/local/j2sdk1.4.2.05/lib/tools.jar:/usr/local/cfxjava/designer/chartfx.designer.jar > -Djava.awt.headless=true Graphique > > and I get the following error: > java.util.zip.ZipException: Is a directory > at java.util.zip.ZipFile.open(Native Method) > at java.util.zip.ZipFile.<init>(ZipFile.java:112) > at java.util.jar.JarFile.<init>(JarFile.java:127) > at java.util.jar.JarFile.<init>(JarFile.java:79) > at SoftwareFX.ChartFX.wxwy.vVxW(Unknown Source) > at SoftwareFX.ChartFX.wxwy.VVxW(Unknown Source) > at SoftwareFX.ChartFX.ywvw.wwVW(Unknown Source) > at SoftwareFX.ChartFX.ywvw.ZwVW(Unknown Source) > at SoftwareFX.ChartFX.ywvw.<init>(Unknown Source) > at SoftwareFX.ChartFX._Chart.<init>(Unknown Source) > at SoftwareFX.ChartFX.Chart.<init>(Unknown Source) > at Graphique.main(Graphique.java:6) > Designer license found for non designer app > > It seems to be a Jar error or something like that. > > I ran all these commands being 'root'. > > Any one to help me please? > Thanks in advance. > > JuJu Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.