Dashboard > Jetty > ... > Jetty Documentation > J2ME CDC
J2ME CDC Log In | Sign Up   View a printable version of the current page.

Added by Greg Wilkins , last edited by Greg Wilkins on Oct 06, 2006  (view change)
Labels: 
(None)

Contact the core Jetty developers at www.webtide.com
private support for your internal/customer projects ... custom extensions and distributions ... versioned snapshots for indefinite support ... scalability guidance for your apps and Ajax/Comet projects ... development services from 1 day to full product delivery

Java Micro Edition - Connected Device Configuration

Jetty 6 may be run on a JVM that supports Java ME Connected Device Configuration (CDC), such as the j9 VM from IBM.
To run on ME, you must:

  • Not use XML, as a SAX parser is not available. This means that you cannot directly use webapplications
    with web.xml nor jetty.xml to configure the server.
  • Not use NIO connectors. Use the SocketConnector instead.
  • Write a configuration class similar to the examples in the examples/embedded module.
  • Configure your own class path to include
    • servlet-api.jar
    • jetty-util.jar
    • jetty.jar
    • your configuration class(es).

An example of running the OneHandler example with IBMs J9 is

j9 -cp lib/servlet-api-2.5.jar:lib/jetty-util.jar:lib/jetty.jar:examples/embedded/target/classes org.mortbay.jetty.example.OneHandler

NOTE! It appears that J9 is a superset of CDC. JVMs such as jbed with a strict CDC
implementation appear to need some patches to Jetty to remove some 1.4 language
features. These patches will soon be available in the patches directory.

Site running on a free Atlassian Confluence Open Source Project License granted to The Codehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.2 Build:#919 Nov 26, 2007) - Bug/feature request - Contact Administrators