Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Import problem in Birt Chart engine
Import problem in Birt Chart engine [message #148015] Sat, 25 March 2006 08:06 Go to next message
Eclipse UserFriend
Originally posted by: tarkeshwar26.yahoo.co.in

hi,
can some one please help me. i can compile even a very basic java file
usin birt. i hava set the class paths in my pc. theis are:
C:\Chart_lib\common.jar;C:\Chart_libcommon.resources.jar;C:\ Chart_lib\core.jar;
C:\Chart_lib\device-extension.jar;C:\Chart_lib\device-svg.ja r;C:\Chart_lib\ecore.jar;
C:\Chart_lib\ecore.resources.jar;C:\Chart_lib\ecore.xmi.jar; C:\Chart_lib\engine.jar;
C:\Chart_lib\engine-extension.jar;C:\Chart_lib\js.jar
BUT then also i can not comile this code:

import org.eclipse.birt.chart.*;
import org.eclipse.birt.chart.model.impl;
import org.eclipse.birt.chart.engine.*;
import org.eclipse.birt.chart.engine.extension.*;
import org.eclipse.birt.chart.device.extension.*;
import org.eclipse.birt.chart.shared.*;
import org.eclipse.birt.core.*;

public class Chartt{
public static void main(String[]args){

ChartWithAxes cwaEmpty = ChartWithAxesImpl.create();
cwaEmpty.getTitle().getLabel().getCaption().setValue("Hello Chart");

}
}

i got the following errors
C:\Chart>javac Chartt.java
Chartt.java:1: package org.eclipse.birt.chart does not exist
import org.eclipse.birt.chart.*;
^
Chartt.java:2: package org.eclipse.birt.chart.model does not exist
import org.eclipse.birt.chart.model.impl;
^
Chartt.java:3: package org.eclipse.birt.chart.engine does not exist
import org.eclipse.birt.chart.engine.*;
^
Chartt.java:4: package org.eclipse.birt.chart.engine.extension does not
exist
import org.eclipse.birt.chart.engine.extension.*;
^
Chartt.java:5: package org.eclipse.birt.chart.device.extension does not
exist
import org.eclipse.birt.chart.device.extension.*;
^
Chartt.java:6: package org.eclipse.birt.chart.shared does not exist
import org.eclipse.birt.chart.shared.*;
^
Chartt.java:7: package org.eclipse.birt.core does not exist
import org.eclipse.birt.core.*;
^
Chartt.java:12: cannot find symbol
symbol : class ChartWithAxes
location: class Chartt
ChartWithAxes cwaEmpty = ChartWithAxesImpl.create();
^
Chartt.java:12: cannot find symbol
symbol : variable ChartWithAxesImpl
location: class Chartt
ChartWithAxes cwaEmpty = ChartWithAxesImpl.create();
^
9 errors

C:\Chart>

PLEASE SOME ONE HELP ME AND GIVE A SAMPLE PROGRAM FOR CREATING A CHAT .
WITHH ALL THE IMPORTS AND ANY SPECIAL THING THAT MAY REQUIRE TO RUN THAT
PROGRAM.
Re: Import problem in Birt Chart engine [message #148023 is a reply to message #148015] Sat, 25 March 2006 09:47 Go to previous message
David Michonneau is currently offline David MichonneauFriend
Messages: 1145
Registered: July 2009
Senior Member
Hi,

Take a look at the org.eclipse.birt.chart.examples plugin, it contains
examples of code to create charts, and the project is set up to compile
correctly.

Thanks,

David

"Tarkeshwar " <tarkeshwar26@yahoo.co.in> wrote in message
news:bd7b9a23e9d64e846edfdc2d35f27018$1@www.eclipse.org...
> hi,
> can some one please help me. i can compile even a very basic java file
> usin birt. i hava set the class paths in my pc. theis are:
> C:\Chart_lib\common.jar;C:\Chart_libcommon.resources.jar;C:\ Chart_lib\core.jar;
> C:\Chart_lib\device-extension.jar;C:\Chart_lib\device-svg.ja r;C:\Chart_lib\ecore.jar;
> C:\Chart_lib\ecore.resources.jar;C:\Chart_lib\ecore.xmi.jar; C:\Chart_lib\engine.jar;
> C:\Chart_lib\engine-extension.jar;C:\Chart_lib\js.jar
> BUT then also i can not comile this code:
>
> import org.eclipse.birt.chart.*;
> import org.eclipse.birt.chart.model.impl;
> import org.eclipse.birt.chart.engine.*;
> import org.eclipse.birt.chart.engine.extension.*;
> import org.eclipse.birt.chart.device.extension.*;
> import org.eclipse.birt.chart.shared.*;
> import org.eclipse.birt.core.*;
>
> public class Chartt{
> public static void main(String[]args){
>
> ChartWithAxes cwaEmpty = ChartWithAxesImpl.create();
> cwaEmpty.getTitle().getLabel().getCaption().setValue("Hello Chart");
>
> }
> }
>
> i got the following errors
> C:\Chart>javac Chartt.java
> Chartt.java:1: package org.eclipse.birt.chart does not exist
> import org.eclipse.birt.chart.*;
> ^
> Chartt.java:2: package org.eclipse.birt.chart.model does not exist
> import org.eclipse.birt.chart.model.impl;
> ^
> Chartt.java:3: package org.eclipse.birt.chart.engine does not exist
> import org.eclipse.birt.chart.engine.*;
> ^
> Chartt.java:4: package org.eclipse.birt.chart.engine.extension does not
> exist
> import org.eclipse.birt.chart.engine.extension.*;
> ^
> Chartt.java:5: package org.eclipse.birt.chart.device.extension does not
> exist
> import org.eclipse.birt.chart.device.extension.*;
> ^
> Chartt.java:6: package org.eclipse.birt.chart.shared does not exist
> import org.eclipse.birt.chart.shared.*;
> ^
> Chartt.java:7: package org.eclipse.birt.core does not exist
> import org.eclipse.birt.core.*;
> ^
> Chartt.java:12: cannot find symbol
> symbol : class ChartWithAxes
> location: class Chartt
> ChartWithAxes cwaEmpty = ChartWithAxesImpl.create();
> ^
> Chartt.java:12: cannot find symbol
> symbol : variable ChartWithAxesImpl
> location: class Chartt
> ChartWithAxes cwaEmpty = ChartWithAxesImpl.create();
> ^
> 9 errors
>
> C:\Chart>
>
> PLEASE SOME ONE HELP ME AND GIVE A SAMPLE PROGRAM FOR CREATING A CHAT .
> WITHH ALL THE IMPORTS AND ANY SPECIAL THING THAT MAY REQUIRE TO RUN THAT
> PROGRAM.
>
>
>
Previous Topic:_format=pdf
Next Topic:datetime fields are always truncating the time to 00:00
Goto Forum:
  


Current Time: Wed Jul 03 10:22:39 GMT 2024

Powered by FUDForum. Page generated in 0.02622 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top