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 64918 - [50cat] Problems using Mobility Pack with Siemens SMTK 3.0
Summary: [50cat] Problems using Mobility Pack with Siemens SMTK 3.0
Status: CLOSED FIXED
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-22 18:34 UTC by malakim
Modified: 2008-09-10 16:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description malakim 2005-09-22 18:34:53 UTC
[ BUILD # : 200509151455 ]
[ JDK VERSION : 1.5.0_04 ]

When running my project with an emulator from Siemens SMTK 3.0 I get an IOException:
C:\Documents and Settings\Markus\PeopleIS\nbproject\build-impl.xml:268: java.io.IOException: CreateProcess: D:\Program\siemens\SMTK_3.X\emulators\CX65\bin\preverify -classpath D:\Program\siemens\SMTK_3.X\emulators\CX65\lib\api.jar -d "C:\Documents and Settings\Markus\PeopleIS\build\preverified" "C:\Documents and Settings\Markus\PeopleIS\build\obfuscated" error=2
BUILD FAILED (total time: 5 seconds) 

The line (268) pointed by to by the error message in build-impl.xml looks like this:
<nb-preverify srcdir="${obfuscated.classes.dir}" destdir="${preverify.classes.dir}" classpath="${platform.bootclasspath}" configuration="${platform.configuration}" platformhome="${platform.home}" platformtype="${platform.type}" commandline="${platform.preverifycommandline}"/>

I don't see this problem when using the WTK emulators, or when using emulators from Sony Ericsson.
Comment 1 Adam Sotona 2005-09-23 10:43:49 UTC
It seems like Siemens SMTK do not provide preverify.exe at the correct place.
Please check if there is preverify.exe under
D:\Program\siemens\SMTK_3.X\emulators\CX65\bin\ folder.

If not, you can change the emulator to the general Siemens SMTK (the folder
D:\Program\siemens\SMTK_3.X should be also detected as an emulator with all the
installed devices included and with working preverify.exe under
D:\Program\siemens\SMTK_3.X\bin folder).

Or you can copy the preverify.exe from D:\Program\siemens\SMTK_3.X\bin or WTK or
other emulator to the D:\Program\siemens\SMTK_3.X\emulators\CX65\bin\ folder.

If the missign preverify is the case, I'll change this issue to request for
distribution of preverify together with NetBeans Mobility. 
  
Comment 2 Lukas Hasik 2005-09-23 11:23:59 UTC
I tried it. There are two options how to solve (workaround) it
1, copy preverify as asotona described - it works
2, create Custom Platform and point the preverify command to the right location

option 1, seems easier

For long time solution we could maybe provide 'Custom platform templates' for
well known non-uie emulators. It'd make custom platform installation easier.
Adame, what do you think?
Comment 3 Adam Sotona 2005-09-23 12:09:13 UTC
Yes, the custom platform is another possible workaround and the templates are
good idea.
Comment 4 malakim 2005-09-23 18:03:49 UTC
Copying the previerfy*.exe to the emulator directory solves the problem of
building applications. I still can't execute my apps from NB using the Siemens
emulator, though. This could, of course, be a problem on my side Did it work for
to execute the app for you, Lukas?

Is there any way of making the IDE detect that the Siemens toolkit is used and
set the correct paths automagically?
Comment 5 Lukas Hasik 2005-09-26 16:50:49 UTC
I have no problem with starting the SMTK when I copied the preverify.exe and
builded an app. I'm using Siemens Mobility Toolkit 3.0.06
Comment 6 malakim 2005-09-26 18:10:40 UTC
Hmm.. When I try to run the app I'm developing using the Siemens emulator, I get
"File not found" in the "virtual" phone display. If I run built/deployed app
(JAD file) using the emulator's "Start Java Appication" command it works OK. Any
ideas on what might be wrong?
Comment 7 danielmd 2005-10-03 15:03:12 UTC
This is probably an issue on siemens part, you should file an issue with their
support team.
Comment 8 Adam Sotona 2005-11-07 12:32:01 UTC
According to discussion with Simens/BenQ the external usage of UEI interface of
each device emulator is not supported.
I've just fixed that underlying emulators under core SMTK will not be even detected.
Please use just the parent core SMTK emulator that includes all installed devices.
Comment 9 Lukas Hasik 2007-09-03 13:55:36 UTC
v
Comment 10 Ivan Sidorkin 2008-09-10 16:00:17 UTC
close old issues