Select to view content in your preferred language

Unable to start map application

6872
5
Jump to solution
05-02-2014 04:00 AM
OlivierNols
Emerging Contributor
Hello,

I'm trying to test an application that I'm developping on a server, because it has more RAM than my work computer. I installed the runtime SDK on the server and when I try to launch the application with eclipse I got the following error message :

Java version : 1.6.0_21 (Sun Microsystems Inc.) amd64
Rendering engine : DirectX
java.lang.RuntimeException: Failed to create map context.
at com.esri.map.JMap.nativeCreateMap(Native Method)
at com.esri.map.JMap.<init>(Unknown Source)
at simpleMap.Map$1.run(Map.java:38)
at java.awt.event.InvocationEvent.dispatch(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)

Does anyone know what may have caused that ?

Thanks in advance,
Olivier.

P.S : the server operating system is Windows 2008 Server Standard with the SP2 so it shouldn't come from that.
0 Kudos
1 Solution

Accepted Solutions
EricBader
Honored Contributor
Hi Olivier:

Yes, this is because that machine does not have DirectX installed....at least that is one of the typical signs. Just check to make sure you have DirectX on it.

Hope this is helpful!

View solution in original post

0 Kudos
5 Replies
EricBader
Honored Contributor
Hi Olivier:

Yes, this is because that machine does not have DirectX installed....at least that is one of the typical signs. Just check to make sure you have DirectX on it.

Hope this is helpful!
0 Kudos
xiaoluzhou1
New Contributor

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)

0 Kudos
shelsonwoo
Deactivated User

I have same problem. Have you solved it? Can you tell me how can I solve it?

0 Kudos
OlivierNols
Emerging Contributor
Yes it was the problem !

Thank you !

Olivier
0 Kudos
EricBader
Honored Contributor

Questions:

1. Are you RemoteDesktop-ed into your Windows Server machine?

2. Which version of the API are you using?

0 Kudos