Workstation 10x AiVersionMismatchException

2353
1
06-15-2015 12:53 PM
GeneBurk
New Contributor

I recently inherited a Java small program that was originally created using Workstation 8x that creates in instance of the Arc object from the ODE.JAR file

private Arc m_arc

m_arc = new  Arc();

if ( !m_arc.isInitialized() ) {

throw new Exception( "Couldn`t initialize Arc utility" );

}

s_bInstanceExists = true;

}

Since Workstation 8x will not install on a Windows 2012 machine it was decided to use Workstation 10x as it would allow us to use our group license. 

I've installed and reinstalled Workstation 10x several times on this particular machine and ensured that there are no registry remnants with each uninstall,  the license manager is set correctly and made sure Eclipse is using the correct and only ode.jar library available  but when ever the instance of the Arc() is created I get a version mismatch error

Version mismatch:

   ArcInfo version 10.0

   ODE for Java version 9.2 Beta II

at com.esri.ode.AiVersion.checkVersion(Unknown Source)

at com.esri.ode.Arc.<clinit>(Unknown Source)

I have been searching the net and ESRI boards but no references to this error. I am hoping someone might be able to give me a clue or two on finding a solution.

Tags (1)
0 Kudos
1 Reply
GeneBurk
New Contributor

Found the source of this issue. AiVersion class in the ODE.JAR file that ships with WorkStation 10 has the wrong values set for AI_REVNUM and AI_REVTYPE. So unless I can get ESRI to fix the  jar file thats ships with a product that ends support Dec 2015 it means a rewrite. (Sure management with be happy with that.)

0 Kudos