OmniView intergration with automic.dll (v12.1) results in Error: Error CS0234 The type or namespace name 'uc4' does not exist in the namespace 'com' (are you missing an assembly reference?)

Document ID : KB000087347
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
Error CS0234 The type or namespace name 'uc4' does not exist in the namespace 'com' (are you missing an assembly reference?)

When integrating the automic.dll to OmniView in v12.1 the following error may appear:

0EMb0000001FZWM.png
Error CS0234 The type or namespace name 'uc4' does not exist in the namespace 'com' (are you missing an assembly reference?)


Investigation:
The new .dll is referenced and the namespace 'sun' is available as well. When using the automic.dll from v12 this works properly.
0EMb0000001FZWW.png


Please refer to the solution in order to integrate the automic.dll
 
Cause:
Cause type:
Other
Root Cause: The namespace did not change but we changed the java compiler level in 12.1 to Java 8
The build process uses an old IKVM compiler that does not support Java 8.
Resolution:
Download IKVM from http://weblog.ikvm.net/2015/08/26/IKVMNET81ReleaseCandidate0.aspx and create the automic.dll from the uc4.jar:
ikvmc -target:library -out:automic.dll uc4.jar

Please do not forget that the referenced IKVM libraries need to be changed in the project.
 

Fix Status: No Fix

Fix Version(s):
n/a
Additional Information:
Workaround :
n/a