Jchem 3.0.8 with J2RE 1.4.2_06

User 6f93634cd9

17-02-2005 10:54:22

Hi,





I have tried to get Jchem working, but the registration of the classes doesn't work the same way with J2RE 1.4.2_06. The batch files are all programmed for version 1.3.x of Java.





In the documentation on the website of SUN it states that i have to use MS Visual C to get it working.





Is there any other way? Has someone got this working already?





Y. Marcus

ChemAxon 7c2d26e5cf

17-02-2005 13:42:30

Sun has removed the ActiveX Bridge support from JDK/JRE 1.4, and replaced it with a different version from 1.4.2 and later.





JChem supports creating of ActiveX Bridge of Java 1.3.1.


If you want to build ActiveX controls for Java 1.4.2, you have to do it manually.


On the Sun's site, you can find a document how you can do this.


http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html


You can see that the new ActiveX bridge requires Visual C++ 6.0. Without it, you can not create DLL-s.





In the future, we provide JChem DLL-s and an installer to register them to the user's machine.


Until then, we suggest you using Java 1.3.1 for ASP

User 6f93634cd9

17-02-2005 14:56:57

Hi Tamas,





Thanks for your reaction.





I have de-installed java 1.4 and installed 1.3.1.15. I have tried to register the jchems.jar with jchem2actx.bat, but no reaction after the first bean.


Below the results from the Command window:
Quote:
C:\jchem\bin>c:\progra~1\javasoft\jre\1.3.1_15\bin\java -classpath "c:\progra~1\ javasoft\jre\1.3.1_15\lib\jaws.jar" sun.beans.ole.Packager -jar "c:\jchem\lib\jchem.jar" -n chemaxon.jchem.db.JChemSearch -ax ChemAxon_JChemSearch -o "c:\jchem\lib"


Exception in thread "main" java.lang.NoClassDefFoundError: oracle/sql/CLOB


at java.lang.Class.getMethods0(Native Method)


at java.lang.Class.getDeclaredMethods(Unknown Source)


at java.beans.Introspector$1.run(Unknown Source)


at java.security.AccessController.doPrivileged(Native Method)


at java.beans.Introspector.getPublicDeclaredMethods(Unknown Source)


at java.beans.Introspector.getTargetEventInfo(Unknown Source)


at java.beans.Introspector.getBeanInfo(Unknown Source)


at java.beans.Introspector.getBeanInfo(Unknown Source)


at sun.beanbox.JarInfo.<init>(Unknown Source)


at sun.beanbox.JarLoader.createJarInfo(Unknown Source)


at sun.beanbox.JarLoader.loadJar(Unknown Source)


at sun.beans.ole.Packager.isValidStubInfo(Unknown Source)


at sun.beans.ole.Packager.<init>(Unknown Source)


at sun.beans.ole.Packager.main(Unknown Source)


Then I tried to do it as SUN descibes on


http://java.sun.com/products/plugin/1.3/docs/script.html





But when I select the jchem.jar, it shows no beans in step 2.





The server is win2k, sp4, MS SQL2000 database.

ChemAxon 9c0afc9aaf

18-02-2005 07:56:08

Hi,





The cause of the problem is that we reference some Oracle-specific classes at least one of these components.


(until now we haven't realized it causes a problem with ActiveX registration)





The registration will be successful once you have Oracle's JDBC driver in your system CLASSPATH.





If you are using Oracle, I recommend using <oracle_home>\jdbc\lib\classes12.jar





Otherwise you can download it from the Oracle web site.





Szilard

ChemAxon 9c0afc9aaf

18-02-2005 14:07:40

The Oracle download page for JDBC drivers (classes12.jar) :





http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html

User 6f93634cd9

24-02-2005 15:35:28

Hi,





Thanks for the info on classes12.jar. I got them registered !





I now have the following problem:





When I try the examples/asp/index.asp, The menu on the left comes up good, but the searching.asp gives errors.





I am using IE 6.0 to test.


With 'COM Explorer' I can see that the beans/activeX's have registered correctly on the IIS server.


Quote:
Error Type:


Uninitialized Java exception (0x800A0014)


Unable to load JavaBeans.


/jchem/examples/asp/searching.asp, line 123








Browser Type:


Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)





Page:


GET /jchem/examples/asp/searching.asp





Time:


Thursday, February 24, 2005, 4:24:44 PM

ChemAxon 9c0afc9aaf

25-02-2005 09:56:16

Hi,





To tell the truth, this example wasn't tested and developed much lately.


(only a few customers were interested in ASP)





Maybe you have a newer/different version of IIS, which we haven't tested before.


I will test it again in a few days.





Our (Java Server Pages) JSP example is much more popular, and more sophisticated:





http://www.jchem.com/examples/jsp1_x/index.jsp





It also has the benefit of convenient and full access to our API.





Of course custom development requires some basic Java knowledge.


If you know a little Java, JSP is very easy.


It's also the most effective way to harness our capabilities.





Of course we will continue to support ASP and ActiveX :


efforts are currently being made to extend ActiveX support for Java 1.4 and above.


I just wanted to inform you that you can get more out of JSP.


You can even run Tomcat and IIS at the same time, referencing each other's pages.


If no custom modification is required, you don't even have to learn any Java.





Best regards,





Szilard