oo my machine has two jvm
Thanks dear.

abhishek@:xerces-2_7_1$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 (Ubuntu 4.1.2-0ubuntu5)

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
abhishek@:xerces-2_7_1$


abhishek@:xerces-2_7_1$ /usr/lib/jvm/java-6-sun-1.6.0.00/bin/java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)
abhishek@:xerces-2_7_1$



On Mon, Mar 10, 2008 at 5:37 PM, Prashant Reddy <[EMAIL PROTECTED]> wrote:
> Hi Abbhishek,
>
>  >From the stacktrace it looks like GCJ is getting picked up. I am not
>  sure this was your intention.
>
>  The exception also indicates that the JVM you are using (GCJ) is not
>  capable of running the class file that was compiled using another
>  version of Java.
>
>  You could try :
>
>  Giving complete path to java executable. something like :
>  /usr/lib/jvm/java-6-sun-1.6.0.00/bin/java dom.Counter
>
>  HTH
>  -Prashant
>
>
>
>  On Mon, 2008-03-10 at 16:57 +0530, Abbhishek Misra wrote:
>  > Hello,
>  >
>  >  I'm new to Xerces and have some background in Java.
>  >
>  >  I'm having problem running the command line samples
>  >
>  >  abhishek@:xerces-2_7_1$ java  dom.Counter -s -f -v %1
>  >  Exception in thread "main" java.lang.ClassFormatError: dom.Counter
>  >  (unrecognized class file version)
>  >    at java.lang.VMClassLoader.defineClass(libgcj.so.70)
>  >    at java.lang.ClassLoader.defineClass(libgcj.so.70)
>  >    at java.security.SecureClassLoader.defineClass(libgcj.so.70)
>  >    at java.net.URLClassLoader.findClass(libgcj.so.70)
>  >    at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70)
>  >    at java.lang.ClassLoader.loadClass(libgcj.so.70)
>  >    at java.lang.ClassLoader.loadClass(libgcj.so.70)
>  >    at gnu.java.lang.MainThread.run(libgcj.so.70)
>  >  abhishek@:xerces-2_7_1$
>  >
>  >  Could someone illustrate how to run these samples !!
>  >  Is there a tutorial/quick-start  for the same ?
>  >  
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  >
>  >  I downloaded source, tools, tests from svn and tried a build of the same
>  >
>  >  build.sh tests
>  >  build.sh jars
>  >
>  >  it builds fine.
>  >
>  >  following are env variables
>  >
>  >  abhishek@:xerces-2_7_1$ env | grep -i java
>  >  LOCALCLASSPATH=/usr/lib/jvm/java-6-sun-1.6.0.00/lib/tools.jar:.
>  >  JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00
>  >  JAVA_FONTS=/usr/share/fonts/truetype
>  >  
> CLASSPATH=.:/home/abhishek/Desktop/xerces-2_7_1/tools/xercesImpl.jar:/home/abhishek/Desktop/xerces-2_7_1/tools/xml-apis.jar:/home/abhishek/Desktop/xerces-2_7_1/build/xercesSamples.jar:/usr/share/java/xmlParserAPIs.jar
>  >  abhishek@:xerces-2_7_1$
>  >
>  >  bye
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to