XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Gary FisherSubject: Error when compling java code
Author: Gary Fisher
Date: 02 Dec 2005 11:36 AM
I am having problems with compling java code generated from multiplication xquery in the xquery samples. I have gone to the options and under the java virtual machine pressed the auto detect button. I also add to my classpath the following:
* This class requires the following items in the classpath.
* C:\Program Files\Stylus Studio 2006 XML Enterprise Edition\sources
* C:\Program Files\Stylus Studio 2006 XML Enterprise Edition\bin\CustomFileSystem.jar
* C:\Program Files\Stylus Studio 2006 XML Enterprise Edition\bin\saxon8sa.jar
* C:\Program Files\Stylus Studio 2006 XML Enterprise Edition\bin\xml-apis-xerces-2.7.1.jar

when I try to compling the program I get 3 error messages. I am attaching
the output from the log. Can anyone tell how to correct this problem?
Thanks

Gary Fisher


Unknownjavacompliererror.txt

Postnext
Minollo I.Subject: Error when compling java code
Author: Minollo I.
Date: 02 Dec 2005 11:58 AM
Gary,
I can see a couple of problems:

#1: you have javac.exe in your CLASSPATH, which triggers the first error "error reading C:\PROGRA~1\Java\JDK15~1.0_0\bin\javac.exe; java.util.zip.ZipException: error in opening zip file"

#2: you have some saxon.jar file in your default CLASSPATH that is probably an older version than what the generated code relies on ("C:\saxon\..."). That's probably causing the compilation errors. To fix that, I would suggest that you bring up the Java Virtual Machine Options page (Tools>Options), and change the classpath setting to ignore the default classpath; the easiest way to do that is renaming ${Classpath} into ${Classpath_}. Once you do that, Stylus Studio will rely exclusively on the project level CLASSPATH settings that the Java code generator should have set to already include the required entries, and you shouldn't get any further error.

Hope this helps,
Minollo

Posttop
Gary FisherSubject: Error when compling java code
Author: Gary Fisher
Date: 02 Dec 2005 05:04 PM
Cleaningup up my classpath worked.
Thanks
Gary Fisher

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.