Archive for the ‘Web Development’ Category

XML Processing In Java Using XOM

Sunday, November 19th, 2006

I have decided to use XOM API to process XML data. There is no good reason actually. I may revisit another XML API (e.g. JDOM) in the future.

What I have done is to read the XML from the Internet (e.g. Digg RSS) and process it.

To summarize what I have done:
1. Open a connection.
2. Tell the XML API to read from the connection stream.

Simple, eh? :)
(more…)

Type java.lang.object cannot be resolved

Sunday, November 19th, 2006

I switched my main development computer. I thought all I needed to do was to move my development directory from my previous computer to the new one.

When I start the Eclipse IDE, I started to get the “Type java.lang.object cannot be resolved” error everywhere (I mean EVERYWHERE).

After some research using Google, I found the solution!

I assume that Java has been installed correctly in your (new) machine. Do the following steps:
1. Right-click on your project.
2. Select Build Path.
3. Select Configure Build Path.
4. Select Libraries tab.
5. Select Add Library.
6. Select JRE System Library and select Next.
7. Remove the previous JRE System Libary.