I have been asked to create a project in vb.net which needs to integrate a java class created by Apple (Autoingestion.class) to pull sales records and so on.
I found out a couple of questions here on stackoverflow but none of the answers given worked for me when trying to integrate this java class in my .net application.
For example this question seemed to be what I really needed but when trying to compile this java class (I decompiled it first using Java Decompiler), it generally throws some errors.
All I need is to use this class in my application to invoke a method.
Does anyone know how to pull this out without much ninja-ing?
EDIT: Here is the decompiled code from Autoingestion.class
The simplest solution here (other than rewriting the java code in .Net -see above comments) is to simply execute the existing java code from .Net since the class concerned contains a
main method. i.e. something like this assuming the java class is in the working dir of your .Net app (and java is on your path):this keeps original functionality and is uses similar commands you currently do.