Solved

Problem with registration of Java/COM

Posted on 2004-10-15
5
726 Views
Last Modified: 2008-01-09
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?
0
Comment
Question by:seckel
  • 3
  • 2
5 Comments
 
LVL 14

Expert Comment

by:Tommy Braas
Comment Utility
Hi seckel,

Which package is your Java class in?

Cheers!

\tt
0
 

Author Comment

by:seckel
Comment Utility
Its not in a package.

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

0
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 500 total points
Comment Utility
seckel,
> C:\>javareg /register /class:ValidateCertificate /progid:JavaValidateCertificate
> /typelib:ValidateCertificate.tlb

Have you tried:
C:\>javareg /register /class:ValidateCertificate /progid:JavaValidateCertificate /typelib:ValidateCertificate.class

Btw, I don't think you need to specify /typelib unless you specify /control. Furthermore you shouldn't need to copy the class file yourself. It should be done by the javareg tool.
\t
0
 

Author Comment

by:seckel
Comment Utility
Do you know how I can create a type library?  
0
 
LVL 14

Expert Comment

by:Tommy Braas
Comment Utility
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?

=-)
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now