Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet signed, but no image shown

 
Constanze Michaelis
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi @ll,

when I run the code within Eclipse Plattform the Image is shown. Now I signed the created jar archive, but when i run on the embedded server no image is shown.

Why?

The necessary Code:
 
Joe Ess
Bartender
Posts: 9338
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By
run on the embedded server

do you mean put the jar file on a server and access it with a web browser? Did you check the java console of said browser for an error message?
 
Constanze Michaelis
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I put the jar file to the server. When I access to it through the java browser i get no error report or anything else.

bye
Constanze
 
Joe Ess
Bartender
Posts: 9338
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the image file in the JAR? It should be. Check out the Java Tutorial chapter on How to use Icons. You can't just use a file name to create a JImageIcon because the contents of a JAR don't show up in the file system. The tutorial shows you how to get around that problem.
 
Constanze Michaelis
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the image is in the jar file. i will consult the tutorial again and then i hope to find the right answer

thanks for assisting

bye
Constanze
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic