• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

how to register a java class file for com

 
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to register a java class file for com but can't not get the job done because the tool(javareg.exe) people used to use for wrapping java class file in com object is obsolete now and has serious vulnerability issues as many of you know.

so I wonder if is there any safe way to register the class file so that I can use java for creating Mirc com objects.

However , I have downloaded the MS JVM but I am afraid to use it. :P

best regards,
Omi
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't use the MS JVM for anything, it's way too obsolete to even discuss it.
 
Bobby Sharma
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so there is no way to register java class for com uses?
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not quite sure what you mean by "register Java classes for COM use", but there are numerous ways for COM objects to interact with java: http://faq.javaranch.com/java/JavaIntermediateFaq#callingCom
 
Bobby Sharma
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to register a java class file in windows system registry and use it for mirc Com object.
Since the tool JavaReg is obsolete and not safe , I am not able to register the class file in windows system registry.

Mirc chat client has a Com feature so that we can use java or other oops programming languages for creating script that's why
I have to create prodid for my java class and for that I have to register my java class file in windows system registry.

Or

is there any free way to create standalone dll in Java ? I searched in google but could not find proper answer.

best regards,
omi
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know any way to create a DLL out of Java source code, and also not how to have your Java code work as a COM object. Note that DLLs and COM objects are Microsoft-proprietary technologies, and Java is platform-independent. You will not find such Microsoft-specific things in standard Java. Microsoft doesn't really like Java, so they also don't provide support to do this kind of thing with Java.

If you really want to do this with COM objects, it will probably be much easier if you use Microsoft stuff - Visual Studio, and program in C#, Visual Basic or C++.
 
Bobby Sharma
Ranch Hand
Posts: 598
3
jQuery Google App Engine Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes sir I understand now .. I already created dlls in C#(Which I know) but wanted to create one in Java but it seems
like there is no benefit of creating dll in Java and there is no easy way to do this.

thanks for your time

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jesper Young wrote:I don't know any way to create a DLL out of Java source code ...


But I know
And it's a sun-way too

It is the Sun ActiveX Bridge, just follow the Link: http://java.sun.com/j2se/1.4.2/docs/guide/beans/axbridge/developerguide/index.html

HTH
 
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic