Problem using Jar file



I have one prblem related with using jar files.
I have created one jar file of my application.In my application I am
loading web browser & showing html pages which resides in another directory
other than where my application.class file resides.

while creating jar file i have used following command
jar cvmf Manifest.txt name.jar directory[which includes html pages]
In jar file it is not creating resource folder.

In source file I have used
editor.setPage(getClass().getResource("/directoryname/filename.htm"));
//works

Jar file includes directory ,but If I run jar file it is throwing
IOException at run-time that
Page could not be loaded :Invalid URL

What should I used so that the code will work fine.

--
Message posted via http://www.javakb.com
.