This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231135 - Cannot create J2ME application
Summary: Cannot create J2ME application
Status: RESOLVED INVALID
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Roman Svitanic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-12 12:14 UTC by lehel
Modified: 2013-06-13 14:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (101.48 KB, text/plain)
2013-06-12 12:14 UTC, lehel
Details
J2ME project creating wizard (144.25 KB, application/octet-stream)
2013-06-12 17:27 UTC, lehel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lehel 2013-06-12 12:14:43 UTC
Product Version = NetBeans IDE Dev (Build 201306100004)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) Client VM 23.21-b01

When I was trying to create a new project under Maven-J2ME-MobileApplication, I got the following error message on selecting the directory using the Wizard:
"The target filesystem or folder does not exist."
or
"The file 'dir' already exists."
Comment 1 lehel 2013-06-12 12:14:47 UTC
Created attachment 135683 [details]
IDE log
Comment 2 Roman Svitanic 2013-06-12 12:50:24 UTC
Can you please specify the steps how we can reproduce this issue? Have you tried to create a new J2ME maven project using some archetype?
Comment 3 lehel 2013-06-12 14:53:14 UTC
(In reply to comment #2)
> Can you please specify the steps how we can reproduce this issue? Have you
> tried to create a new J2ME maven project using some archetype?

No. Simply I did the following steps, using Netbeans' project wizard from menu:
1. File-New Project
2. Choose Maven from the "Categories:", then J2ME -> MobileApplication from "Projects:"
3. Press Next
Comment 4 Roman Svitanic 2013-06-12 16:02:55 UTC
Could you please run NetBeans from command line, then go to the problematic step in wizard where this issue occurs and press Ctrl+Shift+F1 to print the AWT component hierarchy dump? Then please copy and attach here this dump. Thanks.
Comment 5 lehel 2013-06-12 17:27:00 UTC
Created attachment 135713 [details]
J2ME project creating wizard

NetBeans Dev 201306100004
Comment 6 Roman Svitanic 2013-06-13 07:53:45 UTC
It seems to problem with userdir. Java ME category should not be inside Maven since these are not Maven projects.

Please try to run NetBeans with new userdir (or delete current dev userdir and cachedir).
http://wiki.netbeans.org/FaqAlternateUserdir
Comment 7 lehel 2013-06-13 08:53:43 UTC
Ok. That was the problem. But I don't know why this happened...Beforehand I was creating a JSF primefaces maven web application. This could scramble  my userdir or cachedir?

Now I created a J2ME project but I still can't run the application.
I got the following error:

C:\Documents and Settings\Sipos Lehel\Dokumentumok\NetBeansProjects\NetbeansTest\731\MobileApplication1\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.
Comment 8 Roman Svitanic 2013-06-13 09:50:25 UTC
Dev userdir could be corrupted by changing IDE dev builds without deleting of this userdir.

Now it seems that you have corrupted build.properties and this is not a bug. Please run NetBeans with clean/new userdir and add ME SDK platform. Thean create a new project.

Closing this as INVALID since original problem was not a bug.
Comment 9 lehel 2013-06-13 14:00:59 UTC
Now it seems to work correctly all things.
But the problem was not with my build.properties, it was not corrupted.
All things were deleted, before installing the new netbeans, and j2me platform was installed on my computer(Java_ME_platform_SDK_3.3_Preview) too, and j2me platforms were added to netbeans(with java platform manager in netbeans).

One ting I did not do before running a j2me application:
- installing all the java me plugins from Tools->Plugins->Available Plugins
After doing also this step the j2me application run correctly without any error.

So, you have right, this is not a bug, or not the bug what I thought at beginning. Thank you for closing this, but my question is should we always install those plugins for using j2me?

-Mobility 
-Java ME SDK Tools
-LWUIT Resource Editor
-Java ME SDK Demos
-Visual Mobile Designer
Comment 10 Roman Svitanic 2013-06-13 14:11:59 UTC
(In reply to comment #9)
> So, you have right, this is not a bug, or not the bug what I thought at
> beginning. Thank you for closing this, but my question is should we always
> install those plugins for using j2me?
> 
> -Mobility 
> -Java ME SDK Tools
> -LWUIT Resource Editor
> -Java ME SDK Demos
> -Visual Mobile Designer

No, you can have only Mobility installed and activated. It comes with NetBeans full bundle. Activated it's when you create first ME project. And then of course, you need to have at least one Java ME Platform (SDK) installed.