Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Using Java From ASP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Using Java From ASP" Watch "Using Java From ASP" New topic

Using Java From ASP

Corey McGlone
Ranch Hand

Joined: Dec 20, 2001
Posts: 3271
Does anyone know how to use a Java class from an ASP page? I'm working on a project in which I'd like to be able to do so, but I'm having trouble getting it to work.

I found this on that explains how to do it but, in order to complete the process, I need to get the javareg utility which, supposedly, is included with Microsoft's Java SDK. Unfortunately, I can't find that SDK available for download anywhere.

I've got a number of competing influences on this project. First of all, the customer that this application is intended for has no one on staff that knows anything at all about web applications and, more importantly, application servers. Therefore, I'd just as soon use IIS because it's simply packaged with Windows and, for the most part is simple to use.

On the other hand, I'm not nearly as fluent with VBScript as I am with Java so I'd prefer to do the "heavy lifting" of the application with Java. So, if I put those pieces together, I end up with a situation in which I need to invoke methods on a Java class from an ASP page.

So, with that in mind, anyone have any experience with this?


SCJP Tipline, etc.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

There is a product called JIntegra which is a Com to Java bridge. It won't allow you to use Java(tm) directly in the ASP page, but It could use VB classes that uses JIntegra to use Java classes in the VB code. Or if the code needs to run on client side, why not use Javascript instead.

Just my two cents, and I am by no means a Web expert.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17249

I looked at the Microsoft page that you posted. It is pretty straight-forward if you have the javareg utility.

I agree. Here's the link:
subject: Using Java From ASP
Similar Threads
Translation tool in java
NEC 515
Pass HTTPSession to ASP
need to submit external form from my jsp
Plotting DB data on Internet