Подключение эмулятора Siemens к NetBeans 5.5
Народ, кто в курсе: как подключить к NetBeans 5.5 эмулятор Siemens S65? Отдельно этот эмулятор запускается (хоть и глючит), эмулирует все, что надо. NetBeans его обнаруживает, вроде подключает, но не запускает :( Что и как надо настроить, а?
|
Re: Подключение эмулятора Siemens к NetBeans 5.5
Может нужно задать формат командной строки?
|
Re: Подключение эмулятора Siemens к NetBeans 5.5
может и нужно... блин, не могу найти, где в этом эмуляторе описан этот формат... потому и прошу помощи.
|
Re: Подключение эмулятора Siemens к NetBeans 5.5
Точно не помню, удалил за ненадобностью, но ставил эмулятор С60. По моему нужно поставить SMTK, а в него уже интегрируются любые сименсовские эмуляторы, у меня стояли С60 и С55. И в JBuilder и NetBeans они четко запускались без каких либо настроек. Только в свойствах Java платформы надо указать какой из них активный
|
Re: Подключение эмулятора Siemens к NetBeans 5.5
А с параметром /? запускать не пробовал ? Там обычно формат командной строки показывает в консоли.
|
Re: Подключение эмулятора Siemens к NetBeans 5.5
:( ничего не получается... командную строку нашел, но судя по всему, NetBeans ее правильно формирует... В нем есть возможность искать и подключать эмуляторы, так вот, когда он находит их по дефолту - отладчик делает много попыток запуститься, после чего останавливается с сообщением о невозможности подключиться к эмулятору, а просто на выполнение мидлет не запускается без сообщений. Если искать и подключать эмуляторы вручную, то результат примерно тот же. Правда если указать поиск "нестандартных" эмуляторов, то тогда можно задавать свою командную строку для запуска, так вот в этом случае можно добиться, что при попытке запустить мидлет или отладку открывается файл помощи эмулятора в разделе параметров командной строки - т.е. если есть ошибка.
Вообще крах какой-то :(... |
Re: Подключение эмулятора Siemens к NetBeans 5.5
А какие он выдает параметры кс?
|
Re: Подключение эмулятора Siemens к NetBeans 5.5
Выдает следующее (это собственно файл справки):
To launch the emulator, use the following command: emulator [arguments] [<APPLICATION>] The <APPLICATION> parameter (if present) is the name of the main class, .JAR or .JAD file of the user application. This application starts on the emulator just after the emulator launch. You may use the alternative ways to launch application on the emulator, for example see the -Xjam argument description below. The optional parameter "[arguments]" may contain the values from a command line arguments set. This set includes both arguments from the Sun's "Unified Emulator Interface" and some native arguments. This table contains the Sun's "Unified Emulator Interface" arguments description: Arguments -classpath Description Set the classpath for the KVM. -D<property>=<value> Set <property> to <value>. -version Display version information about the emulator. -help Display this help. -Xverbose This is identical to specifing -Xverbose:all in the command-line. -Xverbose:<type1>[,<type2>[ .. ,<typeN>]] Write tracing information to the java.log file for different <type>s. You can get the tracing information for all types by specifying the all type. The <type> may be: allocation Trace Java heap allocations and overall heap usage statistics. gc Trace Java heap de-allocations . gcverbose Detailed garbage collection tracing. class Trace class loading, creation and initialization. classverbose Detailed tracing of the different class file parts loading into the KVM. verifier Trace the KVM internal class verifier. stackmaps Trace the behavior of stack maps. bytecodes Trace bytecode execution. methods Trace entry and exit of every method invoked. methodsverbose Detailed method calls tracing. frames Trace stack frame pushes and popes. stackchunks Trace the allocation of new stack chunks. exceptions Trace all thrown exceptions; even if they are caught. events Trace the events received by the KVM. threading Trace status of all threads in the system. monitors Trace program entering of and exiting from a monitor. networking Detailed network related methods tracing. -Xquery Emulator device information is printed on the standard output; the emulator immediately exits. WARNING: this command line argument would be correctly processed only if the emulator is invoked form a DOS box. -Xdebug Enable runtime debugging. -Xrunjdwp must also be specified. -Xrunjdwp:<name>=<value> Starts the JDWP debug session with various sub-options. <name> is one of the sub-option names. Appropriate values for <value> is determined by the sub-option name. -Xdebug must also be specified. The <name> may be: transport The transport mechanism used to communicate with the debugger. Only the mechanism for dt_socket value is currently implemented. address The transport address for the debugger connection. This can be either 'host:port' or 'port' formats. If the 'port' format used, the host is assumed to be localhost. server Start the debug agent as a server. The debugger must connect to the port specified. suspend Whether or not the VM should suspend immediately after establishing a connection with the debugger. Values must be either 'y' or 'n'. The default is 'y'. -Xdevice:<device_name> Specify the handset emulator by the <device_name>. -Xdescriptor:<jad_file> Run an application using the specified Java Application Descriptor file. -Xjam:<command>=<value> Run the application manager. The meaning of <value> depends on the command (see below). The <command> may be: install Install the application. The <value> parameter must be a valid URL of the application descriptor file. force The force command is only valid if invoked in pair with the install command. The <value> parameter may be either "true" or "false" ("true" if omitted). If its value is "true" and an existing MIDlet has the same storage name as the MIDlet to be installed, the existing MIDlet will be forcefully removed from the device prior to the new MIDlet installation. The "false" value is equivalent to no force command at all. The following two commands both enable forceful removal of any existing MIDlet: -Xjam:install=<application> -Xjam:force=true -Xjam:install=<application> -Xjam:force run Run the previously installed application. The <value> parameter must be a valid storage name of the MIDlet. remove Remove the previously installed application. The <value> parameter must be a valid storage name of the MIDlet. transient Install, run and finally remove an application. The <value> parameter must be a valid URL of the application descriptor file. transient is a shortcut for launching the emulator three separate times to install, run and then finally remove the application. list List all applications installed on the device. The <value> parameter must be omitted. storageNames List all applications installed on the device in a format easily parsed by another program. The <value> parameter must be omitted. This table contains the list of native arguments: Arguments /? or /help Description Display this help. /v or /version Display version information about the emulator. /sj <file> or /StartJavaApp <file> Start java application specified by <file>. The <file> parameter may specify a .JAD or .CLASS file. /dj or /DebugJavaApp Turn on the emulator's KVM debug mode /cp <path> or /ClassPath <path> Change "java class" path registered in a kjava_classpath to <path> (for this session only). /acp <path> or /APIClassPath <path> Change "java API class" path registered in kjava_api_classpath to <path> (for this session only). /l <port> or /DebugProxyPort <port> Change java debug proxy port number to <port> (for this session only). /jdk <path> or /JDKHome <path> Change "JDKHome" path registered in jdk_home to <path>; this path will be used for starting the debug proxy (for this session only). /tracing Turn on the tracing mode of the emulator's KVM /<tracing options> Set tracing options. See the table of available tracing options hereafter. The <tracing options> may be: traceallocation Trace Java heap allocations and overall heap usage statistics. tracegc Trace Java heap de-allocations . tracegcverbose Detailed garbage collection tracing. traceclassloading Trace class loading, creation and initialization. traceclassloadingverbose Detailed tracing of the different class file parts loading into the KVM. traceverifier Trace the KVM internal class verifier. tracestackmaps Trace the behavior of stack maps. tracebytecodes Trace bytecode execution. tracemethods Trace entry and exit of every method invoked. tracemethodsverbose Detailed method calls tracing. traceframes Trace stack frame pushes and popes. tracestackchunks Trace the allocation of new stack chunks. traceexceptions Trace all thrown exceptions; even if they are caught. traceevents Trace the events received by the KVM. tracethreading Trace status of all threads in the system. tracemonitors Trace program entering of and exiting from a monitor. tracenetworking Detailed network related methods tracing. traceall Activate all the tracing options above simultaneously /ShowErrors Turn on the error report mode. /ShowInfos Turn on the information report mode. !<space><option>. Turn off the <option> which should be one of the following: /DebugJavaApp, /tracing, /<tracing options>, /ShowErrors and /ShowInfos. E.g.: "! /ShowInfos" (one space after "!" is expected) |
Re: Подключение эмулятора Siemens к NetBeans 5.5
А вручную из коммандной строки запускать пробовал?(если пробовал, напиши как)
|
Re: Подключение эмулятора Siemens к NetBeans 5.5
вручную запускать из командной строки не пробовал, нет такой необходимости, т.к. можно вполне удобно запустить при помощи системы меню эмулятора любой мидлет. А вот когда-то к MidletPascal подключал - там командная строка по умолчанию подходит...
У меня появилось предположение, что проблема связана с файрволлом: NetBeans с эмулятором общается как-то через TCP, возможно, файрволл этому мешает... Но почему эмулятор из WTK работает?! |
Re: Подключение эмулятора Siemens к NetBeans 5.5
Так может эмуль не поддерживает клиент-серверную технологию?
|
Re: Подключение эмулятора Siemens к NetBeans 5.5
В документации вроде написано, что эмулятор этот может интегрироваться в JBuilder и какую-то среду от SUN... Раз в те IDE интегрируется, должен бы и в NetBeans тоже...
|
Ответ: Подключение эмулятора Siemens к NetBeans 5.5
Аналогичная проблема, эмуль опознается нормально, но приложения не открывает (СХ65 и С65)
|
Ответ: Подключение эмулятора Siemens к NetBeans 5.5
А что пишет в окно "Output"?
Я на днях, тоже не мог понять почему после установки NetBeans 6.5 RC2 перестал запускаться эмулятор. А оказалось всё просто, забыл объяснить Аутпосту, что это хорошее приложение :) |
Ответ: Подключение эмулятора Siemens к NetBeans 5.5
Цитата:
|
Часовой пояс GMT +4, время: 11:35. |
vBulletin® Version 3.6.5.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot