Solved

Problem with registration of Java/COM

Posted on 2004-10-15
5
737 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
egit plugin on eclipse 8 102
Problem to Alipay 10 72
Html Table Looping (part 2) 5 35
Eclipse Java import and method not resolved 4 82
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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 learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

730 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