It sounds like something is screwed up in the project config.  You might
want to try grepping the project (especially build and properties files)
for the string "javac1.8" to see where it is.

Other than that, try creating a fresh project and copy your source into it,
and build that project.

One observation is that the build.xml file that you posted is targeting
java1.5 source level.  Our default is now java 1.8 on new projects.  It is
possible that is conflicting with anther build hint.   E.g. What is the
value of your "java.version" build hint.  If it is "8", then you'll need to
change all of the "1.5" references in your build.xml file to "1.8".

Steve

On Tue, Mar 28, 2017 at 12:58 AM, CODENAME1 <[email protected]>
wrote:

> classpath="lib/CodenameOne.jar:${build.classes.dir}:lib/impl/cls"> - this
> is what i have on line 155
> this is part of the below code.
>
> <javac destdir="native/internal_tmp"
>            source="1.5"
>            target="1.5"
>            bootclasspath="lib/CLDC11.jar"
> classpath="lib/CodenameOne.jar:${build.classes.dir}:lib/impl/cls">
>            <src path="native/javase"/>
>    </javac>
>
> Also, java variables are set as below
>
> JAVA_HOME C:\Program Files\Java\jdk1.8.0_121
>
> if i replace java 1.8 with 1.7 everything works well... i am able to take
> the build...but with 1.8, it fails
> On Saturday, March 25, 2017 at 6:39:55 AM UTC+1, Shai Almog wrote:
>>
>> In your system settings make sure the bin directory of the new JDK (not
>> JRE) is the first element of the path (before System32 etc.).
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at https://groups.google.com/
> group/codenameone-discussions.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/codenameone-discussions/78aef983-c974-4972-8ef6-
> f645451db7a3%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/78aef983-c974-4972-8ef6-f645451db7a3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWfkT07fkbXSHkz6uT1Fo8ragbo%3DYq1ghjVMPuzDOruSQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to