J2ME/CDC and Netbeans

Hi all,
I am compiling some code in Netbeans using the CDC libraries and I am getting
this:
Compiling 20 source files to C:\build\compiled
C:\CP\ControlPanel.java:56: generics are not supported in -source 1.4
(try -source 1.5 to enable generics)
The only Java platforms I have in there are CDC and J2SE 1.5 - why does the compilation keep
referring to 1.4 as source? Furthermore, let's say for some reason it does, how does one
change this?
Thanks much

Hi all,
I am compiling some code in Netbeans using the CDC libraries and I am getting
this:
Compiling 20 source files to C:\build\compiled
C:\CP\ControlPanel.java:56: generics are not supported in -source 1.4
(try -source 1.5 to enable generics)
The only Java platforms I have in there are CDC and J2SE 1.5 - why does the compilation keep
referring to 1.4 as source? Furthermore, let's say for some reason it does, how does one
change this?
Thanks much

Similar Messages

  • Help regarding J2ME CDC for VxWorks target

    hi
    i'm getting a NoClassDefFoundError when attempting to run a "HelloWorld" test class in J2ME CDC for VxWorks target.
    i created the boot image for VxWorks through J2ME CDC and made use of that boot image to boot VxWorks.
    in the target, i navigated to "bin" directory using
    cd "<j2me-home>/cdcfoundation/build/vxworks/bin"
    and issued the command
    runJava "-Djava.class.path=../testclasses.zip HelloWorld".
    i got a NoClassDefFoundError when i ran the above command.
    i'm herewith attaching the stack trace for u'r kind perusal.
    please help me out of this situation.
    thanks in advance,
    ashok
    java.lang.NoClassDefFoundError : java.io.VxWorksFileSystem
         at java.io.FileSystem.getFileSystem()Ljava/io/FileSystem;(Native Method)
         at java.io.File.<clinit>()V(File.java:98)
         at java.lang.Class.runStaticInitializers()V(Class.java:1499)
         at sun.misc.Launcher$ExtClassLoader.getExtClassLoader.getExtDirs()
              [Ljava/io/File;(Launcher.java:164)
         at sun.misc.Launcher$ExtClassLoader.getExtClassLoader()
              Lsun/misc/Launcher$ExtClassLoader;(Launcher.java:130)
         at sun.misc.Launcher.<init>()V(Launcher.java:70)
         at sun.misc.Launcher$1.run()Ljava/lang/Object;(Launcher.java:52)
         at java.security.AccessController.doPrivileged0
              (Ljava/security/PrivilegedAction;
                   [Ljava/lang/Object;)Z(AccessController.java:265)
         at java.security.AccessController.doPrivileged
              (Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)
                   Ljava/lang/Object;(AccessController.java:278)
         at java.security.AccessController.doPrivileged
              (Ljava/security/PrivilegedAction;)
                   Ljava.lang/Object;(AccessController.java:251)
         at sun.misc.Launcher.<clinit>()v(Launcher.java:43)
         at java.lang.Class.runStaticInitializers()V(Class.java:1499)
         at java.lang.ClassLoader.getStaticClassLoader()
              Ljava/lang/ClassLoader;(ClassLoader.java:968)

    Did you solve the problem?
    You probably have to need to input "-Xbootclasspath".
    I also have the silimar problem.(UnsatisfiedLinkError)
    If you know about below, let me know. please.
    Thanks in advance.
    -> runJava "-Xbootclasspath=/Flash0/cdc.jar -Djava.class.path=/Flash0 HelloWorld"
    rfaSetMappingContext called!
    rfaSetMappingContext called!
    rfaSetMappingContext called!
    java.lang.UnsatisfiedLinkError: java.io.VxWorksFileSystem.initIDs()V
    at java.io.VxWorksFileSystem.<clinit>()V(Unknown Source)
    at java.lang.Class.runStaticInitializers()V(Unknown Source)
    at java.io.FileSystem.getFileSystem()Ljava/io/FileSystem;(Native Method)
    at java.io.File.<clinit>()V(Unknown Source)
    at java.lang.Class.runStaticInitializers()V(Unknown Source)
    at sun.misc.Launcher.getClassPath(Ljava/lang/String;)[Ljava/io/File;(Unknown Source)
            at sun.misc.Launcher.access$200(Ljava/lang/String;)[Ljava/io/File;(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.getAppClassLoader(Ljava/lang/ClassLoader;)Ljava/lang/ClassLoader;(Unknown Source)
            at sun.misc.Launcher.<init>()V(Unknown Source)
            at sun.misc.Launcher$1.run()Ljava/lang/Object;(Unknown Source)
            at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(Unknown Source)
            at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Unknown Source)
            at sun.misc.Launcher.<clinit>()V(Unknown Source)
            at java.lang.Class.runStaticInitializers()V(Unknown Source)
            at java.lang.ClassLoader.getSystemClassLoader()Ljava/lang/ClassLoader;(Unknown Source)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • J2me swing, cdc and window

    my company has developed a working version of swing w/ serializable on the desktop and like to import them into a pda. when i research this option online and i find out that only cdc can do that. however, when i download cdc and it seems that the package is only linux. where can i download a package that can used on window. i need to have swing on the pda, can cdc support all swing component? if not, what other options can i have?? i read online that j2me does not fully support swing, is that true?? i am a new programmer in j2me and really appreciate any help that i can receive.
    many thanks
    Yang

    First you should be aware that CDC is a configuration, so it does not contain any GUI components. In J2ME there are 3 different Profiles which are based on CDC.
    Foundation Profile (FP), Personal Base Profile (PBP and Personal Profile (PP). Only PP contains enhanced Java GUI elements. But it ONLY contains AWT. SWING is NOT supported and is not part of the PP specification.. Some JVMs like Creme from NSI (http://www.nsicom.com/) support Swing as opptional non-specification package. But you must buy the Creme JVM. The IBM VM J9 supports a reduced version of SWT (a GUI Framework), but not SWING. So generally it is very difficult to use SWING on a PocketPC.

  • Developing J2ME CDC PP for Axim X51 PDA

    Hi..
    Im trying to develop a program for a Dell Axim X51, which is going to be using RMI to connect to a server.
    I just want to hear if what i found out so far is correct, before proceeding with my program, which is a 3. Semester project.
    J2ME CDC Personal Profile is the largest profile which contains the following classes that Personal Basis profile doesn�t:
    java.applet
    java.awt.datatransfer
    Nokia S80 emulator is capable of using personal profile.
    Netbeans 5.5.1 + NetBeans Mobility Pack for CDC + Nokia S80 emulator for CDC/PP gives the ability to develop and test J2ME CDC/PP code.
    It is possible to import java.applet and/or java.awt.datatransfer ! The reason for asking this question is that it gives me a import error, for these two classes.
    Esmertec�s Jbed CDC contains a J2ME Runtime environment for CDC personal Profile with the Optional RMI package, and it can be installed and used on a Dell Axim X51 PDA.
    Scorp-D

    HI,
    Did you find the answer?
    If not then probably you want to look at this whitepaper
    http://java.sun.com/products/cdc/wp/cdc-whitepaper.pdf
    On page 14-15-16, you can see some info on the compatibility.
    Hope it helps

  • Help on cdc and pp

    1) i would like to develop application for pocket pc using cdc and personal profile for pda and i still don't how to begin even after reading the documentations that came with cdc and profile.help me please!
    2) is there any IDEs and emulators available which can be used to develop cdc and personal profile based application.
    3) can please recommend a high end pda that is suitable for application developed with cdc and personal profile.is the latest HP PDA : h5550 suitable?
    4) Please recommend web sites or books regarding application development for pda using cdc and personal profile.

    1) What you need is to buy Daryl Wilding-McBride's Java Development on PDAs (available at Amazon).
    2) About IDEs, yes, there are specific IDEs like the one from IBM. Though I found it difficult to get it running. Actually, you can use any IDE; I mean, I use Kawa because that's what I first learned. You have to install the proper JDK, and also you can use JavaCheck to make sure that your code is compliant (sp?) with Personal Java (yes, Personal Java). The biggest problem with this would be to find the Specifications file, but if you look for them in this forum you'll find them.
    About the emulator, yes, you can use the one from Microsoft (if you don't find it let me know and I'll look for the link). It's a huge download, because it doesn't come by itself, but as part of a whole package. This emulator doesn't emulate the hardware, only the software. Which means that you need a JVM that will run on x86 CPUs. For that purporse you can download CrEme (which is free, like the emulator).
    3) I guess any hidh end PDA is good for it (as soon as it's Java compatible)
    4) I mentioned the book already. That's the best you'll find right now. Also, you could go to www.javaranch.com and read through the J2ME board.
    If you need any more help, let me know
    Good luck!

  • J2me polish with netbeans    5.5?

    Hi i am trying to use J2ME polish with an existing midlet program i am working on but cant seem to get it to work.
    i have got one of the build.xml file from one of the samples and have placed it on my projects root folder. i then copied one of the resorces folder from the sample project and placed in in my projects root as well. When i try running the program i get a compile error below:
    Warning: unable to find following requested device-identifiers:
    S60Emulator
    Please check your <deviceRequirements> section in your build.xml script.
    C:\Documents and Settings\jonathan\My Documents\videoPoker\videoPoker\build.xml:70: Your device-requirements are too strict - no device fulfills them. Check the <deviceRequirements> section(s) in your build.xml script.
    im trying to run it on the s60 emulator and the default colourphone device emulator. hope you guys can help has i have not been able to get this j2me polish working for a while.
    How come when i try to use import de.enough.polish it tells me that it doesnt exist when i installed j2me polish succesfuly? how come i cant use it on my current default j2me project?
    i have got the latest jdk and wireless toolkit sdk and i have downloaded the mobile pack for netbeans 5.5

    Have you had any luck wih this problem? I'm having exactly the same problem now, starting to use J2ME Polish with NetBeans 5.5.1.
    Thanks!

  • Integrate J2ME Polish in NetBeans environment

    Hi all,
    I've trouble with having a full functionnal Netbeans environment with J2ME Polish.
    Here are the two ways I've tried without full success :
    *1- Start from a J2ME Polish project sample :*
    The sample is working well and when I add my code, most of it is working but :
    -> I can't add my own ressources (icons, sounds, etc...) even by adding the ressource directory in project properties. The code doesn't find them at execution.
    -> It doesn't find some specific APIs like MMAPI javax.microedition.media.control.VideoControl even if MMAPI ability is present and even if I manually add the mmapi.jar file in the library&ressources.
    *2- Add Polish library to an existing and working project :*
    I've added Polish abilities and enough-j2mepolish-client.jar library
    The code is compiling and I have access to both Polish and MMAPI interfaces.
    -> The big problem is that polish screens are empty. For example a simple polish alert screen is empty, the title bar is displayed, the softkeys are displayed but the content is not. Whereas, the string to be displayed is correctly built and no exception is raised during screen building and display.
    So my question is : Is there anybody who has a correct Netbeans 6.0.1 environment including J2ME Polish and what are the steps to follow to build such an environment ?
    Thanks a lot

    First of all , install netbeans and mobility package.
    Then do the follows:
    http://www.j2mepolish.org/docs/install.html#netbeans5
    J2ME Polish provides NetBeans specific build scripts from J2ME Polish 1.3 Beta 3 onwards. You can now just open any of the provided sample applications, delete the default build.xml script and rename the build-netbeans.xml script to build.xml. You can from then on use the normal debugging, build and compile facilities of NetBeans.
    Integrating a sample application in NetBeans:
    Select File > Open Project... and select any sample application in ${polish.home}/samples. Just select a folder like the menu folder and select Open.
    Now switch to the Files window by selecting Window > Files.
    In this window delete or rename the build.xml script which is in the base folder of the project.
    Now right-click the build-netbeans.xml script and rename it to build.xml. When the renaming does not work, do it directly from the file system (e.g. Windows Explorer).
    From now on you can build, run, debug and compile with the normal NetBeans commands (e.g. F5 for debugging). J2ME Polish is then used for building etc.
    When you start a new project in NetBeans, just copy one of the sample build.xml scripts to your project's folder. Then adjust the settings according to your needs.
    So , just adjust the ant script 'build.xml'

  • J2ME, CDC, Pocket PC, simulated keyboard problem

    I've developed a number of java apps for the pocket pc J2ME/CDC platform.
    Whenever I open the simulated keyboard and then close it, components (labels and text fields) disappear from the panel. Opening and closing the keyboard "occasionally" causes the missing components to reappear. But this is not a reliable work around.
    Has anyone run into this problem?
    I've already tried saving the panels graphics properties at startup and then performing panel.paintAll(Graphics g) or panel.paintComponents(Graphics g). Neither worked successfully.
    Thanking you in advance for your help.
    Regards,
    Joseph Lee

    J2ME CDC platform, I've run into a similar problem. I was using the IBM J9 (WEME 4.7.2) with the Windows Mobile 2003 2nd edition & WinCE 4.2 no problem, except for 256 character limit in classpath startup string, but when upgrading mobile devices OS to Windows Mobile 5.0 & WinCE 5.0 had to upgrade the IBM J9 WEME to the 6.1.1 version, which eliminated the 256 character limitation in the classpath, but now my special keys (F1, F2, F3, F4) do not pass thru the JVM. This is important function to my Oracle GUI client application which runs on wireless mobile scanner computer devices. I've tested key mappings, and when running trace files, the IBM WEME 6.1.1 does not pass any values (which show up as translated ASCII values, i.e. F2 = 71, F2 = 72), so I'm guessing that the API has changed. Currently running more tests.
    Regards,
    mark Colonese

  • J2ME,CDC, Pocket PC Keyboard problem

    I've developed a number of java apps for the pocket pc J2ME/CDC platform.
    Whenever I open the simulated keyboard and then close it, components (labels and text fields) disappear from the panel. Opening and closing the keyboard "occasionally" causes the missing components to reappear. But this is not a reliable work around.
    Has anyone run into this problem?
    I've already tried saving the panels graphics properties at startup and then performing panel.paintAll(Graphics g) or panel.paintComponents(Graphics g). Neither worked successfully.
    Thanking you in advance for your help.
    Regards,
    Joseph Lee

    J2ME CDC platform, I've run into a similar problem. I was using the IBM J9 (WEME 4.7.2) with the Windows Mobile 2003 2nd edition & WinCE 4.2 no problem, except for 256 character limit in classpath startup string, but when upgrading mobile devices OS to Windows Mobile 5.0 & WinCE 5.0 had to upgrade the IBM J9 WEME to the 6.1.1 version, which eliminated the 256 character limitation in the classpath, but now my special keys (F1, F2, F3, F4) do not pass thru the JVM. This is important function to my Oracle GUI client application which runs on wireless mobile scanner computer devices. I've tested key mappings, and when running trace files, the IBM WEME 6.1.1 does not pass any values (which show up as translated ASCII values, i.e. F2 = 71, F2 = 72), so I'm guessing that the API has changed. Currently running more tests.
    Regards,
    mark Colonese

  • Help! New to J2ME CDC

    Hi, I need some help with CDC. I am wondering if there is a way to run CDC program in the J2ME Toolkit emulator?
    Here's some extra information, don't know if its any use. I am running Windows 2000 with CDC Personal Profile. I compiled my code using "javac -bootclasspath C:\WTK21\j2me-pp1.0\btclasses.zip *.java". It works fine on Windows 2000 when I run it using J2SE. When I run it in the J2ME Toolkit it says java.lang is not defined.
    I just want to say that I'm really lost. Thanks.
    Derek
    http://users.wpi.edu/~aram/mqp/

    Sorry Derek, J2ME Toolkit emulator is made to run CLDC apps.
    I'm also trying to gather all information possible to begin to work with J2ME CDC.
    If i'm not wrong there's something like Personal Profile Emulator that you could use.
    Lots of luck and kind regards
    Jose Luis
    >
    Hi, I need some help with CDC. I am wondering if
    there is a way to run CDC program in the J2ME Toolkit
    emulator?
    Here's some extra information, don't know if its any
    use. I am running Windows 2000 with CDC Personal
    Profile. I compiled my code using "javac
    -bootclasspath C:\WTK21\j2me-pp1.0\btclasses.zip
    *.java". It works fine on Windows 2000 when I run it
    using J2SE. When I run it in the J2ME Toolkit it says
    java.lang is not defined.
    I just want to say that I'm really lost. Thanks.
    Derek
    http://users.wpi.edu/~aram/mqp/

  • Installation of J2SE V1.4.2 and NetBeans Java 2 Platform, Standard Edition

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8. After this very long download, my ISP disconnected. I re-connected, but am unable to install the download. Please help.
    alinda78

    I downloaded J2SE V1.4.2 and NetBeans IDE 3.5.8.
    After this very long download, my ISP disconnected.
    I re-connected, but am unable to install the
    e download. Please help.
    alinda78

  • Errors when using tomcat and netbeans combo.[Solved]

    Hi I'm trying to set up a netbeans/tomcat7 development environment for servlet development.
    I have tried this on 2 machines without any success.
    The steps I have followed are as follows.
    First I installed tomcat7 and netbeans from using pacman, then to be able to configure tomcat from netbeans I made the config files write permission 777, as it's just a development server security is not an issue.
    From there I started up netbeans started a new project and set the server to tomcat and pointed the Catalina home dir to /usr/share/tomcat7.
    When I try to run the example jsp project I get the following error:
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:392)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    root cause
    java.lang.IllegalStateException: No Java compiler available
    org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:226)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:636)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    I've spent the last couple of days trying to find any information on this but I cant find anything, so any advice would be much appreciated.
    Last edited by darkclown (2011-12-01 05:15:23)

    From the error, it appears that there is no JDK installed - only a JRE, could that be the case? If you do have a JDK installed, then Tomcat is not finding it.
    I would also not run this on the openJDK, in case you are doing that. I would use the proprietary Oracle/Sun JDK. It's in the AUR, or simply download it from Oracle.
    I was not even aware that netbeans and tomcat are available from pacman. I always "install" those myself manually (i.e. unpack them into a folder). They are simply Java apps that can be installed anywhere, as long as you point them to a valid JDK.

  • Is there ANY way i can develop j2me applications in NetBeans for Solaris?

    Ok, i don't like to complain, but this is really starting to tick me off.
    Here I am on this AMAZINGLY stable beautiful feature rich operating system that is Solaris SXDE.
    I am a Student and I LOVE java, I decided to try my hand at j2me programming, I got to get the j2me tools and runtime....
    and guess what I found?
    J2ME 3.0! Awesome Blu-Ray, MIPD, ETC, AWESOME.... one problem... only runs in windows!
    thanks.... but no thanks...
    NOW! before I freak out and complain that Sun is not supporting it's own platform please tell me that there is a way to do development on Solaris.

    No, teathering is not supported.

  • URGENT: J2ME CDC on Linux/ARM7 platform..

    Hi,
    Is there a J2ME CDC available for Linux/ARM7 platform.
    Its urgent.
    thanks in advance,
    Raj

    You can use JDK1.1.8 instead of CDC. Take a look here -> http://www.blackdown.org/java-linux/ports.html

  • Communication between J2ME MIDlet and J2SE server

    In my project I need to be able to exchange SMS messages between a J2ME MIDlet and a J2SE server? Is that possible? I tried the following:
    I included the CLDC, MIDP and WMA libraries in the classpath of my J2SE server and tried to use the wireless messaging API in the J2SE server. I get the following error message while trying to establish a MessageConnection:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: com.sun.midp.Configuration.getProperty0(Ljava/lang/String;)Ljava/lang/String;
         at com.sun.midp.Configuration.getProperty0(Native Method)
         at com.sun.midp.Configuration.getProperty(Configuration.java:34)
         at com.sun.midp.io.InternalConnector.<clinit>(InternalConnector.java:91)
         at javax.microedition.io.Connector.open(Connector.java:158)
         at javax.microedition.io.Connector.open(Connector.java:138)
         at javax.microedition.io.Connector.open(Connector.java:120)
    Can anybody provide any suggestions?

    The communication should be done through these ports: https://social.technet.microsoft.com/Forums/windowsserver/en-US/6de9c3f0-2841-4a74-80bb-46a02779124b/which-tcp-ports-does-a-workstation-use-to-authenticate-to-ad-and-get-group-policy?forum=winserverNIS
    To have better visibility, you can setup a network sniffer like Wireshark and observe the traffic.
    As the ADFS and DCs will be located in the same LAN then it should be okay as no filtering should be done (Unless if this is done on local firewalls of the servers).
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

Maybe you are looking for