How to Make JNLP Open With Java
The Java Network Launching Program (JNLP) lets you create Web services in your Java program. You must add the JNLP libraries to your project and include the libraries in your source code. Java has an "include" directive that lets you launch and open the files in your Java custom software. Use this to include statements to use the libraries in any Java program.
Instructions
-
-
1
Open the Java Eclipse editor on your desktop and open the project in which you want to open the libraries.
-
2
Right-click the "src" folder and select "Add." In the opened window, select "JAR" as the file type and select the JNLP jar file, which is a Java-compiled file you can use in projects. The JNLP file is named "jnlp.jar." Click "OK."
-
-
3
Double-click the Java source code file you want to use to open the JNLP library. Copy and paste the following code to include it in the source code:
import javax.jnlp.*;
-
4
Open the JNLP service and assign it to a variable. The following code starts the service in Java:
jnlp = (BasicService)
ServiceManager.lookup("javax.jnlp.BasicService");
-
1