File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes J2ME Classloader - Reloaded Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME Classloader - Reloaded" Watch "J2ME Classloader - Reloaded" New topic

J2ME Classloader - Reloaded

Prashant Rathore

Joined: Aug 24, 2009
Posts: 3
Dear All,

I am developing a classloader for J2ME supported devices as we all know this feature is not provided by Core J2ME Apis. I am already in half the way in development. I just want to know what all functionality you feel that are missing in the J2ME apis. (Please note provide with those requirements that are compatible with J2ME APis.)
For Example:

1. Class Loading functionality.
2. Recordstore size increased by building a recordstore api that writes and reads the records on FileSystem.

I want some requirements like these... and what all you expect from a class loading feature.

Nick Apperley

Joined: Sep 19, 2007
Posts: 4
At the very least the class loader should have methods for accessing resources from JARs, eg:

getResource(String resource)
getSystemResource(String resource)
getResourceAsStream(String resource)
getSystemResourceAsStream(String resource)

JME (Java Mobile Edition) has very basic IO functionality which is greatly reduced when compared to JSE (Java Standard Edition). The InputStream and OutputStream classes are present in the JME CLDC API. You should in theory be able to read a resource (eg properties file) from a JAR in JME which is in the classpath (specified by the manifest file or through a program parameter). Is your class loader for JME going to be available for CLDC devices?
I agree. Here's the link:
subject: J2ME Classloader - Reloaded
It's not a secret anymore!