What is the difference between java, javaw, and javaws?
I have found that on Windows most usage of Java is done using javaw.
Both java.exe and javaw.exe can execute java programs including jar file, the only difference is that with java.exe you have a console executed and you need to wait until your java program finishes to run any other command on the other hand in case of javaw.exe no console or window is associated with execution.
javaws.exe is used to launch a java application that is distributed through web. We have a jnlp_url associated with such application. We can use as “javaws jnlp_url” to launch the application. It downloads the application from the url and launches it.
'w' stands for 'Windows' as in Java for windows. Follow this answer to receive notifications.
There are two ways to get Java working on Minecraft. One is a LAN issue and the other is a JAVA update issue. Java 7 is the best version for Minecraft Mods and Minecraft.
See Java tools documentation for:
java command1/javaw command2
- The
javatool launches a Java application. It does this by starting a Java runtime environment, loading a specified class, and invoking that class'smainmethod.- The
javawcommand is identical tojava, except that withjavawthere is no associated console window. Usejavawwhen you don't want a command prompt window to appear.
javaws command, the "Java Web Start command"
The
javawscommand launches Java Web Start, which is the reference implementation of the Java Network Launching Protocol (JNLP). Java Web Start launches Java applications/applets hosted on a network.
If a JNLP file is specified,javawswill launch the Java application/applet specified in the JNLP file.
Thejavawslauncher has a set of options that are supported in the current release. However, the options may be removed in a future release.
See also JDK 9 Release Notes Deprecated APIs, Features, and Options:
Java Deployment Technologies are deprecated and will be removed in a future release
Java Applet and WebStart functionality, including the Applet API, the Java plug-in, the Java Applet Viewer, JNLP and Java Web Start, including thejavawstool, are all deprecated in JDK 9 and will be removed in a future release.
java: Java application executor which is associated with a console to display output/errors
javaw: (Java windowed) application executor not associated with console. So no display of output/errors. It can be used to silently push the output/errors to text files. It is mostly used to launch GUI-based applications.
javaws: (Java web start) to download and run the distributed web applications. Again, no console is associated.
All are part of JRE and use the same JVM.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With