Of course. Killing a Java IcedTea applet process in Linux usually involves finding the java process that is running the applet and then terminating it.
Here are several methods, from the most direct to more manual approaches.
Method 1: The Most Direct Way (pkill)
This is often the easiest and fastest method. pkill finds and kills processes based on their name or other attributes. Since the applet is run by IcedTea-Web, we can search for that in the process's full command line.
Open your terminal.
Run the following command:
bash
pkill -f icedtea
pkill: The command to signal processes.
-f: This is the crucial part. It tells pkill to match against the full command line of the process, not just the process name. This is perfect because the process name will be java, but the command line arguments will mention icedtea or javaws.
This command will send a graceful termination signal (SIGTERM) to the IcedTea applet process, asking it to shut down cleanly.
If the process is stuck and doesn't respond, you can force it to quit:
bash
pkill -9 -f icedtea
-9: Sends the SIGKILL signal, which is a non-blockable, "force quit" signal. Use this as a last resort, as it doesn't allow the program to save its state.
Method 2: The Classic Way (ps + grep + kill)
This is the traditional three-step method. It gives you more control and lets you verify exactly what you are killing.
Step 1: Find the Process ID (PID)
Open a terminal and list all running processes, then filter for java or icedtea.
bash
ps aux | grep -i java
or, more specifically:
bash
ps aux | grep -i icedtea
ps aux: Lists all running processes in detail.
|: A "pipe" that sends the output of the first command to the input of the second.
grep -i icedtea: Filters the process list, showing only lines that contain "icedtea" (the -i makes it case-insensitive).
You will get output that looks something like this:
code
# PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
user 12345 15.2 3.4 245353 140324 ? Sl 10:30 2:15 /usr/bin/java -Xmx256m ... net.sourceforge.jnlp.runtime.Boot ... my_applet.jnlp
user 12348 0.0 0.0 12345 987 pts/0 S+ 10:45 0:00 grep -i icedtea
Step 2: Identify the Correct Process
In the example above:
The first line is our IcedTea applet process. Its Process ID (PID) is 12345.
The second line is the grep command itself, which you should ignore.
Step 3: Kill the Process
Now that you have the PID, use the kill command.
To ask the process to shut down gracefully:
bash
kill 12345
(Replace 12345 with the actual PID you found.)
If it doesn't close after a few seconds, force it to quit:
bash
kill -9 12345
Method 3: The GUI Way (System Monitor)
If you prefer a graphical interface, you can use your distribution's system monitor.
Open the System Monitor.
On GNOME (Ubuntu, Fedora): Search for "System Monitor".
On KDE (Kubuntu): Search for "KSysGuard".
On XFCE: Search for "Task Manager".
Find the process.
Go to the "Processes" or "Process List" tab.
Click the "Process Name" column header to sort the list alphabetically, and look for java.
Alternatively, use the search bar and type java.
Verify and Kill.
You may see multiple java processes. Click on each one and look at the "Command Line" or "Properties" details to confirm it's the one related to IcedTea or your applet.
Once you've found the correct process, right-click on it.
Select "End Process" or "Kill Process" (this sends a graceful SIGTERM).
If that doesn't work, right-click again and choose "Force Kill" or an option with a similar name (this sends SIGKILL).
Summary of Recommended Workflow
Try the direct approach first:pkill -f icedtea
If that fails, force it:pkill -9 -f icedtea
If you want to be more careful: Use ps aux | grep -i icedtea to find the specific PID, then use kill <PID> and, if necessary, kill -9 <PID>.
User
psaux∣grep−iicedteaanastas+12569490.00.092162168pts/0S+08:240:00grep−−color=auto−iicedtea kill -9 1256949
bash: kill: (1256949) - No such process
Assistant
Excellent question. You've encountered a very common and classic "gotcha" when using the ps | grep command combination in Linux.
Let's break down what happened and what it means.
The Explanation
The process you tried to kill, with PID 1256949, was not the Java applet. It was the grep command itself.
Here is a step-by-step of what occurred:
You ran ps aux | grep -i icedtea.
The ps aux command listed all the processes running on your system at that exact moment.
At that same moment, a new process was created to run your command: grep --color=auto -i icedtea.
Since this grep process's own command line contains the word "icedtea", it matched its own search criteria and showed up in the results.
The grep command finished its job almost instantly (as soon as ps was done) and then exited.
You saw the output, identified the PID 1256949, and then tried to run kill -9 1256949.
By the time you ran kill, the grep process was long gone. That's why the system correctly told you: No such process.
The most important takeaway from your output is this: The only process found containing "icedtea" was the search command itself. This means that there was no Java IcedTea applet process running at that time.
How to Do It Correctly
There are two ways to improve on this.
Method 1: Filter Out the grep Command (The Classic Fix)
You can add another pipe to grep to filter out the grep process itself. The -v flag in grep inverts the search, meaning it shows lines that do not match.
bash
ps aux | grep -i icedtea | grep -v grep
grep -i icedtea: Finds all lines with "icedtea".
| grep -v grep: From that result, it removes the line that contains "grep".
If this command produces no output, it confirms that no IcedTea process is running. If the applet is running, you will see only the correct Java process line.
Method 2: Use a Better Tool for the Job (pkill)
As mentioned in the previous answer, is designed for exactly this task and avoids this problem entirely. It's the recommended modern approach.
-f: Matches against the full command line, not just the process name.
If this command runs silently, it found and killed the process. If it gives no output and you suspect the process is still running, it means it didn't find a match.
What to Do Now
If the applet window is still open on your screen but you can't find it with the commands above, try a broader search term. The process is a java process, so searching for that is a good next step.
Search for java processes:
bash
ps aux | grep -i java | grep -v grep
This will show you all Java processes running on your system. Look for one that seems related to a web browser, JNLP, or your specific applet.
Kill using pkill with java:
Warning: This is less specific and will kill ALL running Java applications, which might include things like an IDE (Eclipse, IntelliJ) or other server processes. Use with caution.