This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 57754 - Relative resource path does not work with new mobile platforms
Summary: Relative resource path does not work with new mobile platforms
Status: CLOSED WORKSFORME
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Martin Ryzl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-11 23:26 UTC by ykhun
Modified: 2006-10-23 16:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ykhun 2005-04-11 23:26:39 UTC
The follow problem can be replicated with the Nokia series 60 SDK.

Write a simple midp program that loads a resource (e.g. a png image) from a
folder, say /res/. This program will run fine with the default emulator.

Now, add the nokia series 60 emulator using (Tools)->(Java Plaform Manager)
Compiling the program works fine.
Executed the compiled program using the nokia emulator will cause errors since
the image cannot be loaded. You get null pointer exceptions when you try to use
the image.

The loading of the image is usually done using relative path like this:
Image img = Image.createImage("/res/testing.png", 0, 0, 0);

This works for the default emulator but not the newly added emulator in the
nokia series 60 SDK. This problem also occurs for a few other SDKs from
different vendors.
Comment 1 Lukas Hasik 2005-04-12 14:58:34 UTC
reassigning. Seems as bug in nokia sdk to me.

Could you attach the exception to this issue, please?
Comment 2 Lukas Hasik 2005-04-28 15:40:34 UTC
closing as worksforme -> missing info from reporter.
ykhun, provide required info and reopen, thank you.
Comment 3 Lukas Hasik 2006-01-17 13:57:23 UTC
verifying all old issues