Java

How to create a html parser in java

I created this simple HTML parser to strip out page title, meta description and keywords from web pages.
I made this as a part of my search engine "pipilika" project. You can use this to meet a very basic parsing of HTML. It is still under development. So the commented areas may be bugful. So be sure before to uncomment and use them.

No Comments

Read more

How to connect to oracle database using java

I have oracle 10g installed on my ubuntu. I need a java program to connect with oracle database and fetch data from table.

To do this what I needed first is the oracle-jdbc connector. I found it in “/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc/lib” directory. Two jar files named “ojdbc14.jar” & “ojdbc14_g.jar”.

I openned Netbeans IDE created a new project and from the projects panel i right clicked on the project I connect with oracle and clicked on properties.

When properties window openned I went to Libraries to add those specific jar files.

Then I clicked “Add JAR/Folder” and selected those two files and hit ok.

That added those connector jar files in classpath for my current project. Now all what i needed to do is to write the correct code.

No Comments

Read more

Page 2 of 212