Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

web start texture problem

Thread view: 
Ivan Danicic - 13 Jun 2007 15:09 GMT
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
Ivan Danicic - 14 Jun 2007 11:53 GMT
> 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
Roedy Green - 15 Jun 2007 10:45 GMT
On Thu, 14 Jun 2007 10:53:37 GMT, Ivan Danicic
<ivie@localhost.localdomain> wrote, quoted or indirectly quoted
someone who said :

>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.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Ivan Danicic - 15 Jun 2007 12:25 GMT
> On Thu, 14 Jun 2007 10:53:37 GMT, Ivan Danicic
> <ivie@localhost.localdomain> wrote, quoted or indirectly quoted
[quoted text clipped - 7 lines]
> 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
Roedy Green - 16 Jun 2007 00:44 GMT
On Fri, 15 Jun 2007 11:25:04 GMT, Ivan Danicic
<ivie@localhost.localdomain> wrote, quoted or indirectly quoted
someone who said :

>Hello all, it seems I shall have to learn how to write progs
>suitable for web start. The often repeated assertion that no
[quoted text clipped - 5 lines]
>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.

--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Ivan Danicic - 18 Jun 2007 13:47 GMT
> On Fri, 15 Jun 2007 11:25:04 GMT, Ivan Danicic
> <ivie@localhost.localdomain> wrote, quoted or indirectly quoted
[quoted text clipped - 9 lines]
>>code).
>>Ivan

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.