Please note that the SDK/J platform is deprecated.
We recommend all new development focus on modern SmartSDK devices using the SmartSDK APIs. See What does the SDK/J "end-of-life" mean for the future of my SDK/J xlet or servlet? FAQ item for more details.
SDK/J Sample Xlets
This sample code is provided on an "as-is" basis, and no warranty or guarantee of fitness or correctness is stated or implied. This code is not necessarily an example of "best practices" but is intended to highlight a particular set of use-cases. You are free to use this code how you see fit in your own applications.
ButtonTest - button gallery
An Xlet can show many different styles of onscreen buttons. This Xlet demonstrates all the different button styles.
FormBrowser - HTML form processing and servlet interaction
FormBrowser contains a general purpose framework for submitting all kinds of data to any kind of HTML form. This sample demonstrates automatic HTML form submission of a PDF to the UploadAndPrint sample servlet.
HardKey - key event capture
An Xlet can receive events when the physical buttons on the MFD to the right or below the operations panel are pressed. This sample shows the event type and key constant when a user presses any physical key on the MFD.
Puzzle15 - algorithm and graphics
Enjoyable, mildly interactive games are possible in an Xlet. This sample demonstrates a fun, interactive puzzle game.
SampleLockControl - machine function lock control
An Xlet can programmatically enable/disable various buttons, timers and features directly from an Xlet. This sample provides buttons to show how various locking and unlocking features work from a user’s point-of-view and how to implement locking and unlocking in the source code.
SoapClientXlet - Soap webservices
An Xlet can call SOAP web services located on axis using the KSoap2 library for J2ME. This sample demonstrates invoking a SOAP method that returns a String "Hello" from an axis based web service.
TIFFCopier - Scanning, printing, and tiff file processing
By default, an Xlet uses the Ricoh Original file format to scan an image from the platen or ADF (Automatic Document Feeder) and then print it. To use the TIFF file format, scanning is very similar. However, to print a TIFF file, the file is converted to a PostScript file and streamed into port 9100 of the MFD itself. This sample demonstrates this printing technique.
TimeSet - time and timezone control
The system time for an MFD can be set on the operations panel; the system time zone for a MFD cannot be. This sample demonstrates how to set both the system time and the system time zone from an Xlet.
WidgetsDemoXlet - user interface components
The uiwidgets library provides many controls for use in Xlets. This sample demonstrates three very useful controls: a combo box, a check box and a group of radio buttons.
SDK/J Sample Servlets
HelloJSP - HTTP and JSP processing
JSPs can be used with MFDs. This sample demonstrates a simple JSP.
HelloServlet - Servlet processing
Java servlets can be used with MFDs. This sample demonstrates a simple servlet.
UploadAndPrint - pdf, tiff and jpeg printing
Files can be uploaded and printed to a MFD servlet. This servlet demonstrates presenting an HTML form to the user where the user can upload and print a PDF, TIFF or JPEG file.