Compiling CLDC RI (KVM)

Hello,
I have problems compiling KVM with the following configuration:
javac 1.5.0_03
gcc (GCC) 3.3.5
GNU Make 3.80
I get:
src/java/lang/Object.java:132: cannot access java.lang.StringBuilder
file java/lang/StringBuilder.class not found
return getClass().getName() + "@" + Integer.toHexString(hashCode());
and plenty of warnings as:
src/java/lang/Object.java:132: cannot access java.lang.StringBuilder
file java/lang/StringBuilder.class not found
return getClass().getName() + "@" + Integer.toHexString(hashCode());
Note that switching back to jdk 1.4 makes it work perfectly.... (javac 1.4.2_08) even though I get plenty of warnings...
I didn't test the compiled kvm yet...
Does anyone know how to link this newly compiled kvm with the WTK?
Thanks in advance
Jon

I'm trying to compile cldc using java 1.4.2_02,
but I get the following error:
../../../kvm/VmCommon/src/verifierUtil.c: In function 'matchStackMap':
../../../kvm/VmCommon/src/verifierUtil.c:426: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../../kvm/VmCommon/src/verifierUtil.c: In function 'verifyClass':
../../../kvm/VmCommon/src/verifierUtil.c:547: error: invalid storage class for function 'Vfy_verifyMethod'
../../../kvm/VmCommon/src/verifierUtil.c:571: warning: implicit declaration of function 'Vfy_verifyMethod'
../../../kvm/VmCommon/src/verifierUtil.c:604: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../../kvm/VmCommon/src/verifierUtil.c: At top level:
../../../kvm/VmCommon/src/verifierUtil.c:1595: error: static declaration of 'Vfy_verifyMethod' follows non-static declaration
../../../kvm/VmCommon/src/verifierUtil.c:571: error: previous implicit declaration of 'Vfy_verifyMethod' was here
../../../kvm/VmCommon/src/verifierUtil.c: In function 'Vfy_verifyMethod':
../../../kvm/VmCommon/src/verifierUtil.c:1598: error: invalid storage class for function 'Vfy_checkNewInstructions'
../../../kvm/VmCommon/src/verifierUtil.c:1609: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../../kvm/VmCommon/src/verifierUtil.c:1610: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../../kvm/VmCommon/src/verifierUtil.c:1616: warning: dereferencing type-punned pointer will break strict-aliasing rules
../../../kvm/VmCommon/src/verifierUtil.c:1633: warning: implicit declaration of function 'Vfy_checkNewInstructions'
../../../kvm/VmCommon/src/verifierUtil.c: At top level:
../../../kvm/VmCommon/src/verifierUtil.c:1671: error: conflicting types for 'Vfy_checkNewInstructions'
../../../kvm/VmCommon/src/verifierUtil.c:1633: error: previous implicit declaration of 'Vfy_checkNewInstructions' was here
make[1]: *** [obj/verifierUtil.o] Error 1
any suggestion?
thanks.
paolo.

Similar Messages

  • Trouble compiling cldc 1.02

    I'm trying to install j2me, and I downloaded midp, j2mewtk, cldc, and midp-palm. Where I'm having the most trouble currently is trying to build cldc. I'm running NT4, but I don't have cl, which the build wants to use. I do have g++. Can anyone help me with this problem? If I try make from the dos window, I get:E:\java_pda\j2me_cldc\build\win32>make
    Syntax error: Unterminated quoted string
    make: *** [all] Error 2If I try make from cygwin:mike@QUARK /cygdrive/e/java_pda/j2me_cldc/build/win32
    $ make
    Recursively making ../../tools/preverifier/build/win32 all...make[1]: Entering directory `/cygdrive/e/java_pda/j2me_cldc/tools/preverifier/bu
    ild/win32'
    make[1]: cl: Command not found
    make[1]: *** [check_class.obj] Error 127
    make[1]: Leaving directory `/cygdrive/e/java_pda/j2me_cldc/tools/preverifier/bui
    ld/win32'
    make: *** [all] Error 1I tried alias cl=g++. But that doesn't work either. I also tried the linux build. This gets no farther (I didn't really expect it to...)
    Thanks in advance,
    m

    I just tried that and got the following error:mike@QUARK /cygdrive/e/java_pda/j2me_cldc/build/win32
    $ make GCC=true
    Recursively making ../../tools/preverifier/build/win32 all...make[1]: Entering directory `/cygdrive/e/java_pda/j2me_cldc/tools/preverifier/bu
    ild/win32'
    ../../src/convert_md.c: In function `native2utf8':
    ../../src/convert_md.c:109: warning: unused variable `i'
    ../../src/classresolver.c: In function `Locked_InitializeClass':
    ../../src/classresolver.c:693: warning: implicit declaration of function `utf2na
    tive'
    ../../src/classresolver.c: In function `InitializeAndResolveClass':
    ../../src/classresolver.c:1002: warning: unused variable `ee'
    /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: cann
    ot find -lmsvcrt
    collect2: ld returned 1 exit status
    make[1]: *** [preverify.exe] Error 1
    make[1]: Leaving directory `/cygdrive/e/java_pda/j2me_cldc/tools/preverifier/bui
    ld/win32'
    make: *** [all] Error 1thanks,
    m

  • Plug a home-compiled KVM and plug it into WTK

    Hello,
    I'm planning to plug some homemade functionalities to the KVM implementation (available for download - CLDC RI) provided by Sun.
    Imagine I can compile succesfully the new KVM:
    1st question: What exactly do I need as an output from the compilation? a "kvm" executable? A kvem.jar file?
    2nd question: How do I plug this new KVM to the WTK? (Simply replace the kvem.jar file?)
    Thanks in advance for the answers
    Jon

    Cables are available to go from 800 to 400. Of course, you will get 400 speed.

  • MIDP 2.0 Compilation Errors

    Hello,
    I am trying to compile MIDP2.0 on linux redhat 9.0. But I am seeing the following errors :
    /home/test/src/java/linux/midp2.0_01rr/build/linux/../../src/share/classes/com/sun/midp/io/ConnectionBaseAdapter.java:12: cannot resolve symbol
    symbol : class GeneralBase
    location: package io
    import com.sun.cldc.io.GeneralBase;
    ^
    /home/test/src/java/linux/midp2.0_01rr/build/linux/../../src/share/classes/com/sun/midp/io/j2me/https/Protocol.java:23: package com.sun.midp.ssl does not exist
    import com.sun.midp.ssl.*;
    ^
    /home/test/src/java/linux/midp2.0_01rr/build/linux/../../src/share/classes/com/sun/midp/io/j2me/https/Protocol.java:182: cannot resolve symbol
    symbol : class SSLStreamConnection
    location: class com.sun.midp.io.j2me.https.Protocol
    private SSLStreamConnection sslConnection;
    /home/test/src/java/linux/midp2.0_01rr/build/linux/../../src/share/classes/com/sun/midp/publickeystore/WebPublicKeyStore.java:167: cannot resolve symbol
    symbol : class X509Certificate
    location: class com.sun.midp.publickeystore.WebPublicKeyStore
         cert = new X509Certificate((byte)1, // fixed at version 1
    For a total I get about 46 errors.
    I am using gcc version 3.2.2
    I was able to compile CLDC 1.1 successfully and have a soft link called kvm in the same directory as MIDP.
    Would appreciate any help or suggestion.
    regards

    is MIDP 2.0 atleast backwards
    compatible with 1.0? If it is, atleast my MIDlet can
    run on new devices that support MIDP 2.0, as long as I
    don't use any MIDP 2.0 functionalities.as far as i know, it will work...

  • MIDP COMPILING PROBLEM.

    I have compiled cldc 1.1 under linux and when i was trying to complie midp 2.0, i got a long list of error saying that "warning: unmappable character for encoding UTF8" and "make: *** [jcc_classes/JavaCodeCompact.class] Error 1".
    anyone any idea?
    ./../../../../kvm/tools/jcc/src/JavaCodeCompact.java:4: warning: unmappable character for encoding UTF8
    * Copyright � 2003 Sun Microsystems, Inc. All rights reserved.
    ^
    3 errors
    90 warnings
    make: *** [jcc_classes/JavaCodeCompact.class] Error 1

    [root@localhost kvm]# make
    ... searching updated .java files
    ... compiling 256 .java files
    ../../../src/share/classes/com/sun/midp/publickeystore/WebPublicKeyStore.java:16: package com.sun.midp.ssl does not exist
    import com.sun.midp.ssl.*;
    ^
    ../../../src/share/classes/com/sun/midp/publickeystore/WebPublicKeyStore.java:27: cannot find symbol
    symbol: class CertStore
    public class WebPublicKeyStore extends PublicKeyStore implements CertStore {
    ^
    ../../../src/share/classes/com/sun/midp/publickeystore/WebPublicKeyStore.java:136: cannot find symbol
    symbol : class X509Certificate
    location: class com.sun.midp.publickeystore.WebPublicKeyStore
    public X509Certificate[] getCertificates(String subjectName) {
    ^
    ../../../src/share/classes/com/sun/midp/publickeystore/WebPublicKeyStore.java:159: cannot find symbol
    symbol : class X509Certificate
    location: class com.sun.midp.publickeystore.WebPublicKeyStore
    public static X509Certificate createCertificate(PublicKeyInfo keyInfo) {
    ^
    ../../../src/share/classes/com/sun/midp/midletsuite/SecureInstaller.java:29: package com.sun.midp.ssl does not exist
    import com.sun.midp.ssl.*;
    ^
    ../../../src/share/classes/com/sun/midp/midletsuite/SecureInstaller.java:59: cannot find symbol
    symbol : class X509Certificate
    location: class com.sun.midp.midletsuite.SecureInstaller
    private X509Certificate cpCert;
    ^
    ../../../src/share/classes/com/sun/midp/io/j2me/ssl/Protocol.java:19: package com.sun.midp.ssl does not exist
    import com.sun.midp.ssl.*;
    ^
    ../../../src/share/classes/com/sun/midp/io/j2me/ssl/Protocol.java:56: cannot find symbol
    symbol : class SSLStreamConnection
    location: class com.sun.midp.io.j2me.ssl.Protocol
    private SSLStreamConnection sslConnection;
    ^
    ../../../src/share/classes/com/sun/midp/io/j2me/https/Protocol.java:22: package com.sun.midp.ssl does not exist
    import com.sun.midp.ssl.*;
    firstly, under the classes.com.sun.midp , there is not ssl package available. then i was trying to search the ssl.jar which i found it under build/win32 ... then i extract it and put it under com.sun.midp.ssl
    but as the compilation goes, it just cannot detect and thus import all the packages that are available under the classes folder.
    EG. "./../../src/share/classes/com/sun/midp/io/j2me/ssl/Protocol.java:56: cannot find symbol
    symbol : class SSLStreamConnection
    location: class com.sun.midp.io.j2me.ssl.Protocol"
    i have check that Protocol.class is definitely under midp2/classes/com/sun/midp/io/j2me/ssl/
    but in this case, it just cannot be imported...
    i have compiled cldc1.04 successfully and renamed it to be kvm and put it in the same directory as midp2 folder.
    may i know why?

  • KVM has disappeared ?

    Hi,
    I have to have a look at the J2ME technlology, and one of the objective is to list all available JVM implementing J2ME specs...
    I have easily found that MIDP, CLDC and KVM are connected, but I can't find anywhere the KVM...
    The link http://java.sun.com/products/kvm/ now redirect to CLDC...
    Can you please tell me if KVM is always available ? Is it available for Pocket PC ? Or SUN gave up his VM ?
    Do you know a free VM that can run CLDC ?
    Sorry if this is a bit entangled, but J2ME on SUN Site is strongly entangled too :)
    Thanks for your answers

    Thanks, the FAQ gave me some answers...
    I'll try to be more clear...
    I have to find out hox to develop portable applications for PC/TabletPC/PocketPC in Java.
    I found that I have the choice between CDC and CLDC. I was thinking about developping with CLDC, but it runs on KVM, and JNI is not available on KVM...
    Here is a set of questions
    - is SUN KVM Runtime available ? For which platform ? I have only found Websphere and several J2ME VM, but none was free. I'm looking for a free J2ME VM, because the softs will be developped by students.
    In the FAQ, it is said :
    <i>I've ported the KVM/CVM to [some platform]. Can I distribute/sell my port?
    NOTE: The FAQ maintainers are not lawyers and this answer should not be construed as legal advice. With this understood, you may read the following as our possibly incorrect interpretation of the licensee agreement.
    When you downloaded the reference implementation, you agreed to the Sun Community Source License, which forbids you from distributing the source code for the reference implementation to anybody not also a licensee (section d, part i). You can only distribute binaries for evaluation purposes and cannot sell the ported VM (section d, part ii).</i>
    So I think SUN doesn't distribute any Runtime of KVM... Right ?
    - Since JNI is not available on KVM, I think about developping with CDC. Do you know a JVM that can run CDC on Pocket PC ? on Palm ? With the same constraints.
    Thanks

  • Kvm and vde2

    Hello,
    I've installed these two applications/packages on my Arch and they work well independently but when I try :
    vdekvm ... or vdeq ...
    I've got this error :
    qemu-kvm: invalid option -- '-tun-fd'
    (may be an option missing on compilation of qemu-kvm...)
    Thanks.

    Just find why : a stupid self made script /usr/local/bin/kvn !

  • MIDP for Palm on OS 4.0?

    Hi,
    The ea version of the palm midp says it is for Palm OS 3.5. Has anyone tried this with OS 4.0? (such as the Sony Clie 610?)
    Thanks!
    Rob
    [email protected]

    [robycox],
    The current MDIP APIs is not officially tested on the the release of Palm OS i.e. v4.0.
    Other 3rd party companies have released their very own CLDC compliant kVM for the Palm OS e.g. Jbed Micro Edition CLDC[tm] from Esmertec:
    http://www.esmertec.com/p_jbed_cldc_long.html
    The requirements for the kVM by Esmertec states Palm OS 3.3 or above, so their VM might work on the PalmOS 4.0
    HTH.
    Allen Lai
    Developer Technical Support
    SUN Microsystems
    http://www.sun.com/developers/support/

  • KVM CLDC build error at jcc

    Hi all,
    Some info first:
    Platform : LINUX Redhat 9
    Technology: CLDC 1.1
    Additional: JSR-75 from WTK 2.2
    I am trying to build the cldc kvm. I have a stack implementation in java, which I have integrated with the cldc. Also, I want to use the jsr-75 API (jar only, no source). Now here's the problem-- before adding the specific java files that use the jsr-75 api, I was able to build cldc properly without any errors. However, after I have added some new java code that requires the jsr-75 api's, the build dies as is indicated by the following...
    ===============>>>>
    make[2]: Entering directory `/users/in1222c/cldc/tools/jcc'
    ... nativeFunctionTableUnix.c
    /users/in1222c/jdk1.4/bin/java -classpath classes:/users/in1222c/WTK2.2/lib/jsr75.jar JavaCodeCompact \
             -arch KVM_Native -o nativeFunctionTableUnix.c classesUnix.zip
    Warning: could not quicken reference from <init>:(J)V to Class: javax/microedition/io/file/FileConnection
    Exception in thread "main" java.lang.NullPointerException
            at components.FMIrefConstant.findInInterfaces(FMIrefConstant.java:154)
            at components.FMIrefConstant.find(FMIrefConstant.java:134)
            at components.FMIrefConstant.isResolved(FMIrefConstant.java:169)
            at vm.CodeHacker.quickenCode(CodeHacker.java:206)
            at vm.CodeHacker.quickenCode(CodeHacker.java:326)
            at JavaCodeCompact.finalizeClasses(JavaCodeCompact.java:470)
            at JavaCodeCompact.writeROMFile(JavaCodeCompact.java:515)
            at JavaCodeCompact.process(JavaCodeCompact.java:343)
            at JavaCodeCompact.main(JavaCodeCompact.java:354)
    make[2]: *** [nativeFunctionTableUnix.c] Error 1
    make[2]: Leaving directory `/users/in1222c/cldc/tools/jcc'
    make[1]: *** [nativeFunctionTableUnix.c] Error 2
    make[1]: Leaving directory `/users/in1222c/cldc/tools/jcc'
    make: *** [all] Error 1
    <<<==============Now for this error I was not able to find relevant reference on the internet and hence I am posting here. Is this because I am linking my source files with a "class only library"? (Note: The jsr-75 library is the one which is supplied by Wireless Toolkit. I am using the library supplied by WTK 2.2 for Linux.)
    I may be missing a point here and hence landing in such a situation. I shall be obliged for any help regarding this.
    thanks in advance.
    bbye

    Problem resolved. I had made some inadvertent changes which were causing the problem
    I was trying to build CLDC on Windows2000 using cygwin
    as Unix environment and Microsoft C Compiler
    I got the following linking error.
    main.o : error LNK2001: unresolved external symbol
    _winDrawRectangle
    kvm.exe : fatal error LNK1120: 1 unresolved externals
    make[1]: *** [kvm.exe] Error 96
    make[1]: Leaving directory
    `//c/temp/cldc/kvm/kvm/VmWin/build'
    make: *** [all] Error 1
    Incidentally we have the function declaration
    void winDrawRectangle(int x, int y, int width, int
    height, int mode);
    in the file kvm\vmwin\h\machine_md.h(line no 122)
    and this function is called from the file
    but the problem is this function apparently isn't
    defined anywhere
    kvm\vmwin\src\nativeGraphics.c(line 216) in function
    Java_com_sun_kjava_Graphics_drawBorder()
    thanks in advance
    -prasun

  • Problems with File I/O in  java applications at KVM/CLDC Layer

    I wrote couple of programs made use of Connector.open with "file" protocol to perform File I/O.
    Code snippet from java application for File Read
    InputConnection conn = (InputConnection)
    Connector.open("file:/input.txt", Connector.READ );
    I got javax.microedition.io.ConnectionNotFoundException: The requested protocol does not exist file:/input.txt
    Code snippet from java application for File Write
    OutputConnection conn = (OutputConnection)
    Connector.open( "file:/input.txt;append=true", Connector.WRITE );
    I got javax.microedition.io.ConnectionNotFoundException: The requested protocol does not exist file:/input.txt;append=true
    I have couple of questions
    1. Does Connector class support "file" protocol at KVM/CLDC layer of Sun's reference implementation?
    2. If so, what could I be doing wrong?
    Thanks,
    Nuthan
    I'm looking forward to hear from you.

    I believe you can find the right answer here :
    http://forum.java.sun.com/thread.jsp?forum=50&thread=307980
    Hope that will help.
    bye

  • How to compile KVM in a linux with a arm processor

    Helow my uneversity bought a IMXL card with linux, the processor of this card is one of the arm porcessors family, i need to know how can i compile the kvm for construct aplications in this embedded system, do i need to download the kvm sources from another location?, please help me.

    Hi!
    Try out this:
    f60gen forname user/password
    f60gen myform.fmb scott/tiger
    c u

  • Compiling KVM

    I am trying to complie kvm on linux .
    But I got following errors .
    Please help............
    ... jcc_classes/JavaCodeCompact.class
    1. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassFileFinder.java
    (at line 15)
    import java.util.Vector;
    ^^^^^^^^^^^^^^^^
    The import java.util.Vector is never used
    2. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassFile.java
    (at line 13)
    import java.io.DataInput;
    ^^^^^^^^^^^^^^^^^
    The import java.io.DataInput is never used
    3. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassFile.java
    (at line 15)
    import java.io.DataOutput;
    ^^^^^^^^^^^^^^^^^^
    The import java.io.DataOutput is never used
    4. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassFile.java
    (at line 20)
    import java.util.Enumeration;
    ^^^^^^^^^^^^^^^^^^^^^
    The import java.util.Enumeration is never used
    5. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassFile.java
    (at line 21)
    import java.util.Hashtable;
    ^^^^^^^^^^^^^^^^^^^
    The import java.util.Hashtable is never used
    6. WARNING in /J2ME/CLDC/tools/jcc/src/util/BufferedPrintStream.java
    (at line 293)
    s.getBytes( 0, slen, buf, curindex );
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    The method getBytes(int, int, byte[], int) from the type String is deprecated
    7. WARNING in /J2ME/CLDC/tools/jcc/src/util/BufferedPrintStream.java
    (at line 296)
    s.getBytes( 0, slen, buf, curindex );
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    The method getBytes(int, int, byte[], int) from the type String is deprecated
    8. WARNING in /J2ME/CLDC/tools/jcc/src/util/BufferedPrintStream.java
    (at line 304)
    s.getBytes( 0, slen, buf, curindex );
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    The method getBytes(int, int, byte[], int) from the type String is deprecated
    9. WARNING in /J2ME/CLDC/tools/jcc/src/util/BufferedPrintStream.java
    (at line 307)
    s.getBytes( 0, slen, buf, curindex );
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    The method getBytes(int, int, byte[], int) from the type String is deprecated
    10. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassReader.java
    (at line 13)
    import java.io.File;
    ^^^^^^^^^^^^
    The import java.io.File is never used
    11. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassReader.java
    (at line 20)
    import java.util.zip.ZipInputStream;
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    The import java.util.zip.ZipInputStream is never used
    12. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassReader.java
    (at line 85)
    Enumeration enum = zf.entries();
    ^^^^
    'enum' should not be used as an identifier, since it is a reserved keyword from source level 5.0 on
    13. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassReader.java
    (at line 86)
    while (enum.hasMoreElements()) {
    ^^^^
    'enum' should not be used as an identifier, since it is a reserved keyword from source level 5.0 on
    14. WARNING in /J2ME/CLDC/tools/jcc/src/util/ClassReader.java
    (at line 87)
    ZipEntry ent = (ZipEntry)enum.nextElement();
    ^^^^
    'enum' should not be used as an identifier, since it is a reserved keyword from source level 5.0 on
    15. WARNING in /J2ME/CLDC/tools/jcc/src/util/DataFormatException.java
    (at line 15)
    public class DataFormatException extends java.io.IOException {
    ^^^^^^^^^^^^^^^^^^^
    The serializable class DataFormatException does not declare a static final serialVersionUID field of type long
    16. WARNING in /J2ME/CLDC/tools/jcc/src/util/LinkerUtil.java
    (at line 27)
    in = new java.io.StreamTokenizer(
    new java.io.BufferedInputStream(
    new java.io.FileInputStream( fname ) ) );
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    The constructor StreamTokenizer(InputStream) is deprecated
    17. WARNING in /J2ME/CLDC/tools/jcc/src/components/FieldConstant.java
    (at line 10)
    import java.io.DataOutput;
    ^^^^^^^^^^^^^^^^^^
    The import java.io.DataOutput is never used
    18. WARNING in /J2ME/CLDC/tools/jcc/src/components/StackMapFrame.java
    (at line 12)
    import util.DataFormatException;
    ^^^^^^^^^^^^^^^^^^^^^^^^
    The import util.DataFormatException is never used
    19. WARNING in /J2ME/CLDC/tools/jcc/src/components/StackMapFrame.java
    (at line 13)
    import vm.Const;
    ^^^^^^^^
    The import vm.Const is never used
    20. WARNING in /J2ME/CLDC/tools/jcc/src/components/ConstantValueAttribute.java
    (at line 12)
    import util.DataFormatException;
    ^^^^^^^^^^^^^^^^^^^^^^^^
    The import util.DataFormatException is never used
    21. ERROR in /J2ME/CLDC/tools/jcc/src/components/ConstantPool.java
    (at line 16)
    import sun.misc.Compare;
    ^^^
    The import sun cannot be resolved
    22. ERROR in /J2ME/CLDC/tools/jcc/src/components/ConstantPool.java
    (at line 19)
    class ConstantPool implements Compare {
    ^^^^^^^
    Compare cannot be resolved to a type
    23. ERROR in /J2ME/CLDC/tools/jcc/src/components/ConstantPool.java
    (at line 67)
    sun.misc.Sort.quicksort(arr, this);
    ^^^
    sun cannot be resolved
    23 problems (3 errors, 20 warnings)make: *** [jcc_classes/JavaCodeCompact.class] Error 255

    Hello again,
    are there no hints or something? I have absolutley no idea how to solve this problem.
    Regards
    HBellmer

  • Problems compiling KVM under windows

    Hi there,
    We tried to compile KVM under windows platforms and failed.
    Compilation failed at the java files under j2me_cldc\tools\jcc
    Therefore we do not have: nativeFunctionTableWin.c and nativeRelocationWin.c
    Can you please help us to compile the java files or send us the *.c files.
    Thanks
    Ronny Sherer.
    mailto:[email protected]

    I had the same trouble and this is what I did to get the KVM to compile.
    1. First of all to compile under windows you need a the Visual Basic Compiler and Linker to compile the C files.
    Also, in order for the makefiles to work properly, you need to install cygwin with basic command line functions (make,find,pwd...). And you need to place the cygwin commands ahead of the windows commands in your PATH eg set PATH = C:\cygwin;C:\windows.
    2. COPY the classes dir in j2me_cldc\bin\common\api
    TO the j2me_cldc\api dir
    3. Then modify the makefiles - where it has $(JAVAC) imediately after it type -target 1.1
    so for example in j2me_cldc\api\makefile the line
    $(JAVAC) -g$(DEBUGFLAG) -d tmpclasses -bootclasspath classes \
    becomes
    $(JAVAC) -g$(DEBUGFLAG) -target 1.1 -d tmpclasses -bootclasspath classes \
    NOTE: nowhere did I find anything to suggest that the KVM must be compiled under Java 1.1 but this is what worked for me.

  • Error Rebuilding the KVM.

    Hi,
    I get the following error, when I make changes to the Makefile ( /j2me_cldc/j2me_cldc_1.0.4/build/linux/) while rebuilding the KVM (cldc1.0.4). The KVM builds fine the first time. But,after making changes( for eg., setting DEBUG to true), I get compile errors on the StringBuilder class.
    I got the following error, when I last tried to rebuild the kvm:
    src/java/util/Vector.java:81 cannaot access java.lang.StringBuilder
    file java/lang/StringBuilder.class not found throw new IllegalArgumentException("Illegal Capacity: "+
    make[1]:***[compilefiles] Error 1
    make[1]: Leaving Directory '/j2me_cldc/j2me_cldc_1.0.4/api'
    make[1]:***[all] Error 1
    The compiler is looking for the J2SE StringBuilder while rebuilding the KVM. Could someone suggest whats happening here? ... and a solution for this problem? Thanks in advance!

    I get the same result on CLDC on
    both Windows and Linux

  • Building kvm with cygwin..

    Hi all,,
    this is in continuation with my previous posting regarding rebuilding of kvm in win32...
    i have downloaded cygwin ad i am trying to use its make for rebuilding the kvm for win32 environment.. again
    but it is giving the following errors
    reteshc@pcven40 ~/j2me/kvm/build/win32
    $ make
    i was unexpected at this time.
    make: *** [all] Error 1
    also while making JCC, its giving similiar errors..
    so, if any1 has any clue abt it.. or knows of some url or resource which may be useful, it will be highly appreciated..
    thanks,
    <i am using kvm with cldc 1.0 and midp 2.0.
    <And for using KNI we need to recompile whole of the KVM again after <including the native code. I am doing this right now at windows 2000 <platform, but as i compile and bulid i get some linker errors in VC++. <I don't know what the problem is as i got only one webpage which gave <the steps to port kvm to windows... and i did the same thing.. but <don't know where the problem is ?
    <
    <if u have any clue abt the problem letme know..
    <thanks,
    <
    <Retesh

    hi,
    by default gcc=true is set in the makefile.. but i found the error.. i had 2 different versions of make in my cygwin packages.. gnumake was not being used which is mandatory for kvm's makefile..
    i was also able to rebuild the kvm in linux after putting some native functionalities..
    thanks
    Retesh

Maybe you are looking for

  • Program IGS. SID not registered in IGS_RFC_DEST

    Hi all, I want to enable Internet graphics display for my BW system for which i have already installed IGS on my system and created RFC Destination as IGS_RFC_DEST and entered relevant parameters. When I test this RFC connection, the following error

  • Firefox keeps crashing. I don't know how to fix this

    Firefox has been consistently crashing. How can I stop this from happening? Also, when I type something in the Search box on Google, nothing shows up.

  • Status for the transferred Suppliers is not updated in ROS client!

    Hi all,    We are running on SRM 5.0(Sp6).After i transfer the propects from ROS to EBP and when i convert them to VENDOR in EBP,then the status of the suppliers become "RELEASED" in EBP but the status is not updated in ROS client. What is to be done

  • What are these lines around a table?

    Probably a basic question, but I've run across something in Dreamweaver that is a little maddening... When I create tables with 0 cellpadding or cell spacing, I'm still getting hairline "borders" around my table cells - if anyone can see the problem

  • Which Mac Pro to buy for Logic Pro and Final Cut Pro X?

    Hi, I'm considering to buy a Mac Pro for my personal studio. I have 2 choices in my mind: 1st one is the "Quad-core (one 3.2GHz Quad-Core Intel Xeon) with 6GB RAM", and the 2nd one is "12-core (Two 2.4GHz 6-Core Intel Xeon) with 12GB RAM". I'll be ma