Error Package Org.exolab.castor.xml Does Not Exist
need to specifiy where they are at the command line. e.g. javac -classpath /home/projects/castor-test/lib/castor-0.9.6.jar ........ Hope that helps. Ralf Kassim Machioudi schrieb: 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 Thread at a glance: Previous Message by Date: Re: [castor-user] how to run castor on Mandrake 10.1 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
org.exolab.castor.xml.*;) i get this error :package org.exolab.castor.xml does not existimport org.exolab.castor.xml.*;^1 errorI'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 Roy van der Kuil 2005-04-08 06:44:49 UTC PermalinkRaw Message 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.javathis should compile http://osdir.com/ml/java.castor.user/2005-04/msg00038.html your program (considered it is called MyProgram.java)Then when you want to run it you'll need a couple more jar files inyour classpath.(classpath is the path where java finds it's classfiles, like the pathin unix is)I think the minimum extra classes you'll need in your classpath are:commons-logging.jar xerces.jarSo start your program with:java http://castor-user.exolab.narkive.com/ZHQMbtWg/how-to-run-castor-on-mandrake-10-1 -cp .:/usr/lib/jdk-1.4.2_05/jre/lib/castor-0.9.6.jar:xerces.jar:commons-logging.jarMyProgram(do not forget the dot at the beginning of the classpath)..Goodluck,RoyPost by Kassim MachioudiHi all,i'm new to Java and want to test castor. While I try to import the packagepackage org.exolab.castor.xml does not existimport org.exolab.castor.xml.*;^1 errorI'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 cancompile my program !?Thx Kassim Machioudi 2005-04-09 03:18:05 UTC PermalinkRaw Message thank you Roy and Ralf for your answers. I'll try it.----- Original Message -----From: "Roy van der Kuil" <***@gmail.com>To: <***@castor.codehaus.org>Sent: Friday, April 08, 2005 3:44 AMSubject: Re: [castor-user] how to run castor on Mandrake 10.1Post by Roy van der KuilHi Kassim,javac -classpath .:/usr/lib/jdk-1.4.2_05/jre/lib/castor-0.9.6.jar MyProgram.javathis 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 inyour classpath.(classpath is the path where java finds it's classfiles, like the pathin unix is)commons-logging.jar xerces.jarjava -cp.:/usr/lib/jdk-1.4.2_05/jre
permitted provided 4 * that the following conditions are met: 5 * 6 * 1. Redistributions of source code must retain copyright 7 * statements and notices. Redistributions must also contain a 8 * copy of this document. 9 http://www.docjar.com/html/api/org/exolab/castor/xml/Unmarshaller.java.html * 10 * 2. Redistributions in binary form must reproduce the 11 * above copyright notice, this list of conditions and the 12 * following disclaimer in the documentation and/or other 13 * materials provided with the distribution. 14 * 15 * 3. The name "Exolab" must not be used to endorse or promote 16 * products derived from this Software without prior written 17 * permission of Intalio, Inc. For written permission, 18 error package * please contact info@exolab.org. 19 * 20 * 4. Products derived from this Software may not be called "Exolab" 21 * nor may "Exolab" appear in their names without prior written 22 * permission of Intalio, Inc. Exolab is a registered 23 * trademark of Intalio, Inc. 24 * 25 * 5. Due credit should be given to the Exolab Project 26 * (http://www.exolab.org/). 27 * 28 * THIS SOFTWARE IS PROVIDED error package org.exolab.castor.xml BY INTALIO, INC. AND CONTRIBUTORS 29 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT 30 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 31 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL 32 * INTALIO, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 33 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 34 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 35 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 37 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 38 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 39 * OF THE POSSIBILITY OF SUCH DAMAGE. 40 * 41 * Copyright 1999-2004 (C) Intalio, Inc. All Rights Reserved. 42 * 43 * $Id: Unmarshaller.java 8057 2009-02-05 22:26:22Z jgrueneis $ 44 */ 45 46 package org.exolab.castor.xml; 47 48 import java.io.PrintWriter; 49 import java.io.Reader; 50 import java.util.HashMap; 51 import java.util.Iterator; 52 import java.util.StringTokenizer; 53 54 import org.apache.commons.logging.Log; 55 import org.apache.commons.logging.LogFactory; 56 import org.castor.mapping.BindingType; 57 import org.castor.mapping.MappingUnmarshaller; 58 import org.castor.xml.BackwardCompatibilityContext; 59 import org.castor.xml.InternalContext; 60 import org.castor.xml.UnmarshalListenerAdapter; 61 import org.castor.xml.XMLProperties; 62 import org.exolab.castor.mapping.Mapping; 63 import org.exolab.castor.mapping.MappingException; 64