xml-xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hamilton, Brenda" <Brenda.Hamil...@turner.com>
Subject RE: getting started
Date Mon, 03 May 2004 16:16:44 GMT
Spoke a little too soon.  Getting a different error now.  It's complaining about not finding
javac in the path.  But it's plain that javac is in the path.
 
Anyone else have this very frustrating problem?
 
thanks AGAIN
Brenda
 
 
C:\xmlbeans-1.0.2\schemas\easypo>scomp.cmd -src ./ -out easypo.jar easypo.xsd
Time to build schema type system: 3.645 seconds
Time to generate code: 0.691 seconds
'javac' is required on the path.
java.io.IOException: CreateProcess: C:\xmlbeans-1.0.2\schemas\easypo\javac @C:\D
OCUME~1\BHAMIL~1\LOCALS~1\Temp\javac27898 error=2
null
java.io.IOException: CreateProcess: C:\xmlbeans-1.0.2\schemas\easypo\javac @C:\D
OCUME~1\BHAMIL~1\LOCALS~1\Temp\javac27898 error=2
        at java.lang.Win32Process.create(Native Method)
        at java.lang.Win32Process.<init>(Unknown Source)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(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:218)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava:815)
        at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:264)
BUILD FAILED
C:\xmlbeans-1.0.2\schemas\easypo>javac
Usage: javac <options> <source files>
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is doing
  -deprecation              Output source locations where deprecated APIs are us
ed
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -source <release>         Provide source compatibility with specified release
  -target <release>         Generate class files for specific VM version
  -help                     Print a synopsis of standard options
 
C:\xmlbeans-1.0.2\schemas\easypo>

-----Original Message-----
From: Hamilton, Brenda [mailto:Brenda.Hamilton@turner.com]
Sent: Monday, May 03, 2004 11:32 AM
To: 'xmlbeans-user@xml.apache.org'
Subject: RE: getting started



Well, after my last email, I decided to do a build, using ant, which we use for ours projects
as well.  After the build finished, I reset my path and classpath, now it's working.

oh well, such is life. 

Thanks All! 
Brenda 

-----Original Message----- 
From: Saha, Sanjeev [ mailto:SSaha@asce.org <mailto:SSaha@asce.org> ] 
Sent: Friday, April 30, 2004 8:32 PM 
To: xmlbeans-user@xml.apache.org 
Cc: Brenda.Hamilton@turner.com 
Subject: RE: getting started 


Howdy Brenda, 

I second Jacob's approach and would suggest going ahead and executing the xbeanenv.cmd script.
I was experiencing similar issues as you had mentioned under Windows Xp with jdk 1.4.2_01-b06.

Needless to say, xbeanenv.cmd did the trick :o) 

-Sanjeev 


-----Original Message----- 
From:   Jacob Danner [ mailto:jacobd@bea.com <mailto:jacobd@bea.com> ] 
Sent:   Fri 4/30/2004 3:20 PM 
To:     xmlbeans-user@xml.apache.org; Brenda.Hamilton@turner.com 
Cc:     
Subject:        RE: getting started 
it looks like you need to add xbean.jar to your classpath. This is easily done by setting
the XMLBEANS_HOME environment variable, (execute xbeanenv.cmd)

If this is still occuring after trying this, please send classpath information. 
-----Original Message----- 
From: Hamilton, Brenda [ mailto:Brenda.Hamilton@turner.com <mailto:Brenda.Hamilton@turner.com>
] 
Sent: Friday, April 30, 2004 11:55 AM 
To: 'xmlbeans-user@xml.apache.org' 
Subject: RE: getting started 



Well, I installed JDK 1.4.2 but I'm still getting errors.  I'm using a Win2K machine.  I've
checked and double checked my environment.  I don't see anything wrong.  Here's the results
I'm getting.  First command is just checking the jvm.  The 2nd is checking the I get a usage
from the scomp.cmd.  The 3rd and 4th commands are trying to run the easypo example.

No joy.  Any comments, questions or suggestions would be appreciated. :) 

thanks, 
Brenda 

C:\xmlbeans-1.0.2\schemas\easypo>java -version 
java version "1.4.2_04" 
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05) 
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode) 
C:\xmlbeans-1.0.2\schemas\easypo>scomp.cmd 
Usage: java [-options] class [args...] 
           (to execute a class) 
   or  java [-options] -jar jarfile [args...] 
           (to execute a jar file) 

where options include: 
    -client       to select the "client" VM 
    -server       to select the "server" VM 
    -hotspot      is a synonym for the "client" VM  [deprecated] 
                  The default VM is client. 

    -cp <class search path of directories and zip/jar files> 
    -classpath <class search path of directories and zip/jar files> 
                  A ; separated list of directories, JAR archives, 
                  and ZIP archives to search for class files. 
    -D<name>=<value> 
                  set a system property 
    -verbose[:class|gc|jni] 
                  enable verbose output 
    -version      print product version and exit 
    -showversion  print product version and continue 
    -? -help      print this help message 
    -X            print help on non-standard options 
    -ea[:<packagename>...|:<classname>] 
    -enableassertions[:<packagename>...|:<classname>] 
                  enable assertions 
    -da[:<packagename>...|:<classname>] 
    -disableassertions[:<packagename>...|:<classname>] 
                  disable assertions 
    -esa | -enablesystemassertions 
                  enable system assertions 
    -dsa | -disablesystemassertions 
                  disable system assertions 
C:\xmlbeans-1.0.2\schemas\easypo>scomp.cmd easypo.xsd 
Exception in thread "main" java.lang.NoClassDefFoundError: easypo/xsd 
C:\xmlbeans-1.0.2\schemas\easypo>scomp.cmd easypo 
Exception in thread "main" java.lang.NoClassDefFoundError: easypo 



-----Original Message----- 
From: Dutta Satadip [ mailto:s-dutta@sbcglobal.net <mailto:s-dutta@sbcglobal.net> ]

Sent: Thursday, April 29, 2004 9:50 PM 
To: xmlbeans-user@xml.apache.org 
Subject: Re: getting started 


Hello Brenda, 
The support for JDK 1.3.1 is still being worked on 
AFAIK. So currently it will work with JDK 1.4.X. 

However the problem you are describing seems like your 
paths are not set correctly. 


With Regards 
Dutta:) 



--- "Hamilton, Brenda" <Brenda.Hamilton@turner.com> 
wrote: 
> I read that backwards support for java 1.3.1 was 
> being considered.  Has that been added yet?  I'm 
> currently running 1.3.1. 
>  
> I just downloaded xmlbeans and setup the java_home 
> and xmlbeans_home variables and updated my path. 
> This is what I get when trying: 
> C:\xmlbeans-1.0.2\schemas>scomp easypo 
> Exception in thread "main" 
> java.lang.NoClassDefFoundError: easypo 
>  
> If it's just a problem with the jvm version, I'll 
> download and install 1.4.x, though I'd prefer to 
> stay one 1.3.1. 
>  
> thanks, 
> Brenda 
> 



- --------------------------------------------------------------------- 
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org 
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org 
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/ <http://xml.apache.org/xmlbeans/>
 







- --------------------------------------------------------------------- 
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org 
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org 
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/ <http://xml.apache.org/xmlbeans/>
 


Mime
View raw message