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.
It has been possible earlier to deploy MIDlet from NetBeans IDE to Nokia phones. NetBeans has been using Nokia PC Suite(currently Nokia Suite) and its connectivity features for the deployment. Now it seems, that the deployment fails, if Windows 7 64bit OS is used. In project details -> "Deploying" -> "Manage Deployment" is shown: "Nokia PC Suite not installed. Please see http://www.nokia.com/pcsuite for details". If deployment is tried, the following error message is shown in the output view: "Deployment aborted, ConnAPI.dll not found." I got the following information from the Nokia R&D guys working with Nokia Suite: "It is not possible to load a 32-bit dll from a 64-bit process and execute its code (without some special handling e.g., IPC mechanism). By using correct 64-bit PCCS ConnAPI loader library it should be able to load correctly 64-bit ConnAPI (ConnAPI64.dll) for a 64-bit process. In 64-bit windows Netbeans.exe is running in 32 bit mode but it is using 64-bit javaw.exe (child process) to load ConnAPI. According to the Process monitor trace ,it seems in 64-bit they are trying to load 32-bit ConnAPI.dll. I think they haven't used ConnAPI loader library, instead they are probably using LoadLibrary/LoadLibraryEx or similar java API( Trace shows that Windows trying to locate ConnAPI.dll by searching in DLL Search order). I think they need to review how they are loading ConnAPI.dll. There could be two possible approaches which comes to my mind that they should try 1. Use correct ConnAPI loader library (32/64 bit) with Netbeans depending on their target platform. 2. If they still want to use LoadLibrary/LoadLibraryEx kind of API, they should use "ConnAPI64.dll" for 64-bit instead of "ConnAPI.dll". Furthermore, the error message instruction shown in deployment settings in Netbeans IDE in 64-bit does not reflect the real issue ( it shows pc suite is not installed even if I have it installed)."
I have now the following JDK installed: java version "1.7.0_04" Java(TM) SE Runtime Environment (build 1.7.0_04-b22) Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode) Originally I had jre6 (java version "1.6.0_26") on my PC. I think deployment worked with the combination Windows7 64bit and jre6 32bit.
Clear component field - it does not relate to ME SDK integration
I order to fix this (to compile 64 bit version of our .dll) I would need header files #include "Connapi.h" #include "CONAApplicationInstallation.h" #include "CONAFileSystem.h" Any idea from where I can get them? Thanks, David
Without a cooperation I am not able to fix this. Closing as wontfix. If the reporter or someone else provides the needed info, please reopen. Thanks for understanding.
(In reply to comment #3) > I order to fix this (to compile 64 bit version of our .dll) I would need header > files > > #include "Connapi.h" > #include "CONAApplicationInstallation.h" > #include "CONAFileSystem.h" > > Any idea from where I can get them? > > Thanks, > > David Please download Nokia_PC_Connectivity_API_3.2.zip from http://www.developer.nokia.com/info/sw.nokia.com/id/bd896b31-92ba-4624-aa9d-ebf732e7cc0d/Nokia_PC_Suite_Connectivity_API_1_1.html
Roman, can you please have a look at this? Thanks.
jarmlaht or t_gergely: Can you please provide 64bit DLL? You can find sources to build here: http://hg.netbeans.org/jet-main/file/505ff33fe2a0/mobility.deployment.nokia/lib Then we can integrate this DLL into module and based on OS architecture load it. Thanks.
(In reply to comment #7) > jarmlaht or t_gergely: > Can you please provide 64bit DLL? You can find sources to build here: > http://hg.netbeans.org/jet-main/file/505ff33fe2a0/mobility.deployment.nokia/lib > > Then we can integrate this DLL into module and based on OS architecture load > it. > Thanks. You mean ConnJNI.dll? Maybe I could. But why would anyone trust the DLL I build?
And you could you trust a dll that I build? Taking into account that you most probably will be almost the only person using that dll you are the correct person to build it ;-)
(In reply to comment #9) > And you could you trust a dll that I build? I could. I pretend to be security conscious, but I know IT security is mostly an illusion. Alas, I just realized that I don't have a 64 bit SDK installed, and local policy doesn't allow me to install it, so if you don't compile it, it will take some time for me to have the tools installed. Does anybody have connapi64.lib, or do we have to hack it from the dll?
> Please download Nokia_PC_Connectivity_API_3.2.zip from > http://www.developer.nokia.com/info/sw.nokia.com/id/bd896b31-92ba-4624-aa9d-ebf732e7cc0d/Nokia_PC_Suite_Connectivity_API_1_1.html Oops, I must have meant PC_Suite_Connectivity_API_1.1.zip, not Nokia_PC_Connectivity_API_3.2.zip.
Thanks, if you will have x64 DLL compiled, please attach it here. Then I'll place it to the libs of Nokia deployment module. For testing purposes you can copy your DLL to "{NetBeans_DIR}\mobility\modules\lib" as ConnJNI64.dll. Then backup and overwrite original JAR in "{NetBeans_DIR}\mobility\modules" with one from attachment. It should load x64 version of ConnAPI and ConnJNI on x64 Windows.
Created attachment 135806 [details] Nokia deployment module with fix for x64 OS
Created attachment 136580 [details] ConnAPI64.lib for linking
Created attachment 136581 [details] ConnJNI64.dll dynamically linked with VC++ 2010 I've build ConnJNI64.dll. It works for me with the attached org-netbeans-modules-mobility-deployment-nokia.jar. Thanks.
fixed in jet-main: http://hg.netbeans.org/jet-main/rev/3b6d112d73b4 Thanks t_gergely for ConnAPI64.dll
Integrated into 'main-silver', will be available in build *201307032300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3b6d112d73b4 User: Roman Svitanic <rsvitanic@netbeans.org> Log: #214431 - MIDlet deployment from NetBeans IDE to Nokia phones doesn't work in 64bit Windows 7