Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » JavaRuntime.getDefaultVMInstall() throws a NullPointerException on Mac OS X
JavaRuntime.getDefaultVMInstall() throws a NullPointerException on Mac OS X [message #495006] Tue, 03 November 2009 09:08 Go to next message
Eclipse UserFriend
I'm developing an RCP application that launches an external Java process. The code that launches the process calls JavaRuntime.getDefaultVMInstall(). On Windows and Linux, there is no problem. When I export the application for Mac OS X, the application starts correctly, but then throws a NullPointerException when I launch the external process. The NPE is thrown by JavaRuntime.getDefaultVMInstall(). Does anybody have any idea why this would happen? Any help would be greatly appreciated.
Re: JavaRuntime.getDefaultVMInstall() throws a NullPointerException on Mac OS X [message #503973 is a reply to message #495006] Wed, 16 December 2009 06:19 Go to previous message
Eclipse UserFriend
Add the plugin org.eclipse.jdt.launching.macosx to your RCP. This will solve the problem.
Previous Topic:TreeViewer with special rendering for items
Next Topic:change order of custom library
Goto Forum:
  


Current Time: Sun Mar 16 18:08:57 EDT 2025

Powered by FUDForum. Page generated in 0.03310 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top