How to import a XMI file into VP using openAPI java code?

I followed the link Importing XMI in Visual Paradigm to import XMI into VP via command Interface. However, I am facing issue as below:-

Picked up JAVA_TOOL_OPTIONS: -Duser.home=C:\Users\shweta
OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Error: Could not find or load main class com.vp.cmd.ImportXMI
Caused by: java.lang.ClassNotFoundException: com.vp.cmd.ImportXMI

If this is not the way, how I could import XMI file via the openAPI?

Hi Sheweta,

Thank you for your inquiry. Please make sure you are running the file under the bin folder or the scripts folder that contains the bat file.

Working example:
C:\Visual Paradigm\Application\scripts > ImportXMI.bat

Not working example:
C:\Visual Paradigm\Application > scripts\ImportXMI.bat

Best regards,
Jick Yeung