During the development process, you will encounter the class to call Java in the ASP / ASP.NET during the development of the ASP / ASP.NET to implement the functions that have been implemented with Java. The following will explain the detailed use of the use: 1. Create a Java file: Use any of your favorite editor to edit the following: public class hello {public string helloworld (string s) {if (s == null) Return "; Else Return S;}} Save this file as hello.java2, compile Java files are running in Class: Command mode: javac hello.java3, copy the compiled hello.class file to the C: / WinNT / Java / TrustLib Directory 4, create the following file, named Test.asp: <% set javaobject = GetObject ("Java: Hello") MSG = JavaObject.HelloWorld ("Hello World") Set JavaObject = NothingResponse.write Msg%> 5, Test: Create a virtual directory TEST in IIS, turn the test.asp file Copy to this virtual In the directory, restart IIS, access http: //localhost/test/test.asp in IE, page display "Hellow World", indicating that the call is successful. In ASP.NET, you can use the same method as ASP. vb.net: Dim javaObject As Object = GetObject ( "java: hello") Dim msg As String = javaObject.helloWorld ( "Hello World") javaObject = Nothing Response.Write (msg) C # GetObject can not be used directly, citing System. After resources, it is still unsuccessful with resourcemanager.getObject, no debugging, interested friends can try, or first package .dll in VB.NET, then call to C #. Note: Step 2 When compiling, you need to use the 1.3.x compiler. Compile normal in the JDK of 1.4, but I will display the NO Object for Moniker error 6 when calling in the ASP / ASP.NET, if IMPORT is in the java file. Other JAR files, in step 3, you also need to put these .jar files Copy to the C: / Winnt / Java / Packages directory, and add ClassPath variables in My Computer -> Properties -> Advanced -> System Variables The detailed path of the JAR file is a JAR file, such as C: /Winnt/java/packages/ldapfilt.jar; c: /winnt/java/packages/ldapjdk.jar; C: / Winnt / Java / Packages / LDAPSP. JAR ;. The middle is separated by a semicolon, and finally the end of the decimal point is over the Chinese and English Win2000, WinXP has passed