In J2ME there are two configurations named CLDC (more limited resources 
devices, eg. celular phones) and CDC (limited resources devices, eg. PDAs). The 
best way to compile and run tests under J2ME is using emulators. For CDLC there 
are many emulators available for Eclipse and Netbeans IDEs. For CDC, to my 
knowledgment, only Netbeans has an emulator called "NetBeans Mobility Pack". As 
I'm an Eclipse user I've done a workaround that I describe below:

1. Install the IBM J9 VM - CDC 1.0 - Personal Profile (it implements the CDC 
Foundation Profile and Personal Profile) [1]
2. Install the Eclipse J9 launch plugin [2]
3. Config the Eclipse J9 launch plugin:

    - Click Window->Preferences, then select Java->Installed JREs
    - Add a new JRE
    - Choose "J9 VM"
    - Provide an appropriate name such as "Foundation" or "Personal" (depends 
on your target profile)
    - For JRE home, point to your J9 installation path
    - Uncheck "Use default system libraries"
    - Delete all libraries listed
    - Add new libraries that point to your desired configuration. I.e.:
        %J9_HOME%/lib/charconv.zip
        %J9_HOME%/lib/jclFoundation10/classes.zip
        %J9_HOME%/lib/jclFoundation10/locale.zip
        
    PS: For Personal Profile you should add the jars in the 
lib/jclFoundation/ppro10 folder also

    - Click OK



4. Set sample project to use Foundation JRE

    - Right click on ercpHello project
    - Select Properties and Java Build Path
    - Select Libraries tab
    - Remove JRE System Library
    - Click Add Library and select JRE System Library
    - Check Alternate JRE, and select "Foundation" or "Personal" JRE, then 
click Finish


[1] 
https://www14.software.ibm.com/webapp/iwm/web/reg/download.do?pkgid=&S_SRCID=weme&source=weme&S_TACT=104CBW71&S_CMP=&S_PKG=dl61_linux&s=&ltype=input&l=English+U.S.&mtype=input&m=download&id=2006-04-06+13%3A40%3A41.975747R&fam=&cat=&cp=UTF-8#

[2] 
http://dev.eclipse.org/viewcvs/index.cgi/*checkout*/jdt-debug-home/plugins/org.eclipse.jdt.launching.j9/org.eclipse.jdt.launching.j9_20040318.zip?rev=1.1&content-type=application/zip

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3940005#3940005

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3940005


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to