can not create a jar file using comp ...

Hi experts,

   Can anyone please tell me why I can not create a jar file using scomp ? thanks.
------------------------------------------

C:\xmlbeans-2.1.0\schemas>dir
 Volume in drive C has no label.
 Volume Serial Number is 9817-6CD4

 Directory of C:\xmlbeans-2.1.0\schemas

05/11/2006  11:42 AM    <DIR>          .
05/11/2006  11:42 AM    <DIR>          ..
11/07/2005  02:26 PM             1,536 easypo.xsd
11/07/2005  02:26 PM             1,105 easypo.xsdconfig
11/07/2005  02:26 PM             1,019 nameworld.xsd
11/07/2005  02:26 PM             1,463 numerals.xsd
05/11/2006  11:42 AM    <DIR>          s4s
               4 File(s)          5,123 bytes
               3 Dir(s)  137,882,402,816 bytes free

C:\xmlbeans-2.1.0\schemas>scomp -out myeasypo.jar easypo
'scomp' is not recognized as an internal or external command,
operable program or batch file.
LVL 1
meow00Asked:
Who is Participating?
 
CEHJCommented:
Your program probably can't find a file

>>C:\xmlbeans-2.1.0\bin>scomp -out myeasypo.jar easypo.xsd

Moving into the bin directory is a poor solution. Look up "Environment Variables" in Windows help. This will show you how to set the PATH to include C:\xmlbeans-2.1.0\bin

To avoid any problems pass the full paths of those file parameters to scomp
0
 
CEHJCommented:
Put scomp binary directory in your PATH variable
0
 
objectsCommented:
> scomp -out myeasypo.jar easypo

try specifying the full pag to scomp, eg. if the executable is in /scomp/bin you'd use:

/scomp/bin/scomp -out myeasypo.jar easypo

0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
meow00Author Commented:
thanks ... it is semi-working now ...
since I am using xmlbeans 2.1.0 ...
it works as:

C:\xmlbeans-2.1.0\bin>scomp -out myeasypo.jar easypo.xsd -compiler C:/jdk1.5.0_0 6\bin\javac easypo.xsdconfig
then it creates the jar file!

However, some *.xsd files do not have the corresponding *.xsdconfig file ...
what do I do in this case ? thanks.
0
 
objectsCommented:
"Without an XSDCONFIG file, scomp uses the schema's type names and URI for classes and packages."
0
 
meow00Author Commented:
C:\xmlbeans-2.1.0\bin>scomp -out myeasypo.jar easypo.xsd
Time to build schema type system: 0.875 seconds
Time to generate code: 0.188 seconds
java.io.IOException: CreateProcess: C:\xmlbeans-2.1.0\bin\javac @C:\DOCUME~1\Meow\LOCALS~1\Temp\javac24179 error=2
null
java.io.IOException: CreateProcess: C:\xmlbeans-2.1.0\bin\javac @C:\DOCUME~1\Meow\LOCALS~1\Temp\javac24179 error=2
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(Unknown Source)
        at java.lang.ProcessImpl.start(Unknown Source)
        at java.lang.ProcessBuilder.start(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at java.lang.Runtime.exec(Unknown Source)
        at org.apache.xmlbeans.impl.tool.CodeGenUtil.externalCompile(CodeGenUtil
.java:231)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava:1126)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:368)
BUILD FAILED
C:\xmlbeans-2.1.0\bin>
-----------------------------------
 mmm ... but this is what happen without using the *.xsdconfig

 I can not get a jar file at all!
0
 
meow00Author Commented:
thanks all ... problem solved ... it works in a unix/linux machine ... but not on window ... probably because some strings are too long ...
create the jar in linux and move to window ...
0
 
CEHJCommented:
:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.