Problem using Jar file
- From: "smita bhopale via JavaKB.com" <forum@xxxxxxxxxxxxxxxxx>
- Date: Tue, 31 May 2005 07:16:25 GMT
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
.
- Prev by Date: Java WSDP and Tomcat 5
- Next by Date: Hiding menubar of browser
- Previous by thread: Java WSDP and Tomcat 5
- Next by thread: Hiding menubar of browser
- Index(es):