Just a quick update. The map works on when I deployed it in home laptop which is windows 8.But it does not work on the actual deployment machine which is windows server 2008 service pack 2 64 bit.
What kind of layers are you adding to the JMap ? dynamic layer from local map package, online web service, local tiled layer ?In case you are loading a TPK or MPK file, as a resource file, it's working in local because the file is accessible, but in deployment your resource file are in the jar... so you need to deploy or copy them outside the jar file for deployment.I hope this can help you.
Can you post your private Jmap createMap() function so we can see what types of layers you are adding.
private Jmap createMap()
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.