Solved! Go to Solution.
Hi Eric,
I have the same 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.7.0_71 (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 testclass2.<init>(testclass2.java:44)
at testclass2$2.run(testclass2.java:67)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
I have same problem. Have you solved it? Can you tell me how can I solve it?
Questions:
1. Are you RemoteDesktop-ed into your Windows Server machine?
2. Which version of the API are you using?