How to run CDC Foundation profile on Pocket PC (iPAQ)?

Hi,
I'm using IBM Websphere to compile and run CDC Foundation Profile Java apps. My question is, how do I run the JXE files by themselves on my iPAQ?
Thanks,
Derek

Hi Derek,
I set up a device build for my ppc in Websphere and it builds my .jxe file and copies it accross to my Pocket PC using active sync for me. I can then just run the app by clicking on the shortcut link file.
If this doesn't work for you try using a link file (mylink.lnk) to run the application. The contents of a link file are like:
255#"\Program Files\J9\PPRO10\bin\j9w.exe" "-jcl:ppro10:loadlibrary=swt-win32-3101" "-cp" "\Program Files\J9\PPRO10\lib\swt.jar;\Program Files\J9\PPRO10\examples\ex1.jar" "Ex1"
The number 255# represents how many chars are in the link
\Program Files\J9\PPRO10\bin\j9w.exe is the path to the VM (.jxe files are proprietry .class files optimized for the J9 VM)
jcl:ppro10:loadlibrary= is an option for loading a native library (.dll) file i believe. (you may not need this - the example above is using the SWT UI package which needs the swt-win32-3101.dll file so it is included in the lnk),
"-cp" is the class path (include any external jars you need as well as your application jar)
then type in the name of the main class to run.
i think there is also a "-jxe:<jxeFile>" option you can use to run a .jxe file with the J9 VM from IBM.
hope this helps.
Walt.

Similar Messages

  • I want to run cdc/foundation on xscale target board. what do I do?

    Hi~
    I am porting a cdc/foundation porting on the xscale taget board.
    But, When linking I have some error message.
    ==================================
    Linking ../../build/linux-sarm-dtv/bin/cvm
    /usr/local/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
    Warning: alignment 4 of symbol 'CVM_java_lang_Class_intfMethodtable' in ../../build/linux-sarm-dtv/obj/libromjava.a(romjavaAux.o)
    /usr/local/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
    Warning: alignment 4 of symbol 'CVM_java_lang_String_intfMethodtable' in ../../build/linux-sarm-dtv/obj/libromjava.a(romjavaAux.o)
    /usr/local/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld:
    Warning: alignment 4 of symbol 'CVM_java_lang_security_AllPermissionCollection_1_intfMethodtable' in ../../build/linux-sarm-dtv/obj/libromjava.a(romjavaAux.o) is smaller than 32 in ../../build/linux-sarm-dtv/obj/libromjava.a(romjavaAux.o)
    /usr/local/lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld: cannot find -lfloat
    collect2: ld returned 1 exit status
    What do I do?
    I hope somebody's help me...^^*

    Hi ,
    I am also facing the same problem when compiling cdc foundation profile for arm.
    "ld: cannot find -lfloat"
    Did u get the solution on this?
    If yes please help me.
    Thanks,
    Sara

  • Compiling CDC/ Foundation Profile  and Personal Profile in RedHat 7.3

    When I compile the CDC/Personal Profile,in RedHat 7.3,I get this message:
    ../share/rules.mk:235: ../../build/linux-i686/generated/empty.mk: No such file or directory
    ... mkdir ../../build/linux-i686/generated/javavm/runtime
    touch ../../build/linux-i686/generated/empty.mk
    ... mkdir ../../build/linux-i686/generated/flags
    error:compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null
    ,null,null,null,null,null,null
    100 errors
    make: ***[.compile.btclasses] Error1
    And with CDC/Foundation Profile ,the message is:
    error:compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null
    ,null,null,null,null,null,null
    100 errors
    make: ***[.compile.btclasses] Error1
    What can I do now!
    Can you help me to solve this error?

    Just do export LANG=en_US
    also edit the /etc/sysconfig/i18n file entry for LANG to en_US instead of the UTF.8 stuff
    I don't know the exact reason though.. this will work.
    --Prasanna Kumar                                                                                                                                                                                                                                                                                                                                                                                               

  • Obtain CDC + Foundation Profile

    Hi,
    Where can I get CDC + Foundation Profile HotSpot Implementation?
    For CDC (FP) reference inplementation, does it only support Linux platform?
    Thanks very much,

    Just do export LANG=en_US
    also edit the /etc/sysconfig/i18n file entry for LANG to en_US instead of the UTF.8 stuff
    I don't know the exact reason though.. this will work.
    --Prasanna Kumar                                                                                                                                                                                                                                                                                                                                                                                               

  • RMI with CDC + foundation profile

    I'm trying to get RMI working with Java ME on Linux. I built the CDC with the Foundation Profile and installed that on the target device (which has an i486-class processor), and set LD_LIBRARY_PATH to include the path that my native library is in.
    If I run the standard java VM (1.5), it finds the library and runs my test app. However, if I run it with cvm, I get the following error:
    java.lang.UnsatisfiedLinkError: no adm1026 in java.library.path
    at java.lang.ClassLoader.loadLibraryInternal(Ljava/lang/Class;Ljava/lang/String;ZZ)Ljava/lang/Object;(ClassLoader.java:1465)
    at java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V(ClassLoader.java:1349)
    at java.lang.Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V(Runtime.java:814)
    at java.lang.System.loadLibrary(Ljava/lang/String;)V(System.java:854)
    at com.terascala.manager.server.EnclosureSensorReader.<clinit>()V(EnclosureSensorReader.java:71)
    at java.lang.Class.runStaticInitializers()V(Class.java:1523)
    at java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Method.java:314)
    at sun.misc.CVM.runMain()V(CVM.java:259)
    I've also tried explicitly setting java.library.path, and it makes no difference. Is there some change I have to make to compile my library so that CVM can load it? I know that Linux will often say it "can't find" a library when it really means that the library isn't compatible with the loader, so I assume something like that is going on here.
    Thanks in advance.

    Hi.
    Some iPAQ's are delivered with Jeode PersonalJava VM. It can also run applets. This is a kind of "old" Java but still "state of the art" for WinCE/PPC.
    For the more up to date J2ME you need a proper VM. CLDC is for devices with restricted resources like mobile phones etc. CDC is for devices with some more resources, e. g PDA, Settop-boxes etc. For these devices and J2ME/CDC I only know the beta of NSIcom's CrE-ME VM, availabe as a 30-days trial at www.nsicom.com.
    Yours
    Michael

  • Urgent:How to run BSP Application on Emulator Pocket PC2003 (mobile device)

    Hii Experts
    We are developing a BSP application on BI in HTMLB.When we run this application on Emulator Pocket PC2003 (mobile device), it is just showing the header,and rest of the page is blank.It is not showing any data.
    Can there be any problem with the used HTMLB tags?
    If HTMLB file not converting properly to HTML file,how can i locate the error?
    Where and how can i find solution to this problem?
    Please help me in solving this problem ASAP.
    Thanx to experts in advance.
    Regards
    Varun

    Hi,
    Have a look at the mobile extension:
    http://help.sap.com/saphelp_nw04/helpdata/en/e6/103b3b4c003416e10000000a114084/frameset.htm
    Alternatives are Web Dynpro or create you own HTML which needs to be conform http://www.vnunet.com/vnunet/news/2159256/w3c-drafts-mobile-web
    Eddy

  • Problems with CDC/Foundation Profile making on Linux, heip me please!!!

    I am a new to J2ME.My OS is redhat9.0,and building tools is gcc3.4.3.After having downloaded the cdcfoundation-1_0_1-fcs for linux, I unzip it to /home/cdcfoundation/.Under the directory of /build/linux/,I typed the following command:
    make CVM_JAVABIN=/usr/java/jdk1.5.0/bin CVM_DEBUG=true J2ME_CLASSLIB=foundation
    But it failed to build,the error is:
    make: *** No targets specified and no makefile found. Stop.
    I had tried many times,I hope someone can help me!!!
    I am waiting................

    You need ksh (korn shell) in order to compile. It is because this shell provides an option (if I remember well -h) which is not present in other shells like bash.
    So, download it from http://www.kornshell.com and make it available in a folder present in your PATH.
    Hope this help.

  • Problems with CDC/Foundation Profile making on Linux

    I am a new to J2ME.My OS is redhat9.0,and building tools is gcc3.4.3.After having downloaded the cdcfoundation-1_0_1-fcs for linux, I unzip it to /home/cdcfoundation/.Under the directory of /build/linux-i386/,I typed the following command:
    make CVM_JAVABIN=/usr/java/jdk1.5.0/bin CVM_DEBUG=true J2ME_CLASSLIB=foundation CVM_GNU_TOOLS_PATH=/usr/bin
    But it failed to build,the error is:
    make: ksh: Command not found
    make: ksh: Command not found
    H BH B../share/rules.mk:235: ../../build/linux-i686/generated/empty.mk: &#27809;&#26377;&#37027;&#20010;&#25991;&#20214;&#25110;&#30446;&#24405;
    make: ksh: Command not found
    make: *** [../../build/linux-i686/generated/javavm/runtime] Error 127
    I had tried many times,I hope someone can help me!!!
    I am waiting...............

    You need ksh (korn shell) in order to compile. It is because this shell provides an option (if I remember well -h) which is not present in other shells like bash.
    So, download it from http://www.kornshell.com and make it available in a folder present in your PATH.
    Hope this help.

  • How to build CDC/FP using Fedora?

    The specified environment for building the J2ME CDC/Foundation is RedHat Linux 6.2. However, the latest release of RedHat Linux is Fedora. How do I build the CDC/Foundation Profile using this latest version of RedHat Linux?

    As an electrical circuit, a comparator is an analog circuit with two input voltages: a reference voltage, sometime referred as a threshold, and an input voltage. When the input voltage is above or below the reference voltage, the output of the comparator change its state.
    You can emulate or even create versatil a comparator in LabVIEW by comparing the input voltage against a constant using the most adequate comparison function in the function palette. For example, you may want to use the "Greater?" vi to compare the input voltage (the x input) against a constant value (the y input). If x > y, the output is a boolean TRUE, if not, is a boolean FALSE. You can use this output to determine your output voltage. A good function to do so is the "Select" vi, which wil
    l allow you to select between two options depending on the boolean state.
    Best regards;
    Enrique
    www.vartortech.com

  • Does CDC(PP profile) supprots ARM 7 platform?

    Hi all:
    Who can tell me the answer of this question, and where to get the cdc and pp profile implementation?

    Yes,it is. I 'm porting CDC(foundation profile), and I encount many problems. If you have some experiences or you want to talk about it with me, please Email with me. [email protected] By the way, I'm a Chinese.

  • How do I run a Java Application on Pocket PC 2003 (iPAQ 2210)

    I am writing an application for the iPAQ 2210. It will need to commuunicate over GPRS sending POST requests to a server (I think I will be using the Java.net package) the user interface will be very simple (a few buttons and text boxes) and will capture the data entered and send it back to the server (via the POST HTTP request) and read the response from the POST.
    I believe I need to use the Personal Profile version of J2ME and I am only using the classes that it says are supported. How do I run the App on the Pocket PC. Having spoken to HP they have said I shouldn't need a virtual machine and that pocket pc 2003 has one built in! Is this so or should I get myself the Jeode Virtual machine?
    Is the Jeode machine the best one?
    Sorry to ask so many questions in one go, I'm a little lost at the moment!!
    Jon

    Hello Jon,
    I will suggest you using IBM WSDD. Although it uses its own version of JVM(J9), but it suits to your needs well.
    I think you should base your project on foundation profile(as you need some gui as well as java.net).
    regards
    -fatbrain73

  • How could I use native methods in CDC-Personal Profile?

    Hi, I know that CDC-Personal profile doesn�t support JNI (I think so), but i think that must be a way to use native methods in an application written with Personal Profile. Thank you very much

    I'm esperiecing the JBluez executing in a CVM for Linux...all seems work well, and i know that only the CLDC doesn't support JNI but CDC support it. You only need to follow theinstructoins valids for use JNI with J2SE, if i'haven't readed bad, CDC is Java 1.3 compliant...
    I hope this could clarify your ideas
    Andrew

  • How to port CDC for PowerPC

    hi,
         I have downloaded the j2me_cdcfp-1_0_1-fcs-doc-b12-linux-i686-14_May_2002.zip and
    j2me_cdcfp-1_0_1-fcs-src-b12-linux-i686-14_May_2002.zip
    I was able to build the cvm for Linux-i686, since there is no other source for CDC for Powerpc.
    I tried top Cross compile it for Powerpc using the exsting *.mk file in linux-powerpc.
    I have changed the GNUmakefile to support the powerpc with arch=powerpc. it poped the following Error
    issued the following command in ./build/linux-powerpc
    ------------------------ ERROR --------------------------
    make CVM_DEBUG=false CVM_JAVABIN=/java/j2sdk1.4.2_0
    Checking for build-time classes to compile ...
    Checking for CDC classes to compile ...
    Checking for test classes to compile ...
    ... ../../build/linux-powerpc/obj/invokeNative_powerpc.o
    /tmp/ccR5coXf.s: Assembler messages:
    /tmp/ccR5coXf.s:29: Error: no such instruction: `mr %edx,%r1'
    /tmp/ccR5coXf.s:134: Error: no such instruction: `mr %r1,%ecx'
    /tmp/ccR5coXf.s:174: Error: no such instruction: `mr %r1,%ecx'
    /tmp/ccR5coXf.s:210: Error: no such instruction: `mr %r1,%eax'
    /tmp/ccR5coXf.s:246: Error: no such instruction: `mr %r1,%eax'
    /tmp/ccR5coXf.s:280: Error: no such instruction: `mr %r1,%eax'
    /tmp/ccR5coXf.s:314: Error: no such instruction: `mr %r1,%eax'
    /tmp/ccR5coXf.s:360: Error: no such instruction: `lwz %edx,0(%r1)'
    /tmp/ccR5coXf.s:361: Error: no such instruction: `stwux %edx,%r1,%eax'
    /tmp/ccR5coXf.s:362: Error: no such instruction: `addi %eax,%r1,8'
    /tmp/ccR5coXf.s:411: Error: no such instruction: `lwz %edx,0(%r1)'
    /tmp/ccR5coXf.s:412: Error: no such instruction: `stwux %edx,%r1,%eax'
    /tmp/ccR5coXf.s:413: Error: no such instruction: `addi %eax,%r1,8'
    /tmp/ccR5coXf.s:446: Error: no such instruction: `lwz %edx,0(%r1)'
    /tmp/ccR5coXf.s:447: Error: no such instruction: `stwux %edx,%r1,%eax'
    /tmp/ccR5coXf.s:448: Error: no such instruction: `addi %eax,%r1,8'
    /tmp/ccR5coXf.s:480: Error: no such instruction: `lwz %edx,0(%r1)'
    /tmp/ccR5coXf.s:481: Error: no such instruction: `stwux %edx,%r1,%eax'
    /tmp/ccR5coXf.s:482: Error: no such instruction: `addi %eax,%r1,8'
    /tmp/ccR5coXf.s:529: Error: no such instruction: `lwz %edx,0(%r1)'
    /tmp/ccR5coXf.s:530: Error: no such instruction: `stwux %edx,%r1,%eax'
    /tmp/ccR5coXf.s:531: Error: no such instruction: `addi %eax,%r1,8'
    make: *** [../../build/linux-powerpc/obj/invokeNative_powerpc.o] Error 1
    i understand that the assembler say that your trying to complie the powerpc on i686 machine.
    how can i cross compile it for Powerpc using linux-i686 machine, and use for embedded application
    thanks in advance
    Syed.M.A

    Hello Syed MA,
    if you are looking for a CDC compliant Java Virtual Machine, IBM have written one that works on Linux on PowerPC (and on other processors too).
    Have a look at http://www-3.ibm.com/software/wireless/wme/
    It supports CDC and the Foundation Profile. I beleive that buying this rather than building your own is probably better in the long run as the IBM one has been certified as CDC compliant (passed the TCK tests).
    Running your own Technology Compatability Kit tests (TCK) is very expensive.
    I think the IBM virtual machine costs about &#8364;6.00 per unit to deploy but is free for developers.
    Give me a shout if you need any more advice.
    Matt :)

  • When do we use Foundation Profile

    Hi,
    when do we use the Foundation Profile?
    how different is it from the Personal Profile?
    is the FProfile more in use than PProfile?
    if the PP is available why would we use the FP?

    when do we use the Foundation Profile? on device with limited memory and no requirement for a GUI.
    how different is it from the Personal Profile?Foundation Profile have no GUI.
    Personal PP have GUI.
    And PP is rather much larger than FP in memory storage
    is the FProfile more in use than PProfile?Yes, sorta...since FP is a subset of PProfile
    if the PP is available why would we use the FP?Small device have limited memory (some have only 32 MB total)
    J2ME with CDC + PP takes about 2MB+ (that's i/8th of total memory)....while CLDC+MIDP takes about (600 KB)
    Also, runtime memory requirement for CDC+PP is much higher than CLDC+MIDP
    Palm OS is an example why we use MIDP instead of PP
    and small device such as cell phone have greater limit on memory storage...so they tends to choose CLDC and MIDP

  • How do I enable multiple profiles on 1 computer

    I have a family of 4...currenty everyone has at least 1 device. I am running Windows 7. How do I create a User Profile for each user that can still share music and photos?
    I want to be able to limit some explicit music from the kids so I need to be able to adjust each profile.

    annafromsalt lake city wrote:
    how can I allow all profiles to access the one master iTunes library?
    move the entire iTunes folder to <MacintoshHD>/users/shared. on each user account, launch iTunes while holding the option(⌥) key, click on choose library when prompted, and select the iTunes folder you moved to the share folder.
    be aware only one iTunes at a time can access the library !

Maybe you are looking for