joeydaly.com … tech blog & sometimes more

28Mar/100

Templates for Netbeans

Posted by Joey

To change templates in netbeans simply click on Tools > Templates. Then click on Java from the left hand side to expand more items. Click on Java class and hit ‘open in editor’ button to edit the template… Continue reading

Tagged as: , No Comments
24Mar/100

How to set CLASSPATH in Linux

Posted by Joey

Below are two types of commands to set CLASSPATH in linux. There’s a few different types of shells to execute this command below explains how to work out the difference.
The syntax for setting your classpath is slightly dependent on which shell you are using. The default shell for RedHat 5.x and 6.x is the bash shell. Two other popular shells are tcsh and and csh called “t shell” and… Continue reading

23Mar/101

java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver

Posted by Joey

Had this error come up while building a java app. Common problem when trying to connect to mssql database.

Install the Microsoft SQL Server JDBC Driver and extract it to somewhere useful like C:\Program Files\…

Add the following path to the System variables in your Environment Variables for Windows (My Computer > Properties)
C:\Program Files\Microsoft SQL Server 2005 JDBC Driver\sqljdbc_1.2\enu\sqljdbc.jar

This should work…

If you’re using an IDE… Continue reading

Tagged as: , , , 1 Comment