I am trying to compile code in the WROX book, Pro. Java XML programming.  It
is frustrating.

the source is located in C:\jxml\JRun\jsm-default\classes\MyNa\utils

I have ecs1.3.3.jar in the C:\jdk1.3\jre\lib\ext\ directory.

I go to a command prompt and execute the following command:

C:\Jxml\JRun\jsm-default\classes> javac Myna/utils/*.java

which produces the following errors: (this is the exact output of javac)

----start of javac output----

C:\jxml\JRun\jsm-default\classes\MyNa\utils\HtmlWrapper.java:128: cannot
resolve symbol
symbol  : class Html
location: class MyNa.utils.HtmlWrapper
    Html thePage=new Html()
    ^
C:\jxml\JRun\jsm-default\classes\MyNa\utils\HtmlWrapper.java:132: cannot
resolve symbol
symbol  : class H1
location: class MyNa.utils.HtmlWrapper
                 .addElement(new H1(title))
                                 ^
C:\jxml\JRun\jsm-default\classes\MyNa\utils\HtmlWrapper.java:131: cannot
resolve symbol
symbol  : class Body
location: class MyNa.utils.HtmlWrapper
              .addElement(new Body()
                              ^
----end of javac output----

I go to a command prompt and execute the following command:

C:\Jxml\JRun\jsm-default\classes> javac Myna/utils/*.java

which produces the following errors: (this is the exact output of javac)

----start of javac output----

C:\jxml\JRun\jsm-default\classes\MyNa\utils\HtmlWrapper.java:128: cannot
resolve symbol
symbol  : class Html
location: class MyNa.utils.HtmlWrapper
    Html thePage=new Html()
    ^
C:\jxml\JRun\jsm-default\classes\MyNa\utils\HtmlWrapper.java:132: cannot
resolve symbol
symbol  : class H1
location: class MyNa.utils.HtmlWrapper
                 .addElement(new H1(title))
                                 ^
C:\jxml\JRun\jsm-default\classes\MyNa\utils\HtmlWrapper.java:131: cannot
resolve symbol
symbol  : class Body
location: class MyNa.utils.HtmlWrapper
              .addElement(new Body()
                              ^
----end of javac output----
I go to a command prompt and execute the following command:

C:\Jxml\JRun\jsm-default\classes> javac Myna/utils/*.java

which produces the following errors: (this is the exact output of javac)

----start of javac output----

C:\jxml\JRun\jsm-default\classes\MyNa\utils\HtmlWrapper.java:128: cannot
resolve symbol
symbol  : class Html
location: class MyNa.utils.HtmlWrapper
    Html thePage=new Html()
    ^
C:\jxml\JRun\jsm-default\classes\MyNa\utils\HtmlWrapper.java:132: cannot
resolve symbol
symbol  : class H1
location: class MyNa.utils.HtmlWrapper
                 .addElement(new H1(title))
                                 ^
C:\jxml\JRun\jsm-default\classes\MyNa\utils\HtmlWrapper.java:131: cannot
resolve symbol
symbol  : class Body
location: class MyNa.utils.HtmlWrapper
              .addElement(new Body()
                              ^
----end of javac output----
The file has a line:

import org.apache.ecs.*;

which does not generate an error.

the error-producing lines are:

128:   Html thePage=new Html()
132:       .addElement(new H1(title))

Any idea what the problem is?
Thanks
L. McCann



--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to