AnsweredAssumed Answered

ArcObject connection arcgis 10.1 server on java(new)

Question asked by 515813069 on Aug 13, 2014

Hi.

     Four weeks ago,I began to do arcObject development .The question has bothered me for three weeks...

 

try

{

  new ServerInitializer().initializeServer("", "admin", "admin");

  con = new ServerConnection();

  con.connect("localhost"); 

}

catch (Exception err)

{

  out.println("<AnalysisResults>");

  out.println("<err>"+err.toString()+"</err>");

  out.println("</AnalysisResults>");

  return;

}

 

 

Exception in thread "main" AutomationException: 0x80040154 - Class not registered

  at com.esri.arcgis.server.ServerConnection.connect(Unknown Source)

  at test01.Console.main(Console.java:48)

 

 

Used to have a discussion is wrong,Because I have the habit of Ctrl + S,sorry~

Outcomes