jlopez
31st March 2003, 13:41
Hi,
I've installed BCK 1.3 as the Developer's Manual explain, and I can run the java sample application and the C++ sample application with success, but when I try to run the Visual Basic Sample I get the following message: "Runtime error 430 "Class does not support automation or does not support expected interface"
Can somebody help me?

Thanks,

arunprasath
3rd April 2003, 09:56
hi,
you can check your System classpath settings.
From Vb, it calls the java classes.
so you need to set the system classpath.

Say, if you have the samples inside the folder D:\BaanConnectionBasicEdition\Samples\ccmcscurrrates,
You need to set the classpath till D:\BaanConnectionBasicEdition\Samples\
Also, you need to set the classpath for D:\BaanConnectionBasicEdition\
as all the packages com.baan.tech.baanconnection are inside it.

so after entering the classpath you can try running the samples.

Also you can see ccmcscurrratesReg.reg and baanconnectioncom.reg files.
You can take a backup of your system registry and then click on these two registry file entries. and then check.

this VB program works fine for me.
If nothing works, then try the same in a different machine. if that works then definitely some problem with system registry.
All the best for your tries.
regards
s.arun prasath

jlopez
3rd April 2003, 10:05
Yeah it works!!!
Thanks

By the way... I've compiled an IDL in BaaN (without problems), and I've created the TLB file on my system (without Problems again) but (maybe it's a silly question, but I prefer seem a silly man for a few minutes than be a silly all my live ;) ) How can i compile the .java files to get the .class files I need?

Thanks for your Help
(If you come any time to Spain you have a cold beer free, or two)

arunprasath
3rd April 2003, 15:42
Dear lopez,

For compiling .java files, you need to have Java Development Kit(jdk). You can download one free from java.sun.com .
In jdk, you have the java compiler(javac.exe).

so you can compile individual files by javac xxx.java
and group of files in same directory by javac *.java.

hope this helps.. and there is nothing to feel silly in it. and all those beer/s you have for yourself.

;)

jlopez
3rd April 2003, 15:45
God bless you!!