If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Javaw.exe is intended to run Java programs, just like java.exe, but without the Consol Window.
Suppose you wanted to run a Java program in a Windows Environment, you could create a shortcut to
your program, and the command to run your program would be "javaw myProject.MyProgram"

An Executable JAR is a jar file that has the class with the main method specified in the Manifest.mf file
located in the directory meta-inf/ directory of your JAR.

In a Windows environment, Windows looks in the registry for the associated program to open the JAR file.
In this case javaw.exe. Java looks in the Manifest file for the main method and executes that class.
On other platforms the command to execute a jar would be "javaw -jar myprogram.jar"

A simple example of a manifest would be:

Manifest-Version: 1.0
Main-Class: myProject.MyClassWithMain

My Applet doesn't work and the Java Plugin.

Most browsers have the plugin for Java 1.1, but with the introduction of Swing in Java 1.2, your program
might need a newer plugin for the browser. SUN has come up with a handy little converter that will
change your HTML code to detect and download the newer plugin. It can be found here

Links in an Applet

In a click event for some Component, you could use the following code:

Code:

//To send the current page to a new location, the code would be:
this.getAppletContext().showDocument(new URL("http://www.google.com"));
//To open a new Browser Window:
this.getAppletContext().showDocument(new URL("http://www.google.com"),"_blank");

If you feel that you can contribute to this list, it will be immensely appreciated! Please let me know by sending the moderator of this forum a Private Message or adding it onto this list yourself.

Advertiser Disclosure:
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.