« Cingular to offer Nokia 9300 with J2ME/CDC | Main | Microsoft Max requires too much »

9 Years of Classpath Problems

October 05, 2005

It's been 9+ years since I wrote and compiled my first Java program.  I'm embarassed to admit that occasionally I'm still stumped by classpath problems.

Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Layout

This time it was an easy fix - I'd put the application in a JAR and hadn't added the necessary Class-Path: lib/swt.jar reference in the manifest.mf file.  Thankfully, it's a desktop app, so troubleshooting took minutes instead of hours (common in server apps).  Atleast it wasn't one of those find-the-JAR-with-obscure-classname needed at runtime classpath problems that a certain J2EE app server is infamous for... or a classloader related classpath problem.

October 5, 2005 at 11:32 PM in Java | Permalink

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00d834205eab53ef00d83499db8469e2

Listed below are links to weblogs that reference 9 Years of Classpath Problems:

Comments

I feel your pain. While struggling with the same problems, I decided to something about it:

http://www.g0dmode.com/javastuff/bootstrap-1.0.zip

No more hand-crafted classpaths :).

Posted by: nnevatie | Oct 7, 2005 4:19:30 AM

Post a comment