• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jaxb

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to XML forum.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic