|
I just installed the following and can't get the j2me examples to run.
* JDK SE 7 update 2 * Quicktime 7.0 * Netbeans 7.1 * J2ME 3.0.5 For the Netbeans 7.1 instalation I did a customer install and selected the following: Base IDE, Java SE, Java ME, Features on Demand I didn't install the following: Java EE, Java CardTM 3 Connected, C/C++, Groovy, PHP, GlassFish Server Open Source Edition 3.1.1 I am reading 3.1 Running a Project C:\Java_ME_platform_SDK_3.0.5\docs\DeveloperGuide-html\runsamples.htm which I accessed by clicking Start->All Programs->Java(TM) ME Platform SDK 3.0.5->Documentation I open the following project: C:\Java_ME_platform_SDK_3.0.5\apps\Games then I right-Clicked the "Games" project in the projects window. I then selected "run" The game is compiled and I get this in the "Output" window: --- pre-init: pre-load-properties: exists.config.active: exists.netbeans.user: exists.user.properties.file: load-properties: exists.platform.active: exists.platform.configuration: exists.platform.profile: basic-init: C:\Java_ME_platform_SDK_3.0.5\apps\Games\nbproject\build-impl.xml:56: Classpath to J2ME Ant extension library (libs.j2me_ant_ext.classpath property) is not set. For example: location of mobility/modules/org-netbeans-mobility-antext.jar file in the IDE installation directory. BUILD FAILED (total time: 0 seconds) --- I have never done anything with netbeans, jdk SE, j2me so I think I haven't installed something correctly. What do I need to do to install/configure the system so te lib is found? Thanks |
|
Instead of running the Game example with
File->Run I used File->Run With... and then changed the default Select Platform: from CLDC Oracle Java(TM) Platform Micro Edition SDK 3.0.5 to Java(TM) Platform Micro Edition SDK 3.0 I left the Select Device: field set to DefaultCldcJtwiPhone1 Then I clicked OK Later I put the Select Platform: back to CLDC Oracle Java(TM) Platform Micro Edition SDK 3.0.5 and that works also. --- I tried running it with File->Run Now the emulator comes up but the game doesn't show up, and I can't close this emulator window, and the Output window shows these errors: --- pre-init: pre-load-properties: exists.config.active: exists.netbeans.user: exists.user.properties.file: load-properties: exists.platform.active: exists.platform.configuration: exists.platform.profile: basic-init: cldc-pre-init: cldc-init: cdc-init: bdj-init: cdc-hi-pre-init: cdc-hi-init: post-init: init: conditional-clean-init: conditional-clean: pre-clean: clean-timestamp: clean-preprocessed: clean-classes: clean-obfuscated: clean-preverified: clean-manifest: clean-jar: Deleting: C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist\Games.jar clean-jad: Deleting: C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist\Games.jad clean-javadoc: clean-j9: Deleting: C:\Java_ME_platform_SDK_3.0.5\apps\Games\convert678617232 Deleting directory C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist post-clean: do-clean: deps-jar: pre-preprocess: do-preprocess: Created dir: C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\preprocessed Pre-processing 14 file(s) into C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\preprocessed directory. post-preprocess: preprocess: pre-compile: extract-libs: Created dir: C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\compiled Copying 26 files to C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\compiled do-compile: Compiling 14 source files to C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\compiled post-compile: compile: pre-obfuscate: proguard-init: skip-obfuscation: proguard: post-obfuscate: obfuscate: lwuit-build: pre-preverify: do-preverify: Created dir: C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\preverifysrc Copying 16 files to C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\preverifysrc Created dir: C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\preverified Preverifying 16 file(s) into C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\preverified directory. Copying 26 files to C:\Java_ME_platform_SDK_3.0.5\apps\Games\build\preverified post-preverify: preverify: pre-jar: set-password-init: set-keystore-password: set-alias-password: set-password: create-jad: Created dir: C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist add-configuration: add-profile: do-extra-libs: Created dir: C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist\lib This task should have never been released and was obsoleted by ResourceCollection support in <copy> available since Ant 1.7.0. Don't use it. jad-jsr211-properties.check: jad-jsr211-properties: do-jar: Building jar: C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist\Games.jar do-jar-no-manifest: bdj-build-image: update-jad: Updating application descriptor: C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist\Games.jad Generated "C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist\Games.jar" is 48932 bytes. post-jar: jar: pre-run: netmon.check: open-netmon: cldc-run: Copying 1 file to C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist\nbrun868972722534305441 Copying 1 file to C:\Java_ME_platform_SDK_3.0.5\apps\Games\dist\nbrun868972722534305441 Jad URL for OTA execution: http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/C%3A/Java_ME_platform_SDK_3.0.5/apps/Games/dist//Games.jad Starting emulator in execution mode Installing suite from: http://127.0.0.1:52252/Games.jad Processing UPDATE_CLASS ERROR - UNKNOWN - C:/Builds/jme-sdk/javacall-javame-sdk-305/implementation/share/cms_sqlite/javacall_cms_content.c line 428: Can't insert new content data: constraint failed --- I guess I will run J2ME Examples with File->Run With... I hope Oracle will change thier document to include this requirement: http://docs.oracle.com/javame/dev-tools/jme-sdk-3.0.5/developer-guide/toc.htm 3.1 Running a Project http://docs.oracle.com/javame/dev-tools/jme-sdk-3.0.5/developer-guide/runsamples.htm#Z40000081313131 3.1 Running a Project Step 2. ... select Run ... should be ... select "Run With ..." ... in order to run the examples (I only tried Games and WMADemo so far) in C:\Java_ME_platform_SDK_3.0.5\apps |
| Powered by Nabble | Edit this page |
