You Are Here:

Community: Developer Discussion Boards

#1 Old IllegalStateException - 2003-07-16, 16:13

Join Date: Jul 2003
Posts: 1
Paul_Eakins
Offline
Registered User
I've got a game running on the series 40 emulator, downloaded it onto my phone (6100) and I get a java.lang.IllegalStateException.

In the MIDlet.startApp implementation I read some data from a file in the jar using the following code:

try {
src = getClass().getResourceAsStream(WORLD);
Vector maps = new Vector();
int mapCount = src.read();
for (int i=0; i<mapCount; i++) {
maps.addElement(new Map(src));
}
src.close();
...
} catch (IOException e) {
...
}

I also create a com.nokia.mid.ui.FullCanvas instance here.

Anyone got any ideas? I'd optimistically hoped that the system software would be the same on the emulator and the phone!

This is my first attempt at developing for a phone, so sorry if it's something really basic!

Thanks!
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia