File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

jaxb

ima clark
Greenhorn

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)
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

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"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Moving to XML forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jaxb
 
Similar Threads
running a class in a jar ......
java.util.zip.ZipException: error in opening zip file
extract .rar file with java
jar file main method
How to Execute jars