Java programs can communicate with HoTMetaL PRO via the COM interface if HoTMetaL PRO is running.
You need to have the latest Java SDK from Microsoft installed. The SDK is available from http://www.microsoft.com/java/download.
Now carry out the following steps:
jactivex /d hmpro6.tlb(You can also use /p to give a package name of sq.com, which will put the Java programs (.java files) into the com/sq/hmpro6 folder.)
jvc /x- classes/com/sq/hmpro6/*.java
zip -n class hmpro6.zip com/sq/*.class
Consider the following small sample program (call it RunHmpro6.java):
import com.sq.hmpro6.*; class RunHmpro6 { static public void main (String [] args) { _Application app = new Application(); app.getSelection().TypeText("Hello from Java"); } }
jview RunHmpro6
Copyright © SoftQuad Software Inc. 1999