Failed to create map context.

3609
1
05-04-2016 09:33 AM
shelsonwoo
New Contributor

I have the problem when I run the sample map program. I can run it without any problems in my local windows computer. But when I run it on my Window Server 2008 R2, it give me the problem. I check my DirectX, using dxdiag,

It said the DirectX version is DirectX 11, and I did not find problems with DirectX. Any other possible reasons to lead to this ?

Java version : 1.8.0_92 (Oracle Corporation) amd64

Rendering engine : DirectX

java.lang.RuntimeException: Failed to create map context.

  at com.esri.map.MapCore.nativeCreateMap(Native Method)

  at com.esri.map.MapCore.<init>(Unknown Source)

  at com.esri.map.JMap.<init>(Unknown Source)

  at com.esri.map.JMap.<init>(Unknown Source)

  at Map.<init>(Map.java:62)

  at Map$2.run(Map.java:197)

  at java.awt.event.InvocationEvent.dispatch(Unknown Source)

  at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

  at java.awt.EventQueue.access$500(Unknown Source)

  at java.awt.EventQueue$3.run(Unknown Source)

  at java.awt.EventQueue$3.run(Unknown Source)

  at java.security.AccessController.doPrivileged(Native Method)

  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)

  at java.awt.EventQueue.dispatchEvent(Unknown Source)

  at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

  at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

  at java.awt.EventDispatchThread.run(Unknown Source)

0 Kudos
1 Reply
EricBader
Occasional Contributor III

Are you trying to run on a VM? Or RoteDesktop? This error message indicates that either DirectX or the proper opengl and shaders are missing. What version of the Runtime are you using? Can you send along the output of dxdiag?

Thanks

0 Kudos