HTML-files don't display images when JARed

K

kelox2000

Hi there,

I moved a few HTML-files and the needed images into a JAR.

When I display the HTML-file directly from the JAR the links, i.e. <A
HREF="test.html">test</A> work fine. Now there is the problem:

The images don't work! I use i.e. <IMG SRC="test.gif">

does anyone know how I can run the HTML-files AND the images from a
JAR correctly?

thanks

kelox
 
C

Chris Smith

kelox2000 said:
I moved a few HTML-files and the needed images into a JAR.

When I display the HTML-file directly from the JAR the links, i.e. <A
HREF="test.html">test</A> work fine. Now there is the problem:

The images don't work! I use i.e. <IMG SRC="test.gif">

does anyone know how I can run the HTML-files AND the images from a
JAR correctly?

I just responded to this question in comp.lang.java.help. Please don't
multipost. It makes it harder for those who want to help you to keep
track of what's happening (for example, someone here would have to ask
you for the same information I asked for over there), and it makes it
harder for you to find replies. If you feel that you need to post to
multiple groups, just go ahead and cross-post the question by listing
all the groups in the Newsgroups header of one message.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top