Well, i successfully compiled my schemas using the following command
(hooray):
scomp -d classes -src sources -out spsXMLBindings.jar -mx 512M -catalog
CustomCatalog.xml <pathToMySchemasThatImportGML>
But when i try the following command i get the same errors again:
scomp -d classes -src sources -out spsXMLBindings.jar -javasource 1.5
-mx 512M -catalog CustomCatalog.xml <pathToMySchemasThatImportGML>
So the problem seems to occur when i use the option '-javasource 1.5'.
Now another question could be whether the problem is a result of
compiling the schemas that import the GML-schemas or if the GML-schemas
cause the error. So i tried to compile the GML-schemas as you did:
scomp -d classes -src sources -out gml311.jar -dl -mx 512M gml311/base
(this works)
scomp -d classes -src sources -out gml311.jar -dl -javasource 1.5 -mx
512M gml311/base (this does not work!)
My setup:
XMLBEANS_HOME is set to C:\Daten\xmlbeans-2.0.0
JAVA_HOME is set to: C:\Programme\Java\jdk1.5.0_01
CLASSPATH ist set to:
C:\Daten\xmlbeans-2.0.0\lib\xbean.jar;C:\Daten\SPS_x2j_test\CatalogManager.properties
I suppose my setup is ok.
Any suggestions on this?
Johannes Echterhoff
P.S.: what does the -javasource-tag really mean? The tool-docu says:
'Generate Java source compatible for the specified Java version (1.4 or
1.5).' And the homepage says: 'V2 will provide the option to take
advantage of JDK 1.5 Generics and/or Enumerations in XMLBeans generated
classes.' Ok, this might be as silly question, but nevertheless: if i
compile my schemas without using the -javasource-tag then does this mean
i compile for version 1.4 or 1.5? What is the default option and what is
the meaning of 'the source-files are compatible with Java 1.5'?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]