devxlogo

Activate Your Applets

Did you ever feel the urge to use a nice Java class you just wrote as an ActiveX object on your Windows machine? Good news: you can do it in three easy steps. First, make sure you’ve got the latest build of the Microsoft VM on the target machine (check http://www.microsoft.com/java/). Second, copy your .class file to the LIB or TRUSTLIB directory. Third, run the JAVAREG utility (use Start/Find/Find Files if you’re not sure where it is) as follows:
JAVAREG /register /class: /progid: is the name of your class, and can be anything, but preferably the same–it’s the object name you’ll have to pass to a function like CreateObject later on.

And that’s it! The nice thing is that this will work for any Java class that will run on the Microsoft VM, and not just classes created with Microsoft development tools. If you want to get rid of your ActiveX object at any time, use JAVAREG with the /unregister switch.

Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.

See also  How Engineering Leaders Spot Weak Proposals

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.