Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JAR Files. Using them in ASP.

Status
Not open for further replies.

TarMacTerrorsit

Programmer
Jun 21, 2004
1
0
0
ZA
Im trying to call classes packaged in a JAR file from within ASP but it's not working. Is there anybody that can advise me how this is done? Thanks
 
I've never heard of anyone trying to do that...I would think that at the very least you would need some kind of dll to explain to IIS what to do with them. Best bet might be to get Tomcat and install that on top of IIS, but it's been years since I have dealt with Tomcat so I may be mis-remembering...
-T

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
The never-completed website:
 
Unpack the classes in the jar to the system32/trustlib folder.

You should then be able to call the classes like any other COM component.

- J
 
Put the classes in the C:\WINNT\java\trustlib folder (ie example.class)

Code:
<%
set javaObject = GetObject("java:example")
javaObject.example param1,param2
set javaObject = nothing
%>

This will work if the class is compiled by Microsoft's Virtual Machine, which MIcrosoft no longer supports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top