<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This problem has been mentioned a few time, but i
didn't find an answer that could help me. I get the following error
message</FONT></DIV>
<DIV><FONT face=Arial size=2>when compiling the class with the method mentioned
below.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>- cannot find definition for class
'java.util.List'</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The solutions i heard sofar had something to do
with java 1.1 versus java 2.</FONT></DIV>
<DIV><FONT face=Arial size=2>As far as i know i'm using JDK 1.4 to compile the
JDOM package. And i use Visual J++ for my programm compiling.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Doe anyone know how to solve this?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>import java.util.*</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>private void listElements(Element e)
<BR> {<BR> System.out.println("*Element, name:" + e.getName() +
<BR> ", text:" + e.getText()) ;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> //List all
attributes<BR> List as = e.getAttributes();<BR> for
(Iterator i = as.iterator();i.hasNext();)
<BR> {<BR> Attribute a =
(Attribute)i.next();<BR> System.out.println("*Attribute, name:"
+ a.getName() + <BR> ", value:" + a.getValue())
;<BR> }<BR> <BR> //List all
children<BR> List c = e.getChildren();<BR> for (Iterator i
= c.iterator();i.hasNext();) <BR> {<BR> Element n =
(Element)i.next();<BR> listElements(n);<BR> }<BR> }</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks, Joachim
Albers.</FONT></DIV></FONT></DIV></BODY></HTML>