wood burning stoves
The moose likes XML and Related Technologies and the fly likes jaxb Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "jaxb" Watch "jaxb" New topic


ima clark

Joined: Apr 23, 2002
Posts: 19
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)
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"

Joined: Sep 29, 2000
Posts: 8521
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.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Moving to XML forum.
I agree. Here's the link: http://aspose.com/file-tools
subject: jaxb
It's not a secret anymore!