Hi Kassim,

If you could try to compile your program with the following command:
javac -classpath .:/usr/lib/jdk-1.4.2_05/jre/lib/castor-0.9.6.jar MyProgram.java

this should compile your program (considered it is called MyProgram.java)

Then when you want to run it you'll need a couple more jar files in
your classpath.
(classpath is the path where java finds it's classfiles, like the path
in unix is)

I think the minimum extra classes you'll need in your classpath are:
commons-logging.jar  xerces.jar

So start your program with:
java -cp 
.:/usr/lib/jdk-1.4.2_05/jre/lib/castor-0.9.6.jar:xerces.jar:commons-logging.jar
MyProgram
(do not forget the dot at the beginning of the classpath)..

Goodluck,
Roy


On Apr 8, 2005 5:44 AM, Kassim Machioudi <[EMAIL PROTECTED]> wrote:
>  
> Hi all, 
> i'm new to Java and want to test castor. While I try to import the package
> (import org.exolab.castor.xml.*;) i get this error : 
>   
> package org.exolab.castor.xml does not exist
> import org.exolab.castor.xml.*;
> ^
> 1 error 
>   
> I've download castor-0.9.6.jar on the website and put the jar file in
> /usr/lib/jdk-1.4.2_05/jre/lib/ on my linux box. Do somebody know why i can
> compile my program !? 
>   
> Thx

Reply via email to