From xmlbeans-dev Thu Nov 11 21:59:25 2004 From: "Steve Traut (JIRA)" Date: Thu, 11 Nov 2004 21:59:25 +0000 To: xmlbeans-dev Subject: [jira] Commented: (XMLBEANS-85) Errors in getting started tutorial Message-Id: <635919930.1100210365198.JavaMail.apache () nagoya> X-MARC-Message: https://marc.info/?l=xmlbeans-dev&m=110021036809102 [ http://nagoya.apache.org/jira/browse/XMLBEANS-85?page=comments#action_55377 ] Steve Traut commented on XMLBEANS-85: ------------------------------------- I made the following fixes to the site: - missing import statements in source code -- fixed. - compile statement is bad. And indeed it was a copy/paste mess. I fixed it, and also made the command more Windows-specific (percents, semicolons, backslashes), in keeping with the rest of the tutorial. These appear not to be tutorial bugs: - generated code won't compile because easypo.xsdconfig is present -- not an issue for the tutorial. This would be an issue if the tutorial asked users to scomp the entire contents of the schemas/easypo directory; instead, the tutorial does (and did) tell users to compile easypo.xsd within that folder -- ignoring the xsdconfig. - release readme tells users to set XMLBEANS_HOME to the release lib folder -- not an issue for the tutorial. I agree that this is a readme problem. I added a line to the tutorial that users should use the environment described in the installation topic. > Errors in getting started tutorial > ---------------------------------- > > Key: XMLBEANS-85 > URL: http://nagoya.apache.org/jira/browse/XMLBEANS-85 > Project: XMLBeans > Type: Bug > Versions: Version 1.0.3 > Environment: Solaris 9 (at least) > Reporter: Victor Ortega > Priority: Minor > > The "getting started" tutorial for XMLBeans, found at > http://xmlbeans.apache.org/documentation/tutorial_getstarted.html > has several errors in the section "Getting Started with Handling XML Through Schema": > - the source code given won't compile because it is missing the import statements: > import java.io.*; > import java.math.*; > import org.apache.xmlbeans.*; > import org.openuri.easypo.*; > - the generated code will not compile because easypo.xsdconfig adds the prefix "Xml" and the suffix "Bean" to the generated source; > - the README.txt in the installation incorrectly states to set the XMLBEANS_HOME environment variable to include the lib directory, causing problems with the compile and run; > - the compile statement has several problems; it should be: > javac -classpath $XMLBEANS_HOME/lib/xbean.jar:tutorials/gettingstarted/lib/easypo.jar -d tutorials/gettingstarted/classes tutorials/gettingstarted/src/POUpdater.java -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org For additional commands, e-mail: dev-help@xmlbeans.apache.org