[jdom-interest] Re: jdom-interest digest, Vol 1 #1453 - 1 msg

Bob H Pierce bpierce3 at csc.com
Tue Mar 30 06:14:22 PST 2004




Did you build the jdom.jar library or did you use the binary that was
downloaded? If you did not build the jar file, try building it yourself. I
had problems using the jdom.jar file that was downloaded. It appeared not
to support some of the documented APIs. When I built myself everything I
tried seemed to work ok as documented.

The instructions to build are in jdom-b10\README.txt file.

Bob Pierce




----------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
----------------------------------------------------------------------------------------




                                                                                                                                        
                      jdom-interest-re                                                                                                  
                      quest                    To:      jdom-interest at jdom.org                                                          
                      @jdom.org                cc:                                                                                      
                      Sent by:                 Subject: jdom-interest digest, Vol 1 #1453 - 1 msg                                       
                      jdom-interest-ad                                                                                                  
                      min                                                                                                               
                                                                                                                                        
                                                                                                                                        
                      03/30/2004 02:01                                                                                                  
                      AM                                                                                                                
                      Please respond                                                                                                    
                      to jdom-interest                                                                                                  
                                                                                                                                        
                                                                                                                                        




Send jdom-interest mailing list submissions to
             jdom-interest at jdom.org

To subscribe or unsubscribe via the World Wide Web, visit
             http://lists.denveronline.net/mailman/listinfo/jdom-interest
or, via email, send a message with subject or body 'help' to
             jdom-interest-request at jdom.org

You can reach the person managing the list at
             jdom-interest-admin at jdom.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of jdom-interest digest..."


Today's Topics:

   1. Unable to compile program -- addContent (Joseph Yin)

--__--__--

Message: 1
Date: Mon, 29 Mar 2004 17:21:35 -0800
To: jdom-interest at jdom.org
From: Joseph Yin <jyin at qualcomm.com>
Subject: [jdom-interest] Unable to compile program -- addContent

--=====================_32275449==.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hi there:

I just got the JDOM b10 downloaded and realized that the Element class
implements the Parent Interface.  I have the following codes that will not
compile:

rootElement.addContent(new Element("Course").addContent("Math"));

Where the rootElement is already defined as the root element and I am
trying to add another element called Course and apply it's content.

The error message I received is something like....
cannot resolve symbol
symbol  : method addContent (org.jdom.Parent)
location: class org.jdom.Element


If I break this one statement into the following then everything works:

Element course = new Element("Course");
course.addContent("Math");
rootElement.addContent(course);

The same one-liner code use to work in Beta 9 version.  Can anyone offer me

some hints or possible fixes using Beta 10.

Best, Joseph
jyin at qualcomm.com

=====================================================================
Joseph C. Yin, MSBA (IS Auditing)               Location:       S-204A
Staff Programmer
Analyst                                Phone#          (858) 651-0316
QUALCOMM
Incorporated.                          Fax    #                (858)
658-1011
IT Product Development Services                 EMail : jyin at qualcomm.com
"TEAM - Together Everyone Accomplishes More"
==================================================
--=====================_32275449==.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<body>
Hi there:<br><br>
I just got the JDOM b10 downloaded and realized that the Element class
implements the Parent Interface.&nbsp; I have the following codes that
will not compile:<br><br>
rootElement.addContent(new
Element(&quot;Course&quot;).addContent(&quot;Math&quot;));<br><br>
Where the rootElement is already defined as the root element and I am
trying to add another element called Course and apply it's content.&nbsp;
<br><br>
The error message I received is something like....<br>
cannot resolve symbol<br>
symbol&nbsp; : method addContent (org.jdom.Parent)<br>
location: class org.jdom.Element<br><br>
<br>
If I break this one statement into the following then everything
works:<br><br>
Element course = new Element(&quot;Course&quot;);<br>
course.addContent(&quot;Math&quot;);<br>
rootElement.addContent(course);<br><br>
The same one-liner code use to work in Beta 9 version.&nbsp; Can anyone
offer me some hints or possible fixes using Beta 10.<br><br>
Best, Joseph<br>
jyin at qualcomm.com<br>
<x-sigsep><p></x-sigsep>
=====================================================================
<br>
<font size=4><b><i>Joseph C. Yin</i></b>, <b><i>MSBA (IS
Auditing)</i></b><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab></font><b><i>Location:

<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>S-204A<br>
Staff Programmer
Analyst<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>&nbsp;&nbsp;

<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Phone#<x-tab>&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>(858)

651-0316 <br>
QUALCOMM Incorporated.<x-tab>&nbsp;&nbsp;</x-tab>&nbsp;&nbsp;
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Fax&nbsp;&nbsp;&nbsp;

#
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>(858)

658-1011<br>
IT Product Development
Services<x-tab>&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>EMail

: jyin at qualcomm.com <br>
</i></b><font size=4 color="#0000FF">&quot;<b><i>TEAM</i></b> -
<b><i>T</i></b>ogether <b><i>E</i></b>veryone <b><i>A</i></b>ccomplishes
<b><i>M</i></b>ore&quot; <br>
</font><font
size=4>==================================================</font><font
size=4 color="#FF0000">
</font></body>
</html>

--=====================_32275449==.ALT--



--__--__--

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com


End of jdom-interest Digest






More information about the jdom-interest mailing list