Link to home
Start Free TrialLog in
Avatar of seckel
seckel

asked on

Problem with registration of Java/COM

I have a Java class called ValidateCertificate.  

I am using Java/COM Registration Utility 2.6 and I type in the following command line:

C:\>javareg /register /class:ValidateCertificate /progid:JavaValidateCertificate /typelib:ValidateCertificate.tlb

I get the following error:

"Unable to create the type library for the specified Java class."

Any suggestions what this error means and how to correct the problem?
Avatar of Tommy Braas
Tommy Braas
Flag of Australia image

Hi seckel,

Which package is your Java class in?

Cheers!

\tt
Avatar of seckel
seckel

ASKER

Its not in a package.

I compiled the source and moved the class into WINNT/Java/trustlib directory.  

ASKER CERTIFIED SOLUTION
Avatar of Tommy Braas
Tommy Braas
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of seckel

ASKER

Do you know how I can create a type library?  
If you use the command with the typelib switch, the typelib will be created by the javareg utility. See the following link for examples and explanations: http://www.tburke.net/info/reskittools/topics/javareg_examples.htm

Thanks for the points, could you please explain the B grade? Was there something in my answers that wasn't correct and/or not satisfactory?

=-)