J2ME: javac: target release 1.1. conflicts with default source release 1.5

Discussion in 'Java' started by John Goche, Dec 17, 2005.

  1. John Goche

    John Goche Guest

    Hello,

    I have installed Java 1.5 and MIDP 1.0.3. When I use the J2ME
    Wireless Toolkit and hit the "Build" button to build the project
    I get the following error:

    Builing "Hello"
    javac: target release 1.1. conflicts with default source release 1.5
    com.sun.kvem.ktools.ExecutionException
    Build failed

    Any idea how come I am getting this? Should I downgrade my JDK?
    Or perhaps upgrade to MIDP 2.0 (which among other things has SSL
    support, which is missing in MIDP 1.0).

    Thanks,

    JG
    John Goche, Dec 17, 2005
    #1
    1. Advertising

  2. John Goche

    John Goche Guest

    Hello,

    I solved this problem by downgrading to JDK 1.4.2
    and updating the corresponding Path and CLASSPATH
    variables on WinXP:

    $ javac -target 1.1 -bootclasspath \
    %MIDP_HOME%\classes Hello.java

    $ preverify -cldc -classpath %MIDP_HOME%\classes;. -d . Hello

    $ midp -classpath . Hello

    Thanks,

    JG
    John Goche, Dec 17, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jacob

    javac for J2ME

    Jacob, Sep 23, 2004, in forum: Java
    Replies:
    4
    Views:
    2,569
    Darryl L. Pierce
    Sep 23, 2004
  2. Dean Schulze
    Replies:
    7
    Views:
    9,289
    Thomas Hawtin
    Feb 28, 2006
  3. mohit
    Replies:
    0
    Views:
    521
    mohit
    Jan 23, 2008
  4. Kenneth P. Turvey

    javac -source 1.6 -target 1.4

    Kenneth P. Turvey, Mar 15, 2008, in forum: Java
    Replies:
    16
    Views:
    1,474
  5. jzakiya
    Replies:
    4
    Views:
    121
    jzakiya
    Jan 11, 2010
Loading...

Share This Page