Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ME Classloader - Reloaded

 
Prashant Rathore
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic