Hi,
So I've been trying to get a japplet that uses arcgis sdk jar files to run in a browser and I can't seem to get past this error (noclassdeffounderror com/esri/map/layer).
I think this means that I am not exporting my main.jar file with the external arcgis jars but I am not sure as I have tried a few different ways to get the external jars anyways.
I have tried referencing them in the html file like so: (with the arcgis lib copied to the folder with Main.jar in it)
<html>
<body>
<center>
<applet
archive = "Main.jar",
lib.ArcGIS_Runtime_Java.jar,
lib.ArcGIS_Runtime_Java_Toolkit.jar
code = "General.Main"
>
</center>
</body>
</html>
I have also tried exporting the jar with the dependencies added however to do this in eclipse it seems that you much have a main(String args[]) method which JApplets cannot have.
What am I doing wrong?
Thanks for your time,
Riordan
Solved! Go to Solution.
ArcGIS Runtime Java does not support running as an applet.
Oracle/Java is planning to move away from the applet technology. Moving to a Plugin-Free Web (Java Platform Group, Product Management blog)
ArcGIS Runtime Java does not support running as an applet.
Oracle/Java is planning to move away from the applet technology. Moving to a Plugin-Free Web (Java Platform Group, Product Management blog)
Thank you!