You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by ge...@cox.net on 2005/04/25 05:21:06 UTC

Nubie: Following README.txt

All:

I have jdk and jre 1.5.0_01 installed and XMLBeans v 1.0.3 Development Kit in place.  The "jdk/bin" is in my PATH before the "jre/bin" directoru.  Following the "Welcome to XMABeans!" README.txt, I was able to get the "usage" printout [per (1) Setup, step 4.  The usage referred to java execution, not scomp?!

However, when I cd to ./schemas and submit "scomp easypo", I get "Exception in thread "main" java.lang.NoClassDefFoundError: easypo"

Also, I get "unrecognized option" when I try the "-out" or "-src" options described in (2) Try... step (2) of the README.txt.

Did I miss something in the setup?

Appreciations,
Gene


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: Nubie: Following README.txt

Posted by Bart van Kuik <b....@uzorg.nl>.
Gene,

What about calling the JAVA.EXE directly?

Looking at the scomp.cmd file, the last line is:
java -classpath %cp% org.apache.xmlbeans.impl.tool.SchemaCompiler

You could do something like (on one line):

C:\> java -classpath c:\xmlbeans-1.0.0.jar\lib\xbean.jar 
org.apache.xmlbeans.impl.tool.SchemaCompiler HOUSES.xsd

Or if that doesn't work:
C:\> java -classpath c:\xmlbeans-1.0.0.jar\build\ar\xbean.jar 
org.apache.xmlbeans.impl.tool.SchemaCompiler HOUSES.xsd

BTW, I tried to compile your schema and the output was:
$ scomp -srconly -src . HOUSES.xsd
/home/b.kuik/tst/HOUSES.xsd:134: error: Expected "</xs:element>" to 
terminate element starting on line 99.
Time to build schema type system: 0.788 seconds
BUILD FAILED

Bart

Gene Holmerud wrote:
> Thanks Bart:
> 
> Downloades 1.0.4 and 2.0.0-beta1 (advertised to work with jdk1.5) and 
> corected my muffed env variable statements.
> 
> Unfortunately, I continue to get same error message:
> ["Exception in thread "main" java.lang.NoClassDefFoundError: easypo"]
> 
> The 2.0 README suggests the command "scomp easypo.xsd".  That results in 
> the above message, but ending in "...easypo/xsd".
> 
> I have great plans (see attached schema), but stuck currently!


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Re: Nubie: Following README.txt

Posted by Gene Holmerud <ge...@cox.net>.
Thanks Bart:

Downloades 1.0.4 and 2.0.0-beta1 (advertised to work with jdk1.5) and 
corected my muffed env variable statements.

Unfortunately, I continue to get same error message:
["Exception in thread "main" java.lang.NoClassDefFoundError: easypo"]

The 2.0 README suggests the command "scomp easypo.xsd".  That results in 
the above message, but ending in "...easypo/xsd".

I have great plans (see attached schema), but stuck currently!

Gene

On Mon, 25 Apr 2005 09:38:24 +0200, Bart van Kuik <b....@uzorg.nl> wrote:

> Gene,
>
> I got this too. In my case, all I had to do was to set the XMLBEANS_HOME 
> environment variable (modify directory according to your installation):
>
> export XMLBEANS_HOME=/opt/xmlbeans-1.0.4
> scomp
>
> Alternatively, put this line in the scomp script as the first line below 
> the comments.
>
> Hope that helps,
> Bart
>
> geneous@cox.net wrote:
>> All:
>>
>> I have jdk and jre 1.5.0_01 installed and XMLBeans v 1.0.3 Development 
>> Kit in place.  The "jdk/bin" is in my PATH before the "jre/bin" 
>> directoru.  Following the "Welcome to XMABeans!" README.txt, I was able 
>> to get the "usage" printout [per (1) Setup, step 4.  The usage referred 
>> to java execution, not scomp?!
>>
>> However, when I cd to ./schemas and submit "scomp easypo", I get 
>> "Exception in thread "main" java.lang.NoClassDefFoundError: easypo"
>>
>> Also, I get "unrecognized option" when I try the "-out" or "-src" 
>> options described in (2) Try... step (2) of the README.txt.
>>
>> Did I miss something in the setup?
>>
>> Appreciations,
>> Gene
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
>> For additional commands, e-mail: user-help@xmlbeans.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

Re: Nubie: Following README.txt

Posted by Bart van Kuik <b....@uzorg.nl>.
Gene,

I got this too. In my case, all I had to do was to set the XMLBEANS_HOME 
environment variable (modify directory according to your installation):

export XMLBEANS_HOME=/opt/xmlbeans-1.0.4
scomp

Alternatively, put this line in the scomp script as the first line below 
the comments.

Hope that helps,
Bart

geneous@cox.net wrote:
> All:
> 
> I have jdk and jre 1.5.0_01 installed and XMLBeans v 1.0.3 Development Kit in place.  The "jdk/bin" is in my PATH before the "jre/bin" directoru.  Following the "Welcome to XMABeans!" README.txt, I was able to get the "usage" printout [per (1) Setup, step 4.  The usage referred to java execution, not scomp?!
> 
> However, when I cd to ./schemas and submit "scomp easypo", I get "Exception in thread "main" java.lang.NoClassDefFoundError: easypo"
> 
> Also, I get "unrecognized option" when I try the "-out" or "-src" options described in (2) Try... step (2) of the README.txt.
> 
> Did I miss something in the setup?
> 
> Appreciations,
> Gene
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org