CDC Toolkit

Hi all,
I am trying to compile code I wrote for the J2SE in the CDC toolkit expecting some
obvious errors for certain libraries that do not exist. Instead I am getting errors that
it does not find the standard libraries. I set up the classpath to the appropriate JRE
and any other jars the code requires. What else do I need to do?>
Thanks much

`What do you mean with some obvious erros that do not exist?
CDC is still J2ME. There are some good limitations, but anyway is almost a full J2SE 1.4 compliant .
For example if you are using enumerations, it wont work. And this is just one example, of lots of things that wont work!

Similar Messages

  • Specifying classpath in Sun CDC Toolkit

    Hi All,
    I am using Sun CDC Toolkit 1.0. i need to specify a jar in the classpath whose APIs are used by the application at runtime. i have tried using the "-classpath" option, but the APIs in the jar are not being found and i get a "java.lang.NoClassDefFoundError:" error.
    D:\softwares\CDCTK10\bin\emulator.exe -classpath deleteme.jar -Xdevice:DefaultColorPhone -jar POC.jarjava.lang.NoClassDefFoundError: deleteme.DeleteMe
    at Main.main(Main.java:15)
    at java.lang.reflect.Method.invoke(Method.java:302)
    at sun.misc.CVM.runMain(CVM.java:464)
    deleteme.jar and POC.jar are both present in the current directory from where the command is being run.
    The UserGuide mentions using "-classpath:" followed by the jar names, but this option is not recognized by the emulator.
    Any pointers are greatly appreciated.
    Thanks in advance,
    -abhi

    It turns out that the correct way to specify what i want is as follows:
    D:\softwares\CDCTK10\bin\emulator.exe -classpath -Xdevice:DefaultColorPhone -cp POC.jar;deleteme.jar Main
    where Main is the fully qualified classname of the main application class that is present in POC.jar
    -abhi

  • Java.awt availability in CDC Toolkit ?

    Hi guys and girls,
    I've just tried out the Sun Java Toolkit for CDC 1.0 .. I tried making a simple app which uses awt components, such as Frame, Label, Button .. but the Label and Button just wont compile. I always thought that CDC has all the lib for the j2se's java.awt.
    Quoted from CDC FAQ :
    CDC currently supports three profiles. Foundation Profile provides basic application support APIs without any additional support for GUIs. Personal Basis Profile includes all of the APIs contained in Foundation Profile and adds support for lightweight AWT GUI components and the xlet application model. Personal Profile includes all of the APIs contained in Personal Basis Profile and adds support for full AWT compatibility and the applet application model.
    Do i miss something .. ? Please help pointing out for me ..
    I understand that there's swing from the AGui. So i tried making a new project with a simple class containing a simple JFrame, containing a JPanel which contains a button, which can be clicked to trigger a message type JOptionPane. But when the JOptionPane appears, it fills up the entire screen, i dont quite understand what is wrong.
    Here's the code :
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class HelloWorld {
          * @param args
         public static void main(String[] args) {
              final JFrame frame = new JFrame("Ahiak");
              final JPanel panel = new JPanel(new FlowLayout());
              JButton but = new JButton("Click Me !");
              panel.add(but);
              frame.getContentPane().add(panel);
              but.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        JOptionPane.showMessageDialog(panel, "hahah !");
              frame.setVisible(true);
    }Please show some compassion and click the reply button, lol -_-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I don't know about swing, but you can try using AWT and compile it with J2SE (set compliance to 1.4). The jar file should work on your mobile device with Personal Profile.

  • CDC/Personal Profile Platform Emulator

    Hi,
    I am a new J2ME developer. Earlier I was working on Swings in Java. I am working on netbeans 6.0 now. I just want to know what are the emulator/SDK available for CDC/Personal Profile1.0. I have already dowloaded the CDC Toolkit form Sun and integrated with Netabeans. Now I am looking an emulator for Personal Profile 1.0. Please help me in finding emulator and integrating with netbeans.
    Thanks in advance

    Try kXML. It should work on any Java platform.

  • Connected Device Configuration(CDC)-Support classes

    I want to know whether the following classes are supported in this configuration..
    1.Java.Lang.Process
    2.java.lang.Classloader
    I also searched for the technical docementation of jsr 36 in this website .. but could find it..
    I would be grateful to you all if you could help me in this regard..

    Hello,
    Maybe the easier is to load the CDC toolkit and consult the api provided? (pbp-1.1 folder)
    the java.lang.Process is supported
    the java.lang.ClassLoader is supported
    Can I receive my first dukes ? :-)Regards,
    Thibaut de Sany (http://thibaut.desany.eu)
    J2SE - J2ME - J2EE certified.

  • Java TV 1.1 License for Maven

    Hello, there.
    Can anybody tell me whether I can or not upload Java TV 1.1.1 sources (and recompiled classes) to Maven Central Repository?
    I'm a TV application developer.
    And I want to make a JavaTV artifact for development.
    I read the license text, but I don't think I'm a layer.
    Here comes what I want to do.
    1. Download JavaTV 1.1.1 Source distribution.
    2. Make an artifact only contains javax.tv.* and javax.media as JSR-927 specified.
    3. Deploy it to the Maven Central Repository.
    4. Use it for compilation.
    I swear I won't touch anything.
    SUN COMMUNITY SOURCE LICENSE
    (Rev. Date January 5, 2006)
    Java TV API Technology v. 1.1
    RECITALS
    Original Contributor has developed Specifications and
    So urce Code implementations of certain Technology; and
    Original Contributor desires to license the Technology
    to a large community to facilitate research,
    innovation and product development while maintaining
    co mpatibility of such products with the Technology as
    delivered by Original Contributor; and
    Original Contributor desires to license certain Sun
    Trademarks for the purpose of branding products that
    are compatib le with the relevant Technology delivered
    by Original Contributor; and
    You desire to license the Technology and possibly
    certain Sun Trademarks from Original Contributor on
    the terms and conditions specified in this License.
    In consideration for the mutual covenants contained
    herein, You and Original Contributor agree as follows:
    AGREEMENT
    1. Introduction. The Sun Community Source
    License and effective attachments ("License") may
    include five distinct licenses: Research Use, TCK,
    Internal Deployment Use, Commercial Use and Trademark
    License. The Research Use license is effective when
    You execut e this License. The TCK and Internal
    Deployment Use licenses are effective when You execute
    this License, unless otherwise specified in the TCK
    and Internal Deployment Use attachments. The
    Commercial Use and Trademark licen ses must be signed
    by You and Original Contributor in order to become
    effective. Once effective, these licenses and the
    associated requirements and responsibilities are
    cumulative. Capitalized terms used in this License
    are defined in the Glossary.
    2. License Grants.
    2.1. Original Contributor Grant. Subject to Your
    compliance with Sections 3, 8.10 and Attachment A of
    this License, Original Contributor gra nts to You a
    worldwide, royalty-free, non-exclusive license, to the
    extent of Original Contributor's Intellectual Property
    Rights covering the Original Code, Upgraded Code and
    Specifications, to do the following:
    a) Research Use License:
    (i) use, reproduce and modify the Original
    Code, Upgraded Code and Specifications to create
    Modifications and Reformatted Specifications for
    Research Use by You,
    (ii) publish an d display Original Code,
    Upgraded Code and Specifications with, or as part of
    Modifications, as permitted under Section 3.1 b) below,
    (iii) reproduce and distribute copies of
    Original Code and Upgraded Code to Licensees and
    students for Research Use by You,
    (iv) compile, reproduce and distribute
    Original Code and Upgraded Code in Executable form,
    and Reformatted Specifications to anyone for Research
    Use by You.
    b) Other than the licenses expressly granted in
    this License, Original Contributor retains all right,
    title, and interest in Original Code and Upgraded Code
    and Specifications.
    2.2. Your Grants .
    a) To Other Licensees. You hereby grant to each
    Licensee a license to Your Error Corrections and
    Shared Modifications, of the same scope and extent as
    Original Contributor's licenses under Section 2.1 a)
    above relative to Research Use, Attachment C relative
    to Internal Deployment Use, and Attachment D relative
    to Commercial Use.
    b) To Original Contributor. You hereby grant to
    Original Contributor a worl dwide, royalty-free,
    non-exclusive, perpetual and irrevocable license, to
    the extent of Your Intellectual Property Rights
    covering Your Error Corrections, Shared Modifications
    and Reformatted Specifications, to use, reprodu ce,
    modify, display and distribute Your Error Corrections,
    Shared Modifications and Reformatted Specifications,
    in any form, including the right to sublicense such
    rights through multiple tiers of distribution.
    c) Other than the licenses expressly granted in
    Sections 2.2 a) and b) above, and the restriction set
    forth in Section 3.1 d)(iv) below, You retain all
    right, title, and interest in Your Error Corrections,
    Shared Modifications and Reformatted Specifications.
    2.3. Contributor Modifications. You may use,
    reproduce, modify, display and distribute Contributor
    Error Corrections, Shared Modifications and
    Reformatted Specif ications, obtained by You under this
    License, to the same scope and extent as with Original
    Code, Upgraded Code and Specifications.
    2.4. Subcontracting. You may deliver the Source
    Code of Covered Code to othe r Licensees having at
    least a Research Use license, for the sole purpose of
    furnishing development services to You in connection
    with Your rights granted in this License. All such
    Licensees must execute appropriate document s with
    respect to such work consistent with the terms of this
    License, and acknowledging their work-made-for-hire
    status or assigning exclusive right to the work
    product and associated Intellectual Property Rights to
    < p>You.
    3. Requirements and Responsibilities.
    3.1. Research Use License. As a condition of
    exercising the rights granted under Section 2.1 a)
    above, You agree to comply with the following:
    a) Your Contribution to the Community. All Error
    Corrections and Shared Modifications which You create
    or contribute to are automatically subject to the
    licenses granted under Section 2.2 above. You are
    en couraged to license all of Your other Modifications
    under Section 2.2 as Shared Modifications, but are not
    required to do so. You agree to notify Original
    Contributor of any errors in the Specification.
    b) So urce Code Availability. You agree to
    provide all Your Error Corrections to Original
    Contributor as soon as reasonably practicable and, in
    any event, prior to Internal Deployment Use or
    Commercial Use, if applicable. Origina l Contributor
    may, at its discretion, post Source Code for Your
    Error Corrections and Shared Modifications on the
    Community Webserver. You may also post Error
    Corrections and Shared Modifications on a web-server
    of Your choice; provided, that You must take
    reasonable precautions to ensure that only Licensees
    have access to such Error Corrections and Shared
    Modifications. Such precautions shall include,
    without limitation, a password p rotection scheme
    limited to Licensees and a click-on, download
    certification of Licensee status required of those
    attempting to download from the server. An example of
    an acceptable certification is attached as Attachment
    A-2.
    c) Notices. All Error Corrections and Shared
    Modifications You create or contribute to must include
    a file documenting the additions and changes You ma
    Edited by: 880157 on Aug 18, 2011 6:50 AM

    Hello,
    I'm trying to run the samples wich came with the
    reference implementation 1.1_01 of the Java TV,but
    I'm a bit confused, the media.TestMedia cant runon
    my machine.
    I try to run with normal java (jdk 1.5) and usingthe
    all new CDC toolkit emulator,
    with both I can run the SvcDispXlet , but neitherrun
    the TestMedia, that should play an .mov video, if
    someone interest in helping me, I can send all the
    information, perhaps we can open a topic just for
    this...
    Some questions...:
    1 - Anyone run this samples?
    2 - There are any other way of run Java TV Xlet,
    except using XletView ( I will make applicationsfor
    ISDB-T and will NOT use MHP at all...) ??????
    3 - There are a complete (final) version of theJava
    TV implementation(non-free its good too)?

  • Java.security.Signature and PKCS #7

    I've got a raw signature returned from the sign() method in the java.security.Signature class. It looks like it is simply the encrypted hash of the data with no padding or encoding. Can anyone confirm this?
    Additionally, I need to be able to package this raw signature in a PKCS #7 signed data structure. I know that it needs to be ASN1 encoded and then packaged in an ASN1 structure. I just am not completely sure how to go about doing this.
    I was wondering if anyone could help point me in the right direction. Thanks!

    I found that the java.security.Signature class that I need is on JSR 219.
    This JSR doesn't come with the CDCL toolkit for Netbeans, but in the CDC toolkit. Is it because the JSR 219 is only intended for CDC and not CDCL?
    And the question of the post above is still open:
    Is there any way to sign documents easily in Java Mobile? Not having to implement it from scratch, I mean.

  • About the new optional Database related API for CLDC

    Hi friends...
    As i know there are different optional Java ME API's for the CDC toolkit but for implementing the sql in the J2me programming using the CLDC toolkit
    is there any JDBC optional API by Sun Microsystems?
    such as sql for the CDC please tell me that
    please tell me api besides the RMS(Record Management Systems)

    Yes, .Net framework is supported. Basically any programming is still supported and that doesn't really change. MDW will work exactly the same. The biggest difference between the two databases is Oracle Lite works well will Oracle SQL but SQLite is only SQL92 compatible (but can't handle right outer join... I think. So, you would have to modify SQL for this. Not that hard to do.) Berkeley DB/SQLite doesn't support stored procedures... but you can code your own functions and procedures before building the Berkeley DB library and they work the same way. I am playing with this feature now. Synchronization will work exactly the same way, so you don't have to change your knowledge of the Mobile Server. If you currently have a WinCE Oracle Lite deployment, all you have to do for sync is change the platform to Window Mobile SQLite... I know Oracle Support is working on a document note on how to extend platform support. I have posted an article on working with Berkeley DB.
    http://www.rekounas.org/2010/08/26/getting-started-with-berkeley-db-and-oracle-mobile-server/
    I have also ramped up the number of posts I have been creating due to this announcement. BTW, I am not Oracle, I am an independent consultant that has worked on many Oracle Lite and Mobile Server projects. Overall, this is exciting news and I do like the direction, but I do have a soft spot for Oracle Lite. I thought it was a fantastic product that was very powerful for a small database, but with so many features, the footprint was just too large and ultimately why the decision was made to go with BDB. I will find out if I can post the presentation that I did last week as it does give good insight on what Oracle is doing.

  • Sun Wireless Toolkit for CDC - JSR75 Application

    Hi All,
    I have Sun Wireless Toolkit for CDC installed in my machine. I have written a sample JSR75 application to access PIM database. At Compile time, it's giving so many compilation errors; it's not recognizing the PIM API.
    I have placed the jsr75.jar file in lib folder of CDC installation directory. At this time it's giving NullPointerException.
    Any body tell me how to access PIM API from Sun wireless Toolkit for CDC.
    Thank you very much in advance
    Thiru

    What platform do you use to develop? I use NetBeans and compilation works fine.
    I have the jsr75.jar in the following places (on old Apple iBook):
    /Users/carl/.netbeans/5.0/emulators/wtk22_linux/emulator/wtk22/lib/jsr75.jar
    /Users/carl/Library/mpp-sdk/jsr75.jar (for mpowerplayer emulator, but this does not work (yet))
    In the netbeans lib files also these jar-iles exist:
    cldcapi10.jar jsr082.jar midpapi10.jar wma11.jar
    cldcapi11.jar jsr184.jar midpapi20.jar wma20.jar
    j2me-ws.jar jsr75.jar mmapi.jar
    Carl.

  • GUI toolkit for Java ME/ CDC devices

    I have written in my blog about:
    GUI toolkit for Java ME/ CDC devices: http://ovenordstrom.blogspot.com/2006/08/gui-toolkit-for-java-me-cdc-devices.html
    and
    ERCP - Embedded Rich Client Platform, soon with the first release of eRCP:
    http://ovenordstrom.blogspot.com/2006/08/ercp-embedded-rich-client-platform.html
    That perhaps is interesting for Java ME/PP developers
    Regards,
    Ove

    Hi there!
    I guess you should take a look at GTK+/Gnome development today.
    Cheers,
    Inge-Lars

  • Sun Java Toolkit 1.0 for CDC on Linux

    I am looking to develop of my system to run on a PDA or one of the other more powerful J2ME platforms. From what I've read the Toolkit for CDC is what I need. I would like to use swing (if possible) and the platform must have WiFi access to a server (which will be running the J2EE (JBoss) application). So my target device must support J2EE client functionality.
    The download site only as a Windows EXE, but as a long time Solaris (and now Linux) hack I don't have a Window system to develop upon. Is Sun planning a version of the toolkit for Linux?
    If not is there a way I could bring the J2ME Wireless Toolkit up to the specification I need? I download that and had little problem developing a MIDlet that I deployed to my Mobile phone. I even played with the emulator and created a generic target device with a QVGA screen as I haven't got any target hardware yet.
    Thanks for any and all help
    Steve

    I'm also interested in how to develop CDC applications under linux...
    Edited by: nokia87 on Jan 16, 2008 2:06 AM

  • J2ME Wireless Toolkit 2.5

    Hi all,
    I would like to ask if this new veresion (J2ME Wireless toolkit 2.5) supports ArrayList.
    I have developed a program with ArrayList , is it possible to run it in this new version without problems.
    Thanks

    New version of WTK 2.5 supports CLDC stack. Unfortunately the ArrayList class is not present in the spec for this stack, so WTK 2.5 will not be able to run your application. (Like all other CLDC implementations) But you can try the CDC emulator "Sun Java Toolkit 1.0 for CDC" at http://java.sun.com/javame/downloads/index.jsp
    (CDC stack has the class ArrayList)

  • RMI profiles in CDC

    Hi Friends
    i am eager to know the information about profiles.what is the RMI profiles in CDC ?can it be implemented the CDC configuration using the J2ME Wireless Toolkit 2.5?
    Java RMI(Remote Method Invocation) APIs can be used in this J2ME CDC Profiles

    please see:
    http://forums.sun.com/thread.jspa?messageID=3085775

  • A CDC WebService Client

    hi,
    how can we call a webservice in an CDC application.i believe that it can be done through jsr172 implementation(j2me-ws.jar) . but it seems to work only with J2me Wireless ToolKit midlets.i tried to copy the stubs generated by the ToolKit and added them into my netbean CDC project along with the j2me-ws.jar
    . its compiling well but at run time it gives an Security Exception stating that that package java.rmi is an proctected System package. is there any way to call a web service in CDC application .i am using netbean5.0 CDC mobility pack NOKIA 80's emulator/ SE m600 emulator
    regards,

    try using the axis project as a client

  • Load and display image using CDC

    Hi everyone,
    Please help. I'm new to java. I need a simple routine to load and display an image from the file system into a CDC app on windows mobile 5. I'm usin creme 4.1.
    Thanx in advance

    Use the following as a guide:
    1. Get the image (path below must be absolute):
    public static Image getImage(String filename) throws ScanException {
    Image img = null;
    // Read paths from properties file
    StringBuffer buf = new StringBuffer("\\");
    buf.append(ScanUtility.getPathImages());
    buf.append("\\");
    buf.append(filename);
    buf.append(".jpg");
    File dataFile = new File(buf.toString());
    if(!dataFile.exists())
    throw new ScanException("Cannot locate the file:\n" + dataFile.getAbsolutePath());
    img = Toolkit.getDefaultToolkit().createImage(buf.toString());
    return img;
    2. Create a class to display the image (pass in the image, above):
    ImagePanel class source:
    import java.awt.*;
    import java.awt.image.*;
    public class ImagePanel extends Panel {
    private Image image = null;
    private Image scaledImage = null;
    private boolean imageComplete = false;
    public ImagePanel(Image img) {
    image = img;
    scaledImage = image.getScaledInstance(200, -1, Image.SCALE_DEFAULT);
    prepareImage(scaledImage, this);
    // Override the paint method, to render the image
    public void paint(Graphics g) {
    if(imageComplete) {
    g.drawImage(scaledImage, 0, 0, this);
    // Override imageUpdate method, to prevent repaint() from trying
    // to do anything until the image is scaled
    public boolean imageUpdate(Image img, int infoFlags, int x, int y, int w, int h) {
    if(infoFlags == ImageObserver.ALLBITS) {
    imageComplete = true;
    repaint();
    return super.imageUpdate(img, infoFlags, x, y, w, h);
    public void flush() {
    image.flush();
    scaledImage.flush();
    image = null;
    scaledImage = null;
    }

Maybe you are looking for

  • Why can't OSX track multiple copied clipboard items? Windows has been doing this for years. It's pretty much infuriating.

    For the umpteenth time, I've cut some huge chunk of text out of a dialogue box only to lose it following a momentary lapse in concentration. With all the 'it just works' propaganda I've heard and repeated over the years, I'm dumbfounded that Apple en

  • Font issues when in preview or publishing project (Captivate 4)

    I am continuing to experience problems with fonts in my projects. As a standard, I am only using Verdana 11 pt and 10 pt in my slides. This standard/consistancy is quite evident when I am viewing the slides in edit view. However, when I preview or pu

  • QT Pro not playing new MPEG 2

    I just created a new MPEG 2 file and QT Pro gives me a "Error -2048" when trying to play it. However, it does play my older MPEG 2 videos. Any ideas?

  • Sort Group by a Formula

    Hello, I have a group called Part number with a few production jobs with in that group.  I also have a SPQ (Std Production Qty) for each Part number.  I have a formula called @AvgMQty that gets the average prodution qty. I have another formula called

  • 10g database control

    hi, Working on oracle 10g is just like a mirage for me. I have installed and uninstalled it many times on my new laptop, but not been able to work on it, because of many oracle problems. my OS is windows xp prof. sp2. i have cracked my brain on acces