Skip to main content. Skip to secondary content (sidebar).

Posts Tagged ‘Java’

10 steps to help you transition from Web Designer to Web Developer

There is not a common distinction, unfortunately, between the terms Web Designer and Web Developer. The vast majority of job postings intermingle the prerequisite skill sets required for both positions. This further confuses designers who do not code, and developers who have no interest in designing. Some even argue that this overlap is a necessity if you really want to be a master at either. Although that is true to some degree, the reality is that a very, very small percentage of individuals can do both exceedingly well.

Continue Reading »

javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.naming.factory.MailSessionFactory]

Sorry for the cryptic title, but on occasion I run across an issue like this, and fail to inform other programmers after finding the solution.

Tomcat 5.5.2x is missing the MailSessionFactory class in naming-factory.jar. This JAR can be found in [tomcat install]\common\lib. Delete (or rename) it, and then copy over the naming-factory.jar from the Tomcat 5.5.17 common\lib instead. Apparently, the SendMailFactory class was missing as well.

Click here to read the bug report.

Continue Reading »

Preventing the NullPointerException in Java

One of the most common exceptions in Java is the NullPointerException (NPE). Java beginners are often frustrated by this rather pestilent exception, since it offers little, if any help in determining the exact cause of a runtime failure. Unfortunately, most discussions that focus around the NPE devolve into the academics of pointers, and do little to rectify the situation. Instead of another such post, I thought I would offer up some friendly advice on preventing the NullPointerException altogether.

Continue Reading »

Top 7 tips to help you learn a server-side language

Pushing yourself to learn a server-side language is an admirable goal. If you have a few years of JavaScript experience, or have dabbled in PHP, then the transition may not even be that difficult. For me, the process of learning Java has been an interesting adventure, and the ongoing education continues to hold my interest as a software engineer.

Continue Reading »

Using a batch file to set environment variables for Java

Our in-house application runs on JDK 1.4, but I needed to install and run JDK 1.5 in order to test some code specific to Java 5.0. Instead of changing the CLASSPATH, PATH and JAVA_HOME environment variables permanently within the Windows XP system properties, I typed in several set commands in the command window. Setting environment variables with this technique means they are temporary, and whenever I close the command window, other applications can freely use the JDK 1.4 without conflicts.

Continue Reading »

Tags: ,
Bookmark At Delicious

The journey to becoming a software engineer — first update

EDIT: 07/02/07

I apologize to those of you following this series of posts, but I have decided to discontinue it. I may begin studying for my certification again in the near future, but currently this is on hold.

One week has passed since I began studying SCJP Sun Certified Programmer for Java 5 Study Guide in preparation for the SCJP certification. I would be doing other programmers-in-training an injustice if I did not state that I was overwhelmed. Not totally by the complexity of the Java language (although I am sure that is coming), but by the shear wealth of information.

Continue Reading »

The journey to becoming a software engineer — the process begins

EDIT: 07/02/07

I apologize to those of you following this series of posts, but I have decided to discontinue it. I may begin studying for my certification again in the near future, but currently this is on hold.

Second only to writing a book, I have always wanted to become a programmer. That does sound odd at first, but the two have quite a bit in common. The most striking similarity is that both involve solving problems. If you write a mystery, you have to reveal the culprit’s master plan, or with a horror novel, you need to uncover the creature’s weakness. At the core of every good novel is a solid plot, theme, setting, character, and best of all — resolution.

Continue Reading »