Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jaxb

 
ima clark
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use jaxb-1.0, the new beta version of xml related api. when i try and run the xjc.bat file (command line) i keep getting an error saying:
Exception in thread "main" java.util.zip.ZipException:The system cannot find the file specified at
java.util.zip.ZipFile.open(Native Method)
java.util.zip.ZipFile.<init>(ZipFile.java:112)
java.util.jar.JarFile.<init>(JarFile.java:117)java.util.jar.JarFile.<init>(JarFile.java:55)
Does anyone know what I may need to download to get around the error. These zip and jar files come with j2sdk1.4.0_01 which I have installed so Im not sure why it's not finding them?
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like a configuration problem. Did you define a JAXB_HOME?
From JAXB 1.0 User's Guide

Configuring the JAXB RI
The JAXB RI is shipped as a ZIP file. To configure the JAXB RI for your environment:
Unzip the JAXB RI ZIP file into the directory of your choice.
Define a JAXB_HOME environment variable that points to the directory in which you unzipped the JAXB RI files.
Verify that the JAVA_HOME variable is set in your environment.
Change to the directory containing a schema from which you want to generate JAXB classes.
Use the xjc.bat or xjc.sh command to generate JAXB classes from the desired schema.
%JAXB_HOME%/bin/xjc.sh schemaname
The JAXB RI requires J2SE 1.3.1 or later.
Complete instructions for using the JAXB RI are provided in the Using JAXB section. JAXB RI compiler options are listed in the JAXB RI Compiler Options section.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to XML forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic