Archived

This topic is now archived and is closed to further replies.

java midlet packages.

This topic is 5150 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i noticed that motorola has a game package, for what im assuming to be for their midp sdk. the package has a lot of classes in it. when i import a package will it package in all classes, even the ones i will not use?

Share this post


Link to post
Share on other sites
quote:
Original post by GekkoCube
i noticed that motorola has a game package, for what im assuming to be for their midp sdk.

the package has a lot of classes in it.
when i import a package will it package in all classes, even the ones i will not use?



Import is to java what #include is to c++(almost, anyway, not totally same)
When you import in java, if it''s a class, you can now use the name of the class as if it''s a fully qualified name. The actual loading/linking to that class is still done in runtime by the jvm. Meaning, if you import and compile your game, and fail to package(meaning jar in this case) and shop some classes your game uses, it will still run until your code actually make a call to use that missing class, of which a ClassNotFound Exception will be triggered

Share this post


Link to post
Share on other sites