Solved

Problem with registration of Java/COM

Posted on 2004-10-15
5
736 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
ID: 12321786
Hi seckel,

Which package is your Java class in?

Cheers!

\tt
0
 

Author Comment

by:seckel
ID: 12321910
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
ID: 12321997
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
ID: 12322521
Do you know how I can create a type library?  
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 12401673
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 116
Configure a Bean in an XML file 4 42
type mismatch (Object[] to double[] 4 33
by zero exception 10 52
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
The viewer will learn how to implement Singleton Design Pattern in Java.

839 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