java

Is this process safe? "ClipboardMonitor"

Is this process safe? "ClipboardMonitor" This process is displaying on my taskbar as "ClipboardMonitor". It seems related to a remote desktop client, but that is just a guess. My question is what is this tracking and where is the output going? Here is the command line for the process: /opt/TSPrintClient/java/bin/java -classpath /opt/TSPrintClient/commons-codec-1.10.jar:/opt/TSPrintClient/commons-io-2.4.jar:/opt/TSPrintClient/sun.misc.BASE64Decoder.jar:/opt/TSPrintClient/TSPrintClient.jar MonitorClipboard Asked By: …

Total answers: 1

Libreoffice update can't find JRE

Libreoffice update can't find JRE I just updated snaps (sudo snap refresh) and now have LibreOffice 24.2. Normally, after an update, LibreOffice Base can’t find my Java Runtime Environment. This is usually easily remedied by going into Tools -> Options -> LibreOffice -> Advanced and selecting a JRE that’s listed as installed. This time the …

Total answers: 1

Connection timed out while trying to connect through Java Socket

Connection timed out while trying to connect through Java Socket I have tried to connect to my ubuntu server from Google Cloud using Java’s sockets. I runned my server and client both on localhost, and it worked. But when I ran it on the server, I couldn’t create new Socket(ip, port) because of exception java.net.ConnectException: …

Total answers: 1

How to install jdk 1.5 .bin file?

How to install jdk 1.5 .bin file? I have downloaded installation file(jdk-1_5_0_06-linux-amd64.bin) from here. But this is a .bin file. So how do I install it? Asked By: Mandroid || Source usually you can just make it executable (chmod +x jdk-1_5_0_06-linux-amd64.bin) and run it with ./jdk-1_5_0_06-linux-amd64.bin Or you can directly run it with sh jdk-1_5_0_06-linux-amd64.bin …

Total answers: 1

Java: what exactly does a headless install mean?

Java: what exactly does a headless install mean? I’m installing Java and Tomcat on a headless server. The client doesn’t have Java and just sees a webpage. Should I install openjdk-17, or openjdk-17-headless? Asked By: QF0 || Source The headless is some weird term (and I hope becoming obsolete) to describe a system without keyboard …

Total answers: 2

Java System.getProperty with sudo gets root

Java System.getProperty with sudo gets root This question is better asked here than in stack overflow since it is more related to Ubuntu than the actual programming language. Here are two different ways to get the path to a file. The first one is to have a default path and hardcode it. The second option …

Total answers: 1

Pain with Maven and Java env variables

Pain with Maven and Java env variables So I installed Java following this guide as I did many times, and set $JAVA_HOME in /etc/environment, java -version works fine. After that I’m following this guide as I did many times and install maven. I don’t understand why I need to add to .profile JAVA_HOME once again …

Total answers: 1

Moving 3 pics randomly to another directory

Moving 3 pics randomly to another directory I am using Linux and I’m in a folder it has 10 .jpg images I want to move 3 pictures only without selection by name or size for example my folder is /sdcard /DCIM/camera/ I want 3 pictures from it to /sdcard using a Linux command it’s possible? …

Total answers: 1

How can I install Java 8 on Debian 12 (bookworm)?

How can I install Java 8 on Debian 12 (bookworm)? Under Debian 11, we typically use OpenJDK from adoptopenjdk.net. This organization will no longer provide new releases: https://adoptopenjdk.jfrog.io/ui/native/deb/dists/ Is there a way to install Java 8 JDK (not the runtime) on a Debian 12? Asked By: realtebo || Source I am using the distrubution offered …

Total answers: 2

How do I install and setup OpenJDK in Ubuntu from Snapcraft?

How do I install and setup OpenJDK in Ubuntu from Snapcraft? How is OpenJDK installed from snap so that javac and java are available from the CLI? nicholas@mordor:~$ nicholas@mordor:~$ snap list Name Version Rev Tracking Publisher Notes bare 1.0 5 latest/stable canonical✓ base chromium 113.0.5672.126 2477 latest/stable canonical✓ – core18 20230503 2751 latest/stable canonical✓ base …

Total answers: 1

Get output from Bash in Java?

Get output from Bash in Java? I have this this Java code that works: public class GetNumberOfFiles { protected long GetNumberOfFilesMethod(String folder){ try { Process p = Runtime.getRuntime().exec(new String[]{"bash", "-c", "cd " + folder + "&& find . -type f | grep :*.txt "}); BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream())); return stdInput.lines().count(); } catch (IOException …

Total answers: 1

Lost java binary versions and unable to restore them with jre or jdk

Lost java binary versions and unable to restore them with jre or jdk After uninstalling oracle java I lost java command and java –version throws error java order not found I’m supposed to have openjdk-8-jre and openjdk-8-jdk and same for openjdk-11-jre and openjdk-11-jdk. I tried to uninstall and reinstall them in order to restore configuration …

Total answers: 1

Confused about java -version

Confused about java -version For every program/utility on Unix, I would type the name of the program followed by –version to check its version, like so program –version If I understand correctly, the double dash — is used to specify a single option named version instead of -version, which would mean 7 options v,e,r,s,i,o,n. Why …

Total answers: 1

How can I figure out which package currently provides a command?

How can I figure out which package currently provides a command? I’m trying to run a Java program and I’m getting the error "xxx has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0" However, …

Total answers: 1

Manually install fontconfig, without root, for Java

Manually install fontconfig, without root, for Java While installing Jenkins on a server without root access, I get the following: AWT is not properly configured on this server. Perhaps you need to run your container with "-Djava.awt.headless=true To bypass it, two things must be fixed. One is to run with export JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true" as an environment …

Total answers: 1

Finding a program running as AppImage

Finding a program running as AppImage In order to launch it from java with some command-line parameters, I’m trying to localize programmatically a certain application ran as AppImage. In my case it is the MuseScore application. I installed it with the command ./MuseScore*.AppImage install. I first tried from a terminal to localize that application using …

Total answers: 3

Does Java Binary Kernel Support work already?

Does Java Binary Kernel Support work already? Is this already available in Ubuntu? https://docs.kernel.org/admin-guide/java.html Has someone tried it or is it still just a theory? Asked By: Hiran Chaudhuri || Source BINFMT_MISC has been part of linux for a very long time. Unix has a long history of allowing any file to be treated as …

Total answers: 2