Is it possible to run the Android emulator as root from NetBeans on the Mac

Posted by catwallader on Stack Overflow See other posts from Stack Overflow or by catwallader
Published on 2010-02-07T02:59:29Z Indexed on 2010/06/08 11:02 UTC
Read the original article Hit count: 139

Filed under:
|
|
|

I have installed NetBeans 6.8 on my MacOS (Leopard) system and use the Kenai plugin for this platform to create an Android application. The trouble is that I cannot run the Android emulator from NetBeans logged in to the Mac as a normal user. I can run the emulator from the command line and the Eclipse environment when logged in as root. When I try to run NetBeans as root, it displays a message indicating many of components of the Android plugin cannot be loaded because the root user somehow links to Java 1.5 and the plugin needs Java 1.6.

There are 3 solutions to this problem as far as I can see:

  1. Make the root user environment link to Java 1.6 and use NetBeans as root.
  2. Coerce NetBeans to su to root before running the Emulator.
  3. Stick to using Eclipse for Android development.

If anyone knows how how to do 1 or 2 I would appreciate getting advice from you. Thanks in advance.

© Stack Overflow or respective owner

Related posts about android

Related posts about plugin