Questions tagged [java]

Widely-used object-oriented programming language, emphasizing portability. Questions about programming with Java are off topic and should be asked on stackoverflow.com.

Filter by
Sorted by
Tagged with
3 votes
3 answers
4k views

Freemind on Windows: EXE wrapper not recognizing OpenJDK

I am trying to run Freemind 1.0.1 on a Windows 10 machine with OpenJDK. When I try to launch it from the Start menu or try to open a .mm file in File Explorer, I get an error message saying This ...
user149408's user avatar
  • 1,100
1 vote
2 answers
5k views

FFMPEG : create a looping video with specific time

I'm trying to convert a GIF file into video and merge the output video with an audio file, so the final result will be a video + audio. public static String makeVideo(String inputGifPath, String ...
Mouaad Abdelghafour AITALI's user avatar
4 votes
2 answers
5k views

Android Studio 4.1 Stuck at loading screen in Mac

My Android Studio has been stuck at loading screen since yesterday. X_X What I have tried: Restarting computer. Clearing junk files and logs. Completely uninstall and then Reinstalling AndroidStudio....
Zenko's user avatar
  • 141
0 votes
1 answer
381 views

How to tell VS Code where Java is installed?

I have installed an extension that requires Java (the Veracode Greenlight extension). Now every time I open VS Code, it shows me a prompt that reads: To use the "java" command-line tool you ...
Tom's user avatar
  • 143
0 votes
1 answer
218 views

How to include java inside an application setup

I have created a java application. I have used Launch4J to create exe and InnoSetup to create the setup file for windows. Whenever I'm running my application on other system which has no java(pre-...
Anil Chaurasiya's user avatar
0 votes
0 answers
46 views

Cannot execute downloaded file from script

I downloaded a jdk7 tarball to test parity with some old software during an upgrade. When I unpacked it I of course got a bunch of quarantined files. After not finding a way to remove the quarantine ...
Gus's user avatar
  • 111
0 votes
1 answer
1k views

VLC gets java headless error on Blu-ray discs

I have been using VLC for a long time, watching Blu-rays but unable to access the menus due to a "Java not found" type of error. My environment is Fedora 32, x64 I installed the library ...
John W's user avatar
  • 143
0 votes
2 answers
224 views

Why is Windows running low on memory and crashing all my applications?

I have to be quick in writing this because my web browsers keep crashing on me with memory error codes! I can't even install Java because the installer throws some kind of memory error as well. I took ...
katie1245's user avatar
  • 101
0 votes
1 answer
1k views

CPU spikes up to more than 1000% of java when building in android studio. Mac shuts down while this happens

It's been 2 weeks now and I have been trying to find the root cause of this. Configuration: 16GB - 256GB - 15 inch Macbook Pro 2019, 2.4 GHz with 8-Core Intel Core i9 - macOS Catalina - Android Studio ...
Luis Alonso Paulino's user avatar
0 votes
1 answer
171 views

linux - issues running java applications / issues launching flashtool

i'm trying to use the unzipped http://www.flashtool.net/downloads.php folder for rooting phones, but when I sudo ~/FlashTool/FlashTool & the console outputs Error: dl failure on line 604 Error: ...
windowswonderer's user avatar
0 votes
0 answers
738 views

Java application run from task scheduler stops working every second hour

Currently there is no way i can set up the the java application as a Windows Service, so i have a Task scheduler set up, with the following settings. General - Run whether user is logged in or not ...
Tomato's user avatar
  • 1
0 votes
1 answer
2k views

How to use sudo update-alternative for java installation on Ubuntu 18.04?

I am trying to install Oracle JDK on ubuntu 18.04. I am using the command sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-14.0.2/bin/java 1 but this command does nothing. But it ...
parth shukla's user avatar
1 vote
1 answer
1k views

How to use vscode-java v0.65.0 with older java jdk<11 (64bit) or with any compatible jdk at all (32bit)?

32bit and 64bit This question is tailored for those who do some research on how to use an older java than java 11 (e.g., Java 8) on vscode-java, thus for those who do not run into the error of "...
questionto42's user avatar
  • 2,267
0 votes
1 answer
78 views

mapping two case classes in scala on Lagom

I am a beginner with scala/Lagom, can someone help me with the following issue : I am trying to creat an Api for fields of products, in order to do that : I need to map case classes extending to a ...
Reda Arté Kejji's user avatar
1 vote
0 answers
39 views

Estimated size izpack

I would like to display the size of my application(I use to create the installer izpack) in Control Panel > Programs and Features: The solution I found is to set the estimated size statically in ...
Yosra Gouaiel's user avatar
2 votes
1 answer
4k views

How to remove the 'PS' message that appears in the terminal after running code in VS Code

I am currently taking Java lessons and I am using VSCode. I wrote this code: class Simple{ public static void main(String args[]){ System.out.println("Hello World!"); } }...
OmarZalat's user avatar
0 votes
1 answer
1k views

64-bit Java not working

I have been trying java -d64, but get Error: This Java instances does not support a 64-bit JVM. Please install the desired version. I know I installed the 64-bit version, and when I go to Control ...
formicaman's user avatar
0 votes
1 answer
194 views

Is it possible to read off CMD without user input?

I was wondering if there was any way to read straight off CMD on windows without having inputs from a user using Java. I'm running a Minecraft server and want to create certain types of automatic ...
user13576487's user avatar
1 vote
2 answers
945 views

difficulty running some old java applets, I have java 8 and appletviewer

I am trying to run some old java applets from the old book "Algorithms and Data Structures In Java" by Robert LaFore. https://sites.fas.harvard.edu/~cscie119/resources/lafore/ or https://cs....
barlop's user avatar
  • 23.8k
0 votes
0 answers
35 views

Java dependency

I was hoping someone could help out with this. Last night I got an update notification on my computer advising that there was a newer version of Java available, when I selected to update it, I was ...
SupGen's user avatar
  • 193
0 votes
0 answers
332 views

FileSystemWatcher does not hear events when application changes files

I have a Powershell Core script that uses FileSystemWatcher to listen for changes in a directory recursively. It behaves as expected when a user uses Windows Explorer or a shell to add or modify a ...
Charlweed's user avatar
  • 255
1 vote
1 answer
2k views

IntelliJ IDEA or Pycharm not opening on Alpine Linux

So I am trying to migrate to Alpine Linux; however, I cannot seem to install two IDEs, Pycharm and IntelliJ IDEA. They are both throwing me the same error whenever I attempt to run either pycharm.sh ...
user avatar
1 vote
1 answer
2k views

AuthorityKeyIdentifier missing from keypair generated with java keytool

Background: I'm trying to set up a QA/test environment for a system comprising (1) a web application configured for HTTPS connections, and (2) a Python-based client application running on a mobile ...
JDM's user avatar
  • 123
1 vote
1 answer
668 views

Specific user can't run Spring Boot application on port 443, but root can do it

I can't run a Spring Boot application on CentOS under a specific user on the port 443 (or 433 it doesn't matter). Caused by: java.net.SocketException: Permission denied Root can do it. When I tried ...
gogagubi's user avatar
  • 111
1 vote
0 answers
755 views

STS (Spring Tool Suite) doesn't autocomplete method parameters if they're instantiated using "var"

I'm currently using STS 4.6.1.RELEASE and JDK 11.0.7 with Content Assist enabled. I can reference attributes with var, e.g. in the code var customer = new Customer(); I can begin typing "cus..." and ...
Rasshu's user avatar
  • 111
0 votes
0 answers
164 views

Software asking for obsolete version of Java (6) on macOS 10.15

I have a friend that is trying to run the following software (cmap) https://cmap.ihmc.us/cmaptools/cmaptools-download/ She gets prompted to install Java SE 6 to run the software. She last used it in ...
SightBack's user avatar
2 votes
1 answer
4k views

Minecraft server RAM allocation not working as expected

I am hosting via Strato V server a modded Minecraft server 1.12.2. I allocated about 8 to 10 GB to JVM but when I check with htop it says that only about 4.2 GB RAM are used for the whole system. I ...
dev_clavis's user avatar
0 votes
1 answer
2k views

JDK 11 windows installation Error: opening registry key 'Software\JavaSoft\Java Runtime Environment'

After installation of JDK 11 and setting of the path in environment variable In a command prompt > java -version returns: Error: opening registry key 'Software\JavaSoft\Java Runtime Environment' ...
Mritunjay's user avatar
1 vote
1 answer
651 views

I've been trying to open a jar file but every time I do so It tells this jar file could not be launched

java version "1.6.0_65" Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716) Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode) Joses-iMac-5:~ luissoto$ java -jar/...
pax7yy's user avatar
  • 11
1 vote
0 answers
247 views

Why can't my threads fork?

I recently started renting a VPS, it's running Ubuntu Server 18.04.4 LTS on 8GB of RAM. I only ever used it to run a small (SpigotMC) Minecraft server. When the JRE for the server is not running all ...
grinsekrokodil's user avatar
0 votes
1 answer
316 views

Keytool -import ssl certificate from personal CA on jboss 4.0.5 server

What i am trying to do for a few days already, and it drives me crazy, is to make a java website based on jboss 4.0.5 server to use ssl certificate(https). For this I'm following these instructions: ...
sTx's user avatar
  • 99
7 votes
3 answers
6k views

Upgrading to macOS 10.15.4 causes “jdk-11.0.2.jdk” developer cannot be verified error

I recently upgraded my laptop to macOS 10.15.4 and now Java will not run from the command line (or anywhere else from what I can tell) I just see this error message: “jdk-11.0.2.jdk” cannot be ...
benstpierre's user avatar
0 votes
1 answer
916 views

Displaying UDP Multicast Rawvideo Stream

I have a problem while trying to capture the raw video over UDP. In my setup, I stream the webcam with FFmpeg (command line) via UDP, on the client side I use Java OpenCV, the capture line; ...
Han's user avatar
  • 11
0 votes
1 answer
1k views

Result from 'java -version' does not show in list of programs on Windows 10

Recently I have been having some issues with dependencies in a Java project that I was making. A suggested solution was to use Java 8 and not Java 11. For some reason, I cannot revert back to Java 8 ...
soki's user avatar
  • 3
0 votes
1 answer
1k views

Running Java process from Systemd with classpath

I have the following service: [Unit] Description=App After=network.target [Service] Type=simple User=root WorkingDirectory=/opt/app ExecStart=/usr/bin/java -server /opt/app/start.ini Restart=on-...
Nate's user avatar
  • 103
0 votes
1 answer
2k views

Netbeans Author Tag?

I'm using Netbeans 11, and when I create a new Javadoc tag, my default name appears in the form of: /** @author Sarah <GENERIC_EMAIL_HERE> **/ public class X {} How can I change these default ...
Sarah Szabo's user avatar
1 vote
1 answer
1k views

How can I get "Ctrl+Shift+Right/Left" to select/mark a word in Eclipse?

I'm using Eclipse 2019-12 (Java) on Windows 10 and I cannot get Ctrl+Shift+→ to select/mark a word as it do in every other program I use. The same is true for Ctrl+Shift+←... The General -> Keys ...
Ola Ström's user avatar
0 votes
1 answer
383 views

how to change download sources used for building netbeans-apache?

I have followed this guide from netbeans: build from source Unfortunately on running ant build, as it tries to download from maven central repository it uses an url that seems outdated, the new url ...
jeferson lemos's user avatar
1 vote
1 answer
5k views

Does ECHO %PATH% show the path in the wrong order in Windows?

I'm currently fighting with my IDE and usage of PATH, JAVE_HOME, etc. on Windows 7. As stated in this question: PATH variable showing different values (command prompt vs environment variables dialog ...
Asoub's user avatar
  • 73
0 votes
1 answer
424 views

How do I run a War File in confined SELinux domain on CentOS7?

I am currently working on the deployment of my Java Web Application. This application is available to me as a WAR file. My goal is that the application starts with a limited SELinux startup. This ...
mm0004's user avatar
  • 1
0 votes
1 answer
197 views

tomcat with does start with SSL arguments for JMX

I have Tomcat 8.0.23 (I know, should be upgraded) running on CentOS and I need to set up JMX with authentication and SSL. I am able to connect with SSL and with password through SSL tunnel from my ...
Leos Literak's user avatar
0 votes
0 answers
53 views

How to update existing curly brace positions in IntelliJ IDEA? [duplicate]

I've been given Java code by others which use curly braces on new lines, and I'd like them on the same line after I import the file without having to change them line-by-line? How do I do it? ...
Mike Chase's user avatar
0 votes
1 answer
2k views

How do I run Java from a usb key by using JPortable and its launcher?

I downloaded both the Java runtime environment and the JPortable launcher from PortableApps.com in order to run Java and edit projects by launching the IDE from my USB key without the need of ...
franz1's user avatar
  • 435
0 votes
1 answer
193 views

How do I uninstall Java7 from macOs

After April 2015, Oracle will no longer post updates of Java SE 7 to its public download sites. I am inclined to remove Java 1.7 and the JDK permanently from my Mac, if only I knew how to accomplish ...
bbaassssiiee's user avatar
  • 1,415
2 votes
1 answer
225 views

Bat file allowing for java updates with in the path

I have bat file that currently contains "C:\Program Files (x86)\Java\jre1.8.0_231\bin\java.exe" -jar This issue is ever time the VM gets updated with new version of Java the bat file fails See ...
Chris's user avatar
  • 21
3 votes
1 answer
24k views

Java JDK, version of compiler is not compatible with Java runtime

I tried to compile a simple Hello world called with javac, but when I use the command 'java Hello', the JVM seems unable to read the bytecode. Output of 'java Hello': Error: A JNI error has ...
Luigi Guerrera's user avatar
0 votes
1 answer
336 views

WIN10 Environment path variables not recognized when opening terminal from background context

I installed Java RE and Git, for example, and made sure their binaries were added to Environment Path Variables under both User and System variables. When I launch a command prompt from the taskbar, ...
Matheus Leão's user avatar
0 votes
1 answer
950 views

Why do WinRAR and 7-Zip see different files when opening the same compressed file?

Example file jdk-7u67-windows-x64.exe is ~129MB (Oracle account is needed to download) When using WinRAR, it shows the total is 29,170,176B: jre.msi (~27.7MB) jre1041.MST jre2052.MST However, ...
min's user avatar
  • 103
0 votes
0 answers
166 views

What JREs are available for end-users after Java SE 8 on Windows?

Historically it's always been possible to obtain the JRE from Sun and then Oracle. But ever since Java SE 9, Oracle has only provided updates for version 8. When I build a program on a later JDK in ...
Zhro's user avatar
  • 877
0 votes
1 answer
4k views

How to specify JRE path for dbeaver on MacOS

I'm trying to setup dbeaver with prestosql driver on MacOS, and it shows me the following error unable to find valid certification path to requested target I think it's because dbeaver is using a ...
zyxue's user avatar
  • 101

1
3 4
5
6 7
48