7

How can I run the examples in the link?

Where can I get the JNLP developer pack?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Samrat
  • 367
  • 2
  • 4
  • 21
  • Note: the Java Tutorial has a lot of examples run through JNLP and can be downloaded, if you want even more. Remember to check that the JNLP file is correct XML. – Thorbjørn Ravn Andersen Sep 29 '11 at 06:15
  • 2
    Those examples are not as good as [these examples](http://pscode.org/jws/api.html). I can say that because the latter examples 1) Were written by me. (I might be biased) 2) Are self contained (source, JNLP and build file) 3) Have been used as 'test cases' for the JNLP API in several bug reports. (E.G. 'The example doesn't work, so the API must be broken.'). – Andrew Thompson Sep 29 '11 at 08:21

5 Answers5

5
C:\Program Files\Java\jdk1.6.0_27\sample\jnlp\servlet

In other words, in the sample\jnlp\servlet directory of your JDK.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
  • 1
    thanks bozho. I'am struggling with jdk 1.7 and it is not there. Now i took from 1.6. – Samrat Sep 29 '11 at 06:19
  • The sample folder is in the "Java SE Development Kit Demos and Samples Downloads" file, a separate download from the JDK. The 7u21 version does have sample/jnlp/servlet with jnlp.jar. – jla Apr 24 '13 at 18:33
4

You can also find the javax.jnlp.* classes in lib/javaws.jar under your JRE installation.

Steve
  • 684
  • 7
  • 8
2

The classes shown at the link are primarily of the JNLP API. It is automatically on the run-time class-path of apps launched using Java Web Start.

As to how to add them to the compile-time class-path, see the tips in (the build files of) these demos.

Community
  • 1
  • 1
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
1

It's really hard to get there. The JAR tar balls, such as jnlp-servlet.jar, are located in lib.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
0

You find the JNLP developers pack here.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
stacker
  • 68,052
  • 28
  • 140
  • 210