Re: [J2me-device-db-general] Getting started. [try this build-file]
Brought to you by:
s_szczygiel,
space2
From: Sebastian S. <seb...@op...> - 2006-08-04 11:28:15
|
Without setting source and target in wtkbuild i get only a warning [wtkbuild] WARNING [wtkbuild] The -source switch defaults to 1.5 in JDK 1.5. [wtkbuild] If you specify -target 1.1 you now must also specify -source 1.2. [wtkbuild] Ant will implicitly add -source 1.2 for you. Please change your bui ld file. But, the build is still successful. Strange, nevertheless I'll keep your hint in the build code. But, what do you say about using source="1.2" instead of source="1.3" ? <wtkbuild srcdir="${dist.dir}/src" bootclasspath="${project.libs}" destdir="${dist.dir}/classes" preverify="false" source="1.2" target="1.1"/> Because I think J2ME/MIDP code is only source 1.2 based? Sebastian _____ From: j2m...@li... [mailto:j2m...@li...] On Behalf Of James Brook Sent: Freitag, 4. August 2006 13:21 To: szc...@co...; j2m...@li... Subject: Re: [J2me-device-db-general] Getting started. [try this build-file] Cheers for this! It works, but you have to alter the following line (~90) <wtkbuild srcdir="${dist.dir}/src" bootclasspath="${project.libs}" destdir="${dist.dir}/classes" preverify="false"/> to <wtkbuild srcdir="${dist.dir}/src" bootclasspath="${project.libs}" destdir="${dist.dir}/classes" preverify="false" source="1.3" target="1.1"/> Otherwise it dies when using JDK 1.5 with the following error (javac: target release 1.1 conflicts with default source release 1.5). It also works for WTK25 (beta) as well as WTK22. Thanks for the quick fix! Cheers, James Brook ----- Original Message ----- From: Sebastian <mailto:szc...@co...> Szczygiel To: 'James Brook' <mailto:jm...@ho...> ; j2m...@li... Sent: Friday, August 04, 2006 12:07 PM Subject: RE: [J2me-device-db-general] Getting started. [try this build-file] I think i solved the problem. Please put in your /microcode folder the attached build-file. For me it works now with WTK23. Sebastian _____ From: j2m...@li... [mailto:j2m...@li...] On Behalf Of James Brook Sent: Donnerstag, 3. August 2006 22:54 To: j2m...@li... Subject: Re: [J2me-device-db-general] Getting started. Hello All, I've download the windows version of the J2ME Device DB tools and have followed the examples. By default the demo doesn't work for me since I'm using JDK 1.5 and you have to modify the antenna build target which I have done: From: <wtkbuild srcdir="${dist.dir}/src" bootclasspath="${project.libs}" destdir="${dist.dir}/classes" preverify="false"/> to <wtkbuild srcdir="${dist.dir}/src" bootclasspath="${project.libs}" destdir="${dist.dir}/classes" preverify="false" source="1.3" target="1.1"/> However now I'm getting a different error: [echo] Creating JAR ... [wtkpackage] Building jar: C:\development\microcode\mariobros\dist\jadjar\nokia\ s40\MarioBros_v1-0-0_en.jar [wtkpackage] Updating JAD file C:\development\microcode\mariobros\dist\jadjar\no kia\s40\MarioBros_v1-0-0_en.jad [echo] Preverification ... [wtkpreverify] Preverifying C:\development\microcode\mariobros\dist\jadjar\nokia \s40\MarioBros_v1-0-0_en.jar [wtkpreverify] ERROR: floating-point arguments should not appear [wtkpreverify] Error preverifying class java.lang.String BUILD FAILED C:\development\microcode\mariobros\build\build.xml:8: The following error occurr ed while executing this line: C:\development\j2me-device-db\tools\microcode\build.xml:50: The following error occurred while executing this line: C:\development\j2me-device-db\tools\microcode\build.xml:59: The following error occurred while executing this line: C:\development\j2me-device-db\tools\microcode\build.xml:105: Preverification fai led (result=1) Any ideas? Cheers, James Brook |