Questions tagged [javaw]

The javaw 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.

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. The javaw launcher will, however, display a dialog box with error information if a launch fails for some reason.

98 questions
230
votes
5 answers

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.
user705414
  • 20,472
  • 39
  • 112
  • 155
157
votes
4 answers

Difference between java.exe and javaw.exe

Recently I noted that some applications are running on javaw (not in java). What is the difference between them and how can I run my Swing application on javaw?
asela38
  • 4,546
  • 6
  • 25
  • 31
58
votes
7 answers

Start a java program without the console

I am trying to use this GUI mod for a Minecraft Server. I wrote a batch file so the server can start with more RAM. When I run just the .jar file, no command window opens and it runs just fine (of course with about 256mb ram) I was reading online…
tuxxi
  • 681
  • 1
  • 5
  • 4
30
votes
6 answers

"Could not find the main class" when double-clicking .jar file

First: I realize that this issue should be quite simple and lots of people seem to have experienced it. However, it appears my issue may be slightly different from existing posts. I'm using NetBeans to compile a Java application. When it's done…
aardvarkk
  • 14,955
  • 7
  • 67
  • 96
27
votes
6 answers

Find absolute java.exe path programmatically from java code

If I have a java jar or class file which is launched by the user (assuming java path is set in environment variables), so how can i from within the code, figure out absolute path of java.exe/javaw.exe from which this file is being launched. Like…
Johnydep
  • 6,027
  • 20
  • 57
  • 74
12
votes
7 answers

I can run .jar files through cmd, but I cannot double click them

When I download a .jar file to say install a mod to minecraft and double click it, it doesn't run. The loading wheel goes for like two seconds and then stops, and nothing else happens. The .jar I know is set up right because it runs through cmd with…
Lightfire228
  • 546
  • 1
  • 5
  • 17
10
votes
4 answers

Convert an UploadedFile into a File

I'm using PrimeFaces 3.2 and I should store a file on filesystem. Now, I know that the class FileUploaded creates a temp file so I would convert it into a real file using java.io.File. Here it is my code: String fileName = "D:/upload/file.zip";…
Filippo1980
  • 2,745
  • 5
  • 30
  • 44
9
votes
3 answers

Can I find out if the java program was launched using java or javaw

This is related to an earlier question by a different user, asking How to detect that code is running inside eclipse IDE. I noticed that Eclipse always launches programs with javaw rather than java. (This does not imply a program launched with javaw…
saugata
  • 2,823
  • 1
  • 27
  • 39
8
votes
5 answers

How to find where javaw.exe is installed?

So, for a project I am working on, I need to find out where a javaw.exe is located on a user's machine. How do I do that? Assuming that user is on Windows machine The method that I used is limited to English versions of Windows only. I looked for…
An SO User
  • 24,612
  • 35
  • 133
  • 221
6
votes
3 answers

What Do The Ending Letters Mean - pythonw, javaw, javap, javac, etc

I just made a connection between python's: pythonw.exe and java's: javaw.exe and I'm curious about this as I cant figure out what some of those ending letters mean. I know that javac is the Java compiler so I assume the w on the end of the name also…
kmecpp
  • 2,371
  • 1
  • 23
  • 38
6
votes
2 answers

Jar file won't run on double click

I know you may blame me for this being a dupe - but frankly, I do not know what to do next. I spent hours online trying to find my solution, and have found nothing. Zilch. Zero. Anyway, this is my problem: when I double click my runnable jar file,…
gedr
  • 316
  • 1
  • 2
  • 12
6
votes
2 answers

ADT Bundle for Windows 7 64bit missing JRE folder and wont run - I've tried

So I downloaded the 64bit version of the ADT Bundle from developer.android.com and what not, but when I run eclipse (from this bundle - this is not trying to add the plug in to an existing IDE, this is just the bundle) it tells me im missing…
ZenOokami
  • 212
  • 2
  • 4
  • 12
5
votes
6 answers

How to Kill Java Process in Windows, WITHOUT killing javaw.exe?

I have an external Windows .exe that is actually Java application: Running the .exe starts javaw.exe, which in turn runs that Java application. I didn't write that application and have no access to it through an API. I need to be able to kill it,…
Android Eve
  • 14,864
  • 26
  • 71
  • 96
5
votes
1 answer

Eclipse "javaw.exe" High CPU usage

I have standard Eclipse Kepler with CDT installed. Sometimes when it stays idle for a while the javaw.exe starts eating the CPU up to 30%. Nothing is running in Eclipse, no indexing, no library update, no building or compiling. How can I debug…
Mikael S.
  • 1,005
  • 3
  • 14
  • 28
5
votes
1 answer

Javaw still creates a console window; Why is this?

My game engine's a combination of Jython and Java so I'm executing a jar along with a python script instead of a classfile. java -jar Jython.jar init.py However, when I change "java" to "javaw" it does not hide the console like it normally would.…
Luft
  • 185
  • 4
  • 17
1
2 3 4 5 6 7