You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Boland Lithebe (JIRA)" <xm...@xml.apache.org> on 2005/01/11 16:59:16 UTC
[jira] Created: (XMLBEANS-101) Can't compile POUpdater.java from the tutorial
Can't compile POUpdater.java from the tutorial
----------------------------------------------
Key: XMLBEANS-101
URL: http://issues.apache.org/jira/browse/XMLBEANS-101
Project: XMLBeans
Type: Bug
Components: Compiler
Versions: Version 1.0.3
Environment: Windows XP, JDK 1.4.2_04
Reporter: Boland Lithebe
I am new to XMLBeans and I went through the tutorial from http://xmlbeans.apache.org/documentation/tutorial_getstarted.html
I followed the exact steps outlined on the tutorial and I could run the first command successfully. This is what I got when I ran the scomp command :
C:\engine\xmlbeans-1.0.3>scomp -out tutorials\gettingstarted\lib\easypo.jar sche
mas\easypo\easypo.xsd
Time to build schema type system: 1.041 seconds
Time to generate code: 0.19 seconds
Time to compile code: 1.352 seconds
Compiled types to: tutorials\gettingstarted\lib\easypo.jar
C:\engine\xmlbeans-1.0.3>
I went further reading from the tutorial and I tried to compile the POUpdater.java class and this is what I did :
C:\engine\xmlbeans-1.0.3>javac -classpath %XMLBEANS_HOME%\lib\xbean.jar;tutorial
s\gettingstarted\lib\easypo.jar -d tutorials\gettingstarted\classes tutorials\ge
ttingstarted\src\POUpdater.java
tutorials\gettingstarted\src\POUpdater.java:4: package org.apache.easypo does no
t exist
import org.apache.easypo.*;
^
tutorials\gettingstarted\src\POUpdater.java:20: cannot resolve symbol
symbol : class PurchaseOrderDocument
location: class POUpdater
PurchaseOrderDocument poDoc = null;
^
tutorials\gettingstarted\src\POUpdater.java:24: package PurchaseOrderDocument do
es not exist
poDoc = PurchaseOrderDocument.Factory.parse(purchaseOrder);
^
tutorials\gettingstarted\src\POUpdater.java:39: cannot resolve symbol
symbol : class LineItem
location: class POUpdater
LineItem newItem = poDoc.getPurchaseOrder().addNewLineItem();
^
4 errors
C:\engine\xmlbeans-1.0.3>
I have defined XMLBEANS_HOME on my environment variables and made sure my classpath is right but still I get the same error.
Please Help
Boland
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.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
[jira] Closed: (XMLBEANS-101) Can't compile POUpdater.java from the tutorial
Posted by "Kevin Krouse (JIRA)" <xm...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XMLBEANS-101?page=history ]
Kevin Krouse closed XMLBEANS-101:
---------------------------------
Resolution: Fixed
Fixed the import to "org.openuri.easypo.*" on website.
> Can't compile POUpdater.java from the tutorial
> ----------------------------------------------
>
> Key: XMLBEANS-101
> URL: http://issues.apache.org/jira/browse/XMLBEANS-101
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: Version 1.0.3
> Environment: Windows XP, JDK 1.4.2_04
> Reporter: Boland Lithebe
>
> I am new to XMLBeans and I went through the tutorial from http://xmlbeans.apache.org/documentation/tutorial_getstarted.html
> I followed the exact steps outlined on the tutorial and I could run the first command successfully. This is what I got when I ran the scomp command :
> C:\engine\xmlbeans-1.0.3>scomp -out tutorials\gettingstarted\lib\easypo.jar sche
> mas\easypo\easypo.xsd
> Time to build schema type system: 1.041 seconds
> Time to generate code: 0.19 seconds
> Time to compile code: 1.352 seconds
> Compiled types to: tutorials\gettingstarted\lib\easypo.jar
> C:\engine\xmlbeans-1.0.3>
> I went further reading from the tutorial and I tried to compile the POUpdater.java class and this is what I did :
> C:\engine\xmlbeans-1.0.3>javac -classpath %XMLBEANS_HOME%\lib\xbean.jar;tutorial
> s\gettingstarted\lib\easypo.jar -d tutorials\gettingstarted\classes tutorials\ge
> ttingstarted\src\POUpdater.java
> tutorials\gettingstarted\src\POUpdater.java:4: package org.apache.easypo does no
> t exist
> import org.apache.easypo.*;
> ^
> tutorials\gettingstarted\src\POUpdater.java:20: cannot resolve symbol
> symbol : class PurchaseOrderDocument
> location: class POUpdater
> PurchaseOrderDocument poDoc = null;
> ^
> tutorials\gettingstarted\src\POUpdater.java:24: package PurchaseOrderDocument do
> es not exist
> poDoc = PurchaseOrderDocument.Factory.parse(purchaseOrder);
> ^
> tutorials\gettingstarted\src\POUpdater.java:39: cannot resolve symbol
> symbol : class LineItem
> location: class POUpdater
> LineItem newItem = poDoc.getPurchaseOrder().addNewLineItem();
> ^
> 4 errors
> C:\engine\xmlbeans-1.0.3>
> I have defined XMLBEANS_HOME on my environment variables and made sure my classpath is right but still I get the same error.
> Please Help
> Boland
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.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