?
Solved

Problem with registration of Java/COM

Posted on 2004-10-15
5
Medium Priority
?
749 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 1500 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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

771 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