Japplet Error: noclassdeffounderror com/esri/map/layer

2578
2
Jump to solution
05-24-2016 01:50 AM
RiordanPawley
New Contributor

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

0 Kudos
1 Solution

Accepted Solutions
VijayGandhi
New Contributor III

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)

View solution in original post

2 Replies
VijayGandhi
New Contributor III

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)

RiordanPawley
New Contributor

Thank you!

0 Kudos