web start texture problem

I

Ivan Danicic

Hello all, to cut a long story short my programs using textures don't
work with webstart. Various error messages indicate that the texture
image cannot be accessed. It works OK on my own machine using
mozilla firefox and konqueror, all on linux but not on windows. Any
comments and remedies gratefully received.
Ivan
 
I

Ivan Danicic

Hello all, to cut a long story short my programs using textures don't
work with webstart. Various error messages indicate that the texture
image cannot be accessed. It works OK on my own machine using
mozilla firefox and konqueror, all on linux but not on windows. Any
comments and remedies gratefully received.
Ivan
Hello, I will add some more information; the file "texture.bmp"
is in the relevant jar file which also contains the necessary
classes, but nevertheless it can't find it. On my local machine
it uses the same file which happens to be in the current directory
and not the file from the jar file. It seems that it needs to
be told to use the file from the jar so maybe it should be
mentioned in the jnlp file.How?
Ivan
 
R

Roedy Green

Hello, I will add some more information; the file "texture.bmp"

Java does not support bmp or ico files. It only supports platform
independent png, gif and jpg.

Obviously it can manipulate bit maps in any representation, but it
will not display them.
 
I

Ivan Danicic

Java does not support bmp or ico files. It only supports platform
independent png, gif and jpg.

Obviously it can manipulate bit maps in any representation, but it
will not display them.
Hello all, it seems I shall have to learn how to write progs
suitable for web start. The often repeated assertion that no
special restrictions apply in this case is a bloody lie!
If e.g. pictures are used in the program then these must be
accessed in a special way, probably using classloader and
getresource.
I'd be very grateful for a pointer to such a java program (source
code).
Ivan
 
R

Roedy Green

Hello all, it seems I shall have to learn how to write progs
suitable for web start. The often repeated assertion that no
special restrictions apply in this case is a bloody lie!
If e.g. pictures are used in the program then these must be
accessed in a special way, probably using classloader and
getresource.
I'd be very grateful for a pointer to such a java program (source
code).
Ivan

The simpler approach will be to convert these bmp files to png. You
might do it ahead of time, or do it dynamically on the server or
shudder, even exec a conversion utility on the client.
see http://mindprod.com/jgloss/exec.html

There is nothing in Java that will display them. You would have to
exec some little bmp viewer. The problem with that approach is your
app will then only work under Windows.

Another approach is to use JAI, which does support BMP files. See
http://mindprod.com/jgloss/jai.html. The catch is you then need to
get JAI installed or downloaded on all your client machines. At least
with JAWS it won't be downloaded on every use.
 
I

Ivan Danicic

Hello all, I have solved this and it works well on linux but not
windows xp and vista. The windows seem to use only the old cached
program and I can't get rid of that. Any thoughts? Thanks in advance.
Ivan
 

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

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top