Thanks for responding
I added the classpath entry and imported the required classes ...but still
it says : i am I missing something here ?
IBindingFactory cannot be resolved to a type
BindingDirectory cannot be resolved
IUnmarshallingContext cannot be resolved to a type
JiBXException cannot be resolved to a type
e cannot be resolved
On Tue, Jun 10, 2008 at 12:16 AM, Varghese C V <[EMAIL PROTECTED]>
wrote:
> It looks like you have dont have jibx-run.jar in your classpath
>
> Ajay Deshpande wrote:
> > Hello
> >
> > My source code looks like this : ..When i try to compile : It gives me
> > an error saying :
> >
> > IBindingFactory cannot be resolved to a type
> > BindingDirectory cannot be resolved
> > IUnmarshallingContext cannot be resolved to a type
> > JiBXException cannot be resolved to a type
> > e cannot be resolved
> >
> > How do i declare the BindingDirectory ..so that i can compile
> > succesfullY ?
> >
> > Inputs will be highly appreciated .
> >
> > import org.jibx.runtime.BindingDirectory;
> > import org.jibx.runtime.IBindingFactory;
> > import org.jibx.runtime.IMarshallingContext;
> > import org.jibx.runtime.IUnmarshallingContext;
> >
> > import java.io.FileNotFoundException;
> > public class Test
> > {
> >
> > //Unmarshall the sample document from a file
> > public static void main(String[] args)
> > {
> > if (args.length < 2)
> > {
> > System.out.println("Usage: java -cp ... " + "org.jibx.starter.Test
> > input-file output-file");
> > System.exit(0);
> > }
> > try
> > {
> > IBindingFactory bfact =
> > BindingDirectory.getFactory(Publication.class);
> > // unmarshal information from file
> > IUnmarshallingContext uctx =
> > bfact.createUnmarshallingContext();
> > //FileInputStream in = new FileInputStream(args[0]);
> > //Object obj = uctx.unmarshalDocument(new
> > FileInputStream("data.xml"), null);
> > Publication publication =
> > (Publication)uctx.unmarshalDocument("data.xml", null);
> >
> > // we can add code here to alter the unmarshalled question
> > }
> > catch (FileNotFoundException e)
> > {
> > e.printStackTrace();
> > System.exit(1);
> > }
> > catch (JiBXException e)
> > {
> > e.printStackTrace();
> > System.exit(1);
> > }
> > }
> > }
> > ------------------------------------------------------------------------
> >
> > -------------------------------------------------------------------------
> > Check out the new SourceForge.net Marketplace.
> > It's the best place to buy or sell services for
> > just about anything Open Source.
> > http://sourceforge.net/services/buy/index.php
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > jibx-users mailing list
> > jibx-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jibx-users
> >
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users