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

Similar Messages

  • 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.

  • 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                                                                                                                                                                                                                                                                                                                                                                                               

  • 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.

  • 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                                                                                                                                                                                                                                                                                                                                                                                               

  • 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.

  • 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

  • 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 to start with CDC?

    Hi, friends:
    I have read much online material about CDC, but I'm still confused.
    I knew that I can download the WTK2.2 or higher to develop the app based on the CLDC and MIDP.
    My question is how to start with CDC. For example, If I use JBuilder, what stuff should been downloaded and installed? and how about the Eclipse?
    And some online learning resource is better!
    Thanks in advance!

    See
    http://home.elka.pw.edu.pl/~pboetzel/
    for HOWTO run SWT application on PocketPC (emulator). I used CDC 1.1 Personal Profile 1.1. You will find exact instructions what to download and install to write and run CDC applications. And also links to other guides and tutorials.

  • CDC Personal Profile and XML

    Hi everybody,
    does anyone here has any experiences with J9 (CDC Personal Profile) and XML document?
    Can I use SAX or Dom to parse XML files in CDC Personal Profile?
    Any help is appreciated!!

    Try kXML. It should work on any Java platform.

  • 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

  • Building the CDC Foundation JDWP

    Hi, I've been having problems installing the CDC foundation package. After going through and managing to get it built, I then wanted to use the debugger with the CVM. following the instructions in the porting guide, I built the CDC pakage with the JVMDI support, and then attempted to build the JDWP agent using the following command:
    make BOOTDIR=/usr/java/j2sdk1.4.0_0_01
    this differs from the documented command line, which was:
    make -BOOTDIR=/usr/java/j2sdk1.4.0_0_01/bin/
    I found the documented command line simply did not work at all.
    However I am still getting an error from the compiler, namely:
    make[2]: /micro/tools/i686-redhat-linux/gnu/bin/arm-netwinder-linux-gcc: Command not found
    It seems that it's trying to build for the wrong platform? I tried setting the target as linux and linux-i686, however these were not recognised. I've looked through the makefiles and can't find where this command is called.
    Any ideas anyone? I'm running redhat 7.3, J2SE 1.4.0, egcs 1.1.2

    sorted this now, changed:
    /jdk_build/linux/makefiles/Def-linux.mk
    commented ARCH=linux-sarm-sidewinder
    uncommented ARCH=i686
    changed the path on lines 100 and 107.
    changed the command to gcc on line 117

  • Setting Dialog's size with CDC-pp

    Hi
    I'm trying to adapt an AWT version of JOptionPane so it can run correctly on IPaq(running Linux Familiar 0.7.2 if you want to know everything), using j2me cdc personal profile.
    On PC, the class does what it's supposed to do(show a message/confirm/dialog box with the correct size). But when I run the class on my IPaq, the dialog box is so small, I can't see it. When I use the setSize() method, I can see something, but it's not the best solution, since it's not adapted to the content of the dialog box.
    Has somebody managed to resize a component to its preferred size on IPaq(the pack() and getPreferredSize() don't seem to work, but maybe I haven't use them correctly)?
    thanks

    actually, the call to setResizable(false/true) before the setting of the dimensions causes this behaviour.
    Originally, I put setResizable(false); and few lines later, I put pack(); or setSize();
    Actually you must do the other way round: first put pack(); or setSize(); then setResizable(false);

  • Collaborate on Excel workbooks with Sharepoint Foundation

    My company recently implemented SharePoint Foundation 2013 and our shared Excel workbooks are no longer allowing multiple users to collaborate at the same time. We have verified that all the settings and permissions are correct and that checking in and
    checking out is not required. Is this something that is not available with SharePoint Foundation? We are using Office 2013 installed on the clients, not Office online. Thank you.

    Co-authoring of Excel workbooks is only supported when all the editors are using the Excel web application, not the Excel client application.
    From
    Microsoft's overview of co-authoring in SharePoint 2013:
    >"Co-authoring is easy to use from the end user’s point of view. When a user wants to work on a document in Word 2013, PowerPoint 2013, OneNote 2013, Visio 2013 or one of the Office Web Apps, he or she merely opens it from SharePoint 2013 or SharePoint
    Online, as usual. If another user already has the document open, both users can edit the document at the same time.
    One exception to this is that users can co-author in Excel Web App only if everyone uses the Excel Web App to access the workbook. If anyone uses Excel 2013 or Excel 2010 (the client application)
    to access the workbook, co-authoring in Excel Web App will be disabled for that workbook while it is open in the client application."
    >"The Excel 2013 client application does not support co-authoring workbooks in SharePoint 2013 or SharePoint Online. But, the Excel client application uses the Shared Workbook feature to support non-real-time co-authoring workbooks that are stored
    locally or on network (UNC) paths."

Maybe you are looking for

  • How to find discoverer log files and CPU usage

    Hi, i have a report running very slow in prod. but runs fast in dev and qa. **Where/how can i find the Log files generated after the report runs?** **Also i wanted to see how i can find the CPU Usage** i searched online for CPU usage... and found thi

  • Photostream and iCloud not working post ios7

    I have an iPhone 4S and mini ipad.. Since updating the phone no longer syncs to photostream however the ipad does sync and photos then appear on iPhone and ipad. Also today I get a message saying iCloud has not backed up for 2 weeks. All this coincid

  • Weird preview issue

    Using LiveCycle Designer ES and Reader 9. Very simple form but the form fields aren't functional when previewed in LC Designer. They work fine in Reader or Acrobat but not in preview...... Thanks Mike

  • Error implementing Java Mail

    I downloaded the Javamail package extension and placed the mail.jar file in my WEB-INF/lib directory. Then I reloaded the application and did a restart. I am getting the following error message. com.sun.mail.smtp.SMTPSendFailedException: 550 bosauths

  • Text lengs in Cyrillic characters vs in Latin characters

    Greetings! I've faced a problem, i have a member with a text parameter to input a text data (names), but in Cyrillic Essbase allows to input only 42 characters otherwise in Latin - all 255 as declared, how to solve that problem so a text in Cyrillic