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 196342 - Platform detection failed for ME SDK 3.0 and 3.1
Summary: Platform detection failed for ME SDK 3.0 and 3.1
Status: CLOSED INVALID
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Other
: P2 normal (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-05 12:03 UTC by AlexL
Modified: 2011-03-10 17:03 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 AlexL 2011-03-05 12:03:17 UTC
Windows 7 x64

Install NetBeans 6.9.1 "Java" version.
Activate JavaME plugins.
Go to Tools-Java Platforms and remove installed SDK 3.0 platform.
Try to add it back.

"Automatic detection of the selected platform failed." message appears, platform cannot be added.
Also is not possible to add any ME SDK installation as MIDP platform.

An exception in messages.log:

INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
	org.netbeans.modules.mobility.licensing [1.7.1 201007282301]
	org.netbeans.api.mobility [8.7.1 201007282301]
...<a lot of modules skipped>...
	org.netbeans.modules.websvc.restkit/0 [1.5.1 201007282301]
	org.netbeans.modules.maven.j2ee/1 [1.6.1 201007282301]
INFO: exec, exitCode != 0
java.io.IOException: exec, exitCode != 0
	at org.netbeans.modules.mobility.cldcplatform.UEIEmulatorConfiguratorImpl.execute(UEIEmulatorConfiguratorImpl.java:561)
	at org.netbeans.modules.mobility.cldcplatform.UEIEmulatorConfiguratorImpl.processVersion(UEIEmulatorConfiguratorImpl.java:614)
	at org.netbeans.modules.mobility.cldcplatform.UEIEmulatorConfiguratorImpl.getPlatform(UEIEmulatorConfiguratorImpl.java:356)
	at org.netbeans.modules.mobility.cldcplatform.UEIEmulatorConfiguratorImpl.getPlatform(UEIEmulatorConfiguratorImpl.java:347)
	at org.netbeans.modules.mobility.cldcplatform.wizard.DetectPanel$PlatformDescriptor.detect(DetectPanel.java:744)
[catch] at org.netbeans.modules.mobility.cldcplatform.wizard.DetectPanel$DetectRunnable.run(DetectPanel.java:1057)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
Comment 1 Adam Sotona 2011-03-07 13:37:31 UTC
I've just tested the described case and it works for me.

Potential reasons that can cause emulator fail to start:
- already started Java ME SDK Device Manager which fails to response
- active firewall blocking the emulator execution
- mixed installation of 64bit and 32bit Java on the system (only 32bit JVM is supported)
- broken emulator binaries or conflict with some other installed versions

Please try to start the affected emulator.exe standalone to detect the root cause.
Comment 2 AlexL 2011-03-10 17:03:01 UTC
You are right - this is because of 64-bit JDK.