Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between 'java', 'javaw', and 'javaws'?

What is the difference between java, javaw, and javaws?

I have found that on Windows most usage of Java is done using javaw.

like image 584
user705414 Avatar asked Sep 27 '22 13:09

user705414


People also ask

What is difference between java exe and Javaw exe?

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.

What is the use of javaws?

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.

What does Javaw stand for?

'w' stands for 'Windows' as in Java for windows. Follow this answer to receive notifications.

Does Minecraft use java or Javaw?

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.


2 Answers

See Java tools documentation for:

  • java command1/javaw command2
  1. The java tool launches a Java application. It does this by starting a Java runtime environment, loading a specified class, and invoking that class's main method.
  2. The javaw command is identical to java, except that with javaw there is no associated console window. Use javaw when you don't want a command prompt window to appear.
  • javaws command, the "Java Web Start command"

The javaws command 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, javaws will launch the Java application/applet specified in the JNLP file.

The javaws launcher 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 the javaws tool, are all deprecated in JDK 9 and will be removed in a future release.

like image 247
Andrew Thompson Avatar answered Oct 16 '22 23:10

Andrew Thompson


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.

like image 77
Venkataswamy Avatar answered Oct 16 '22 23:10

Venkataswamy