Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem setting path for JAXB

Status
Not open for further replies.

valicon

MIS
Sep 26, 2000
125
US
Hi all,

I have installed JaxB and it runs fine when the xjc.bat file resides in the same folder as my xsd files. I tried to set the path a million times and so far I hasve been unsuccessful. When I run xjc.bat it will die saying it cannot find the file. The path I used was c:\jwsdp-1.3\jaxb\bin. Anyone else see or know how to fix this? Thanks.
 
here is the error:

setenv.bat is not recognized as an internal or external command. Exception in thread 'Main' Java.Lang.NoClassDefine.Error: Launcherbootstrap

I get this when I run:

xjc.bat book1.xsd -p primer.po

If I precede this command with the location of xjc.bat or if I copy xjc.bat into the same folder as book1.xsd, it will compile with no problems. I am running this on a XP machine. The Java_Home is set to:
C:\Program Files\j2sdk_nb\j2sdk1.4.2

What can be wrong?
 
setenv.bat is not on your PATH directory.

JAVA_HOME should be this (ie upper case) not Java_Home.

Your CLASSPATH is incorrect ("Exception in thread 'Main' Java.Lang.NoClassDefine.Error: Launcherbootstrap"). At the end of the JWSDP installation did you read and follow the instructions about the CLASSPATH and "endorsed" files directory in %JAVA_HOME%\jre\lib\endorsed ?
 
Okay I will try that. I also tried to uninstall the JWSD using both add/remove programs and by using the uninstaller and I get an error stating that a .inf file is missing! How can I uninstall it? I want to do a fresh install. Can I just delete the directories?
 
If it won't uninstall, your only real option is to delete the relevant files and edit the windoze registry.
 
I had to delete JWSD, clean the registry and re-install. It works now. Thanks all...have a great weekend!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top