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

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

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. John Green

    ant javac source alternative

    John Green, Dec 4, 2003, in forum: Java
    Replies:
    0
    Views:
    2,869
    John Green
    Dec 4, 2003
  2. Jacob

    javac for J2ME

    Jacob, Sep 23, 2004, in forum: Java
    Replies:
    4
    Views:
    2,834
    Darryl L. Pierce
    Sep 23, 2004
  3. Dean Schulze
    Replies:
    7
    Views:
    9,579
    Thomas Hawtin
    Feb 28, 2006
  4. Replies:
    2
    Views:
    858
  5. mohit
    Replies:
    0
    Views:
    818
    mohit
    Jan 23, 2008
  6. Kenneth P. Turvey

    javac -source 1.6 -target 1.4

    Kenneth P. Turvey, Mar 15, 2008, in forum: Java
    Replies:
    16
    Views:
    1,810
  7. jzakiya
    Replies:
    4
    Views:
    369
    jzakiya
    Jan 11, 2010
  8. Andreas Leitgeb

    [opinion] javac's default stack space

    Andreas Leitgeb, Mar 9, 2014, in forum: Java
    Replies:
    10
    Views:
    436
    Andreas Leitgeb
    Mar 23, 2014
Loading...