First download the Java sample source code
Java can not directly access a DLL or ActiveX control. You need a Java - COM/Activex bridge, e.g.
•http://sourceforge.net/projects/jacob-project/ (open source)
•http://www.javain.com/javain/index.jsp (OLEJA)
•http://www.infozoom.de (jacozoom)
•http://j-integra.intrinsyc.com (jintegra)
•http://www.ezjcom.com (EZ JCom)
The provided sample for Java is made with Java 6 and JACOB Java COM Bridge, but it can easily be transferred to another Java version or another Java COM bridge.
•Download the Java sample source code from the website
•Download the JACOB Java Com Bridge
•Copy the jacob-1.14-x86.dll into the sytem32 folder or into your application folder
•Make sure that the jar of the Java-COM/ActiveX Bridge is in the project-library and that the path is correct.To config the Jacob Library path, right click on Libraries.Then click on "Properties". Now you can add the file “Jacob.jar” by clicking on the button “Add JAR/Folder
•Make sure that the LicProtector510.exe is installed an registered on the machine. The COM exe can be found in the folder ....\Licence Protector\5.1\files for distribution\COMexe
•Replace all occurrences of the old object (e.g. LicProtector.LicProtectorEXE300) with the latest version, which is LicProtector.LicProtectorEXE510
•If you get compile errors or need more background information - click here. Some XP machines seem to have missing components. It may be usedfull to install the Microsoft Visual C++ 2005 SP1 Redistributable Package. Just add it in your installer and make a shell execute in silent mode: VCRedist_x86.exe /Q
An installation without needing administration rights to register the COM exe is possible. See details - Register DLL / COM exe without admin rights
To protect the code against de-compilation or reverse engineering, you can combine Licence Protector with All-In-One Protector for a special bundle price.
See chapter: Code Protection / Decompile Protection