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.
If the installation directory of NetBeans contains spaces, e.g. '/opt/NetBeans IDE 3.5.1' and you installed the J2ME-Linux-module from NetBeans modules, you cannot run the emulator on single classes, only on Midlet-suites. The error message is: ---- cut here ---- Invalid argument "-Xdevice:DefaultColorPhone" Usage: midp [<options>] [-Xdescriptor <filename>] <class> Run a MIDlet from the classpath. -Xdescriptor: Get the MIDlet properties from this file <continued with usage> ---- cut here ---- How to reproduce ================= 1. Install NB into a directory containing spaces (or simply rename an existing installation) 2. Install 'J2MEWTK Linux 1.0.4' (J2ME Wireless is selected automatically) from NB Update Center 3. Create a class from HelloMIDlet-Template 4. Compile and try to run the class Woraround ========== A workaround is to rename the installation directory so that it does not contain spaces. My guess is that somewhere quotes (") are missing and so the spaces are treated as option separators.
No reason to believe it is a NetBeans bug - problem with J2ME modules I suppose.
I am investigating this issue.
I tested it. The root problem is, that WTK does not support installation in path with spaces on *NIX platforms. Transfering to BugTarq.
problem of wtk, spaces are not supported on Unix like OSs.
closing
this is old issue - 3.5, 3.6