you probably need to define the full path to swt.jar like ~/../libraries/swt.jar
–
CoolBeansMar 28 '11 at 17:35

-1. He asked a way to add libraries to the classpath located INSIDE a jar
–
Gabriel LlamasAug 7 '12 at 13:54

@GabrielLlamas - Since he accepted my answer, I am assuming it helped him. By the way, giving a down vote to an answer after 17 months of acceptance is pretty cool of you to do though.
–
CoolBeansAug 7 '12 at 13:57

If the answer is wrong it doesn't matter if it was asked 999 years ago. Full details in Berni's answer.
–
Gabriel LlamasAug 7 '12 at 14:00

Add swt jars in classpath. Specifically, org.eclipse.swt_x.x.x and org.eclipse.swt.win32.win32.x86_x.x.x. Where x is the version number and you will have to look for linux version and not the win32 as I have shown.