$ java -jar -Xss10m /home/user/Desktop/sample.jar
$ ./runSample.sh
/home/gisuser/arcgis/engine10.1/ file:/home/gisuser/Desktop/ADAssetwidTrack05072013.jar!/adaps.png /home/gisuser/Desktop/runADAsset.sh: line 4: 4738 Aborted (core dumped) java -jar -Xss5m /home/gisuser/Desktop/sample.jar
Hi all,
I am getting a problem when i am trying to run esri desktop application from double click on the icon created on linux, the application runs for a while and crashes showing core dump issue on the terminal window. Although the same application runs fine when i run it using terminal command or with shell script of the application.
here is the command i used to run the application directly on the terminal:$ java -jar -Xss10m /home/user/Desktop/sample.jar
here is the command i used to run the application using shell script. the script file contains the above command.$ ./runSample.sh
and here is the output when i try to run the application using double click on icon./home/gisuser/arcgis/engine10.1/ file:/home/gisuser/Desktop/ADAssetwidTrack05072013.jar!/adaps.png /home/gisuser/Desktop/runADAsset.sh: line 4: 4738 Aborted (core dumped) java -jar -Xss5m /home/gisuser/Desktop/sample.jar
Please Help.
Can you provide some information about what exactly is the code doing? Is your icon just a shortcut to the script. From the command line you are using a different stack size than the one which crashed.
Try defining your JVM parameters like -Xss -Xmx and -Xms explicitly while launching.
Alternatively, use something like a jconsole to see if there is a memory leak in your application.
Thats a bit strange. All I can suggest you is to print some environment variables from within your script (running as shortcut) which could make the difference, like JAVA_HOME, PATH, ARCGIS related path.
Also there is a subtle difference in implementation of tools in 10.1 as compared to previous versions but it should have consistently failed either way. Try the following
1) Set all the required paths
2) source init_java.sh or init_java.csh as the shell you are using before launching your java program.
Can you tell me how you are doing any of the tools implementation??