Archive for May, 2010

Eclipse: java.lang.UnsupportedClassVersionError: Bad version number in .class file

While I was programming for a small project under eclipse IDE, I got the following error message:

java.lang.UnsupportedClassVersionError: Bad version number in .class file

Continue »

Java code for connecting MS SQL Server by using SQL Server Authentication

First of all, You will need to add a jar file to your project library as SQL Server 2000 Driver for JDBC Service. My target is SQL Server 2000, it will require the jar file called “sqljdbc4.jar”. This is not supported on Microsoft website now, you can download it here. For other versions of SQL Server, here is the link of SQL Server 2000 Driver for JDBC Service.

The following is the code for connection MS SQL Server and select some records from a testing table.

Continue »

The best free Struts 2 tutorial

This is the best Struts 2 tutorial I have ever met. Leave your comment if you find a better one.

Google offers SSL searching to boost privacy


Finally, Google users can search the Internet using SSL encryption to hide search terms from prying third parties.

What is SSL?

SSL (Secure Sockets Layer) is a protocol that helps provide secure Internet communications for services like web browsing, e-mail, instant messaging, and other data transfers. When you search over SSL, your search queries and search traffic are encrypted so they can’t be read by any intermediary party such as employers and internet service providers (ISPs).

Continue »

Google Maps: Bicycling directions

Google map now provides directions for biking.

Sometimes it seems that there is no road for biking, but searching by using this new google function you may get some interesting path you didn’t know before.

Continue »

Difference between Universities-Master’s and national universities

Here is the definition from U.S News.

The national universities offer a full range of undergraduate majors, plus master’s and Ph.D. programs, and emphasize faculty research.

The master’s universities offer a broad scope of undergraduate degrees and some master’s degree programs but few, if any, doctoral programs.

Continue »

Inner div float out of outer div – Clearing Floats problem

This a common problem and here is a good tutorial about this.

The problem would look like this:

Continue »

How to set password for a word document

1. Click the Microsoft Office Button.

2. Click Save As.

Continue »