Извините, ничего не найдено.

Не расстраивайся! Лучше выпей чайку!
Регистрация
Справка
Календарь

Вернуться   forum.boolean.name > Программирование игр для мобильных телефонов > JAVA Micro Edition > Программирование

Программирование Вопросы связанные с программированием в JAVA

Ответ
 
Опции темы
Старый 26.06.2007, 22:57   #1
ARV
ПроЭктировщик
 
Регистрация: 25.12.2006
Сообщений: 163
Написано 7 полезных сообщений
(для 12 пользователей)
Подключение эмулятора Siemens к NetBeans 5.5

Народ, кто в курсе: как подключить к NetBeans 5.5 эмулятор Siemens S65? Отдельно этот эмулятор запускается (хоть и глючит), эмулирует все, что надо. NetBeans его обнаруживает, вроде подключает, но не запускает Что и как надо настроить, а?
(Offline)
 
Ответить с цитированием
Старый 27.06.2007, 01:11   #2
ViNT
Модератор
 
Регистрация: 03.04.2007
Сообщений: 2,252
Написано 597 полезных сообщений
(для 817 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

Может нужно задать формат командной строки?
(Offline)
 
Ответить с цитированием
Старый 27.06.2007, 13:11   #3
ARV
ПроЭктировщик
 
Регистрация: 25.12.2006
Сообщений: 163
Написано 7 полезных сообщений
(для 12 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

может и нужно... блин, не могу найти, где в этом эмуляторе описан этот формат... потому и прошу помощи.
(Offline)
 
Ответить с цитированием
Старый 27.06.2007, 15:32   #4
Piligrim
Оптимист
 
Регистрация: 07.01.2006
Сообщений: 961
Написано 105 полезных сообщений
(для 259 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

Точно не помню, удалил за ненадобностью, но ставил эмулятор С60. По моему нужно поставить SMTK, а в него уже интегрируются любые сименсовские эмуляторы, у меня стояли С60 и С55. И в JBuilder и NetBeans они четко запускались без каких либо настроек. Только в свойствах Java платформы надо указать какой из них активный
(Offline)
 
Ответить с цитированием
Старый 27.06.2007, 18:49   #5
ViNT
Модератор
 
Регистрация: 03.04.2007
Сообщений: 2,252
Написано 597 полезных сообщений
(для 817 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

А с параметром /? запускать не пробовал ? Там обычно формат командной строки показывает в консоли.
(Offline)
 
Ответить с цитированием
Старый 03.07.2007, 09:50   #6
ARV
ПроЭктировщик
 
Регистрация: 25.12.2006
Сообщений: 163
Написано 7 полезных сообщений
(для 12 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

ничего не получается... командную строку нашел, но судя по всему, NetBeans ее правильно формирует... В нем есть возможность искать и подключать эмуляторы, так вот, когда он находит их по дефолту - отладчик делает много попыток запуститься, после чего останавливается с сообщением о невозможности подключиться к эмулятору, а просто на выполнение мидлет не запускается без сообщений. Если искать и подключать эмуляторы вручную, то результат примерно тот же. Правда если указать поиск "нестандартных" эмуляторов, то тогда можно задавать свою командную строку для запуска, так вот в этом случае можно добиться, что при попытке запустить мидлет или отладку открывается файл помощи эмулятора в разделе параметров командной строки - т.е. если есть ошибка.
Вообще крах какой-то ...
(Offline)
 
Ответить с цитированием
Старый 03.07.2007, 15:16   #7
ViNT
Модератор
 
Регистрация: 03.04.2007
Сообщений: 2,252
Написано 597 полезных сообщений
(для 817 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

А какие он выдает параметры кс?
(Offline)
 
Ответить с цитированием
Старый 03.07.2007, 22:41   #8
ARV
ПроЭктировщик
 
Регистрация: 25.12.2006
Сообщений: 163
Написано 7 полезных сообщений
(для 12 пользователей)
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
Description
-classpath
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
Description
/? or /help
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)
(Offline)
 
Ответить с цитированием
Старый 04.07.2007, 00:22   #9
ViNT
Модератор
 
Регистрация: 03.04.2007
Сообщений: 2,252
Написано 597 полезных сообщений
(для 817 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

А вручную из коммандной строки запускать пробовал?(если пробовал, напиши как)
(Offline)
 
Ответить с цитированием
Старый 04.07.2007, 09:50   #10
ARV
ПроЭктировщик
 
Регистрация: 25.12.2006
Сообщений: 163
Написано 7 полезных сообщений
(для 12 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

вручную запускать из командной строки не пробовал, нет такой необходимости, т.к. можно вполне удобно запустить при помощи системы меню эмулятора любой мидлет. А вот когда-то к MidletPascal подключал - там командная строка по умолчанию подходит...
У меня появилось предположение, что проблема связана с файрволлом: NetBeans с эмулятором общается как-то через TCP, возможно, файрволл этому мешает... Но почему эмулятор из WTK работает?!
(Offline)
 
Ответить с цитированием
Старый 04.07.2007, 15:08   #11
ViNT
Модератор
 
Регистрация: 03.04.2007
Сообщений: 2,252
Написано 597 полезных сообщений
(для 817 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

Так может эмуль не поддерживает клиент-серверную технологию?
(Offline)
 
Ответить с цитированием
Старый 05.07.2007, 09:59   #12
ARV
ПроЭктировщик
 
Регистрация: 25.12.2006
Сообщений: 163
Написано 7 полезных сообщений
(для 12 пользователей)
Re: Подключение эмулятора Siemens к NetBeans 5.5

В документации вроде написано, что эмулятор этот может интегрироваться в JBuilder и какую-то среду от SUN... Раз в те IDE интегрируется, должен бы и в NetBeans тоже...
(Offline)
 
Ответить с цитированием
Старый 01.11.2008, 21:59   #13
izikCX75
AnyKey`щик
 
Регистрация: 11.08.2008
Сообщений: 10
Написано 0 полезных сообщений
(для 0 пользователей)
Ответ: Подключение эмулятора Siemens к NetBeans 5.5

Аналогичная проблема, эмуль опознается нормально, но приложения не открывает (СХ65 и С65)
(Offline)
 
Ответить с цитированием
Старый 02.11.2008, 10:32   #14
Piligrim
Оптимист
 
Регистрация: 07.01.2006
Сообщений: 961
Написано 105 полезных сообщений
(для 259 пользователей)
Ответ: Подключение эмулятора Siemens к NetBeans 5.5

А что пишет в окно "Output"?
Я на днях, тоже не мог понять почему после установки NetBeans 6.5 RC2 перестал запускаться эмулятор. А оказалось всё просто, забыл объяснить Аутпосту, что это хорошее приложение
(Offline)
 
Ответить с цитированием
Старый 02.11.2008, 14:42   #15
izikCX75
AnyKey`щик
 
Регистрация: 11.08.2008
Сообщений: 10
Написано 0 полезных сообщений
(для 0 пользователей)
Ответ: Подключение эмулятора Siemens к NetBeans 5.5

Сообщение от pilgrim Посмотреть сообщение
А что пишет в окно "Output"?
Я на днях, тоже не мог понять почему после установки NetBeans 6.5 RC2 перестал запускаться эмулятор. А оказалось всё просто, забыл объяснить Аутпосту, что это хорошее приложение
У меня NetBeans пишет что запуск эмуля пошел но в действительности ничего не происходит, кстати сам эмуль запускает проги лишь с папки .../jam/.
(Offline)
 
Ответить с цитированием
Ответ


Опции темы

Ваши права в разделе
Вы не можете создавать темы
Вы не можете отвечать на сообщения
Вы не можете прикреплять файлы
Вы не можете редактировать сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
подключение к данным GDB ? LIDERSERVIS MidletPascal 10 23.10.2009 11:30
Подключение нескольких библиотек cHeRsAnYa Основной форум 15 20.03.2009 20:16
Подключение нескольких библиотек Seregakz Основной форум 6 18.08.2008 08:23
Про чат и Интернет Подключение Антихрист FAQ 3 08.11.2007 20:16
Подключение к серверу, не зная IP darkand 2D-программирование 6 29.06.2007 19:13


Часовой пояс GMT +4, время: 14:17.


vBulletin® Version 3.6.5.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot
Style crйe par Allan - vBulletin-Ressources.com