Java Web Start Flashcards

1
Q

Where does a Java program run with Java Web Start?

A

JWS runs the JVM locally on the user’s computer and then runs the application within the JVM; it doesn’t use the user’s web browser env.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What was the issue with applets?

A

Though applets allowed Java programs to run on browser, they required browser plugins. Using too many different browser plugins caused compatibility issues.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What cannot apps running Java Web Start do?

A

reading and writing files; accessing user’s local network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the general process for setting up an app to run with JWS?

A

1) create a JAR file that contains the java app you want to run with JWS
2) create a JNLP file that specifies the necessary info to enable the program to run from JWS; the JNLP must have the location of the application’s JAR file (e.g.: ClickMe.java -> ClickMe.jar -> clickme.jnlp)
3) create an HTML file that contains a link to the JNLP file; the HTML will appear in the browser and will send you to the JNLP file when its link is clicked, and the app is run
4) copy the JAR, HTML, and JNLP files to the appropriate folders on the web server; FTP clients like FileZilla can upload files to your web server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a JNLP file?

A

JNLP = Java Network Launch Protocol

A JNLP file is a small XML file that contains info like the name of the app, a URL that points to the app’s JAR file, the vendor who created the app, the java version required, and a URL.

A JNLP can be used to download Java runtime in case it isn’t installed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How many files does a simple JWS application have?

A

at least 5 files:

.java, .class, .jar, .jnlp, and .html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Sometimes Java’s security settings will prevent a JWS app from running. How can you get around this?

A

The user can add the URL of the application to the Java Exception Site List.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the steps to add the URL of a JWS application to the Java Exception Site List?

A

Control Panel -> Find “Web Settings” -> Click “Add” -> Type the URL of the web site (e.g.: lowewriter.com) and press “enter” -> Click “OK” to close Control Panel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly