Solved

Problem with registration of Java/COM

Posted on 2004-10-15
5
732 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to parse custom JSON to POJO java 4 73
object oriented programming comparison 5 72
type mismatch (Object[] to double[] 4 24
Running JavaFX on JDeveloper 12C 1 32
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

773 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