Questions tagged [jdk]

The Java Development Kit (JDK) is a set of utilities that allow one to create software systems for the Java platform. It consists of several tools and libraries.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Installed and functional JDK declared 'defective' by LibreOffice

There are two accounts on my MacbookPro (10.13 ‘High Sierra’), users A and B. Both have admin privileges. LibreOffice Package 7.4.3.2 was installed with install option 'for all users' and has worked ...
Fred Sculla's user avatar
0 votes
0 answers
224 views

Apache NetBeans 12.3 on macOs 12 crashes on startup

Java(TM) SE Runtime Environment (build 18.0.2.1+1-1) is installed. Apache NetBeans 12.3 is installed. I launch it and it gets as far as "Done loading modules." before throwing in the towel ...
jon.oneil's user avatar
1 vote
1 answer
123 views

How to open java jfr file directly with Windows open with?

By associating *.jfr file to open with jmc.exe version 8.2.0 does not directly work in Windows 10. jmc.exe opens but not the with clicked jfr file. How to make one click open to work with jfr?
Tonecops's user avatar
1 vote
1 answer
1k views

Installing javaws through SDKMAN on MacOS to access a KVM remote host?

SDKMAN should install the full JDK, right? Today I run sdk install java 18.0.1.1-open to install the OpenJDK. After resetting my Terminal, I still can't access javaws: The operation couldn’t be ...
Martin Braun's user avatar
0 votes
1 answer
787 views

How to overcome "jni error has occurred" after Minecraft and Java update in Windows 10?

I updated from Minecraft 1.16.2 to the latest version of Minecraft at this time which is 1.18.1, opened the Minecraft Launcher client, selected "Latest release 1.18.1" from the drop down, ...
Nathan's user avatar
  • 11
0 votes
0 answers
419 views

Could not start the game server

I tried to run the game as explained here... https://www.minecraft.net/en-us/download/server But got this error: # java -Xmx1024M -Xms1024M -jar server.jar nogui Error: LinkageError occurred while ...
shantanuo's user avatar
  • 2,703
1 vote
1 answer
1k views

How to install Java 8 on Kali Nethunter

Guys I need to install jdk 8 for my programs to work better, many programs do not support the version higher than Java 8 so I want to install Java 8 to run better, I tried to install via apt-get, but ...
Dakota's user avatar
  • 153
0 votes
2 answers
346 views

Problems launching java programs in Windows Command Line after Java Update 281

After updating Java 8 (update 281) yesterday (2021-02-15) I could no longer use the Single-File Launch in the Windows Command Line. Prior to this I had no problems using this feature but now I get the ...
Guest2578's user avatar
1 vote
0 answers
76 views

Cannot compile jetbrains intelij idea community edition on alpine linux

Amazon JDK has an Alpine Linux version, and I downloaded JetBrains's IntelliJ community source code. The ant build stuck at Failed to complete gradle setupJdks setupKotlinPlugin and the ...
Xetra Forest - Han Feng's user avatar
5 votes
3 answers
728 views

On Fedora, why do I have to install a devel package to get javac?

From what I've heard 'JDK' stands for Java Development Kit, and on Debian based systems you install default-jdk to get a running javac. However on Fedora (at least the recent ones) installing java-...
frans's user avatar
  • 1,037
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
  • 1,715
0 votes
1 answer
1k 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
6 votes
3 answers
5k 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
173 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,383
0 votes
1 answer
120 views

installed jenkins on windows ec2 instance

I have installed JDK 8 and Jenkins on Windows EC2 instance I don't see any errors in the logs, but when I go to http://localhost:8080/ , I am getting a page cannot be displayed error Starting C:\...
Daniel's user avatar
  • 125
0 votes
1 answer
118 views

JVM Failed to start while installing java

I installed java, and then realized that it was the wrong version, so I tried reinstall Java, but mid installation it said "JVM Failed to start". I tried to install JDK 1.8.0_221. Any help would be ...
big papa's user avatar
1 vote
0 answers
877 views

Unable to locate plugin type for IfFileName

When i try to install sonarqube on windows 10, elasticsearch give me this error: wrapper | --> Wrapper Started as Console wrapper | Launching a JVM... jvm 1 | Wrapper (Version 3.2.3) http://...
requizm's user avatar
  • 11
0 votes
0 answers
361 views

Java jar crashes when it tries to load a window, no error message

Whenever I run a Java application that has a user interface, it crashes as soon as the window opens. The window is blank white with no content and shown for about 100 milliseconds. There are no error ...
quintin's user avatar
0 votes
1 answer
499 views

Change Registry Value for Specific Application Lifecycle Only

Is it possible to override the value of an arbitrary Windows registry key for a specific application lifecycle? My hope is that a temporary registry value can be set with the command line, so that I ...
TiberiumFusion's user avatar
2 votes
2 answers
3k views

Cant resolve PATH issue in Cordova

Hi i'm trying to build an app in Cordova yet i have hit a road block. Can someone please help me with pointing everything to the right PATH. I run the following commands no problem. cordova create ...
john moore's user avatar
0 votes
2 answers
8k views

Unable to download Oracle JDK 8 using Wget command

I have been trying to download "jdk-8u211-linux-x64.tar.gz" from https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html? with the below command. The file gets downloads ...
mansing shinde's user avatar
1 vote
1 answer
313 views

Why don't I see my "Hello World" code on Netbeans?

I am new to Java, but how come I do not see my code on Netbeans? public class HelloWorld { public static void main(String[] args){ System.out.println("Hello World!"); } }
user1061979's user avatar
0 votes
1 answer
429 views

How can I update JRE from JDK1.8.0_212 to 12.0.1?

I have already tried over Preferences-Installed JRE and I get information from Eclipse Target is not a JDK Root. Java executable was not found I'm working with Eclipse 4.12.0 on the MacOS Mojave....
leccepen's user avatar
1 vote
0 answers
23 views

Can I move unsupported utilities—like JDK8—into homebrew?

Maybe I'm clutching at straws and/or misunderstanding the whole Homebrew idea, but: I need JDK8 in homebrew, which isn't available anymore to Homebrew due to some licensing issues [e.g., https://...
user3445853's user avatar
0 votes
1 answer
4k views

Windows 10 shows wrong Java version

On newly installed windows 10 64bit, I did install first, Oracle JDK 12, then installed Oracle JDK 8 update 211, and finally installed Oracle JDK 11. So now in the C:\Program Files\Java\ there exits ...
Amir-Mousavi's user avatar
9 votes
2 answers
2k views

Android Studio 3.6 canary 4 - Gradle throwing DefaultProjectSyncIssues exception

I updated Android Studio 3.6 Canary 3 to 3.6 Canary 4 few hours ago, and just moments ago I tried to open a project, but it didn't even configure when I opened the project. I already had Gradle 3.6.0-...
The Badak's user avatar
  • 193
0 votes
1 answer
695 views

Using Oracle JDK with Nix package manager

Can somebody point me to the correct steps to install Oracle JDK with Nix package manager? I tried the following so far: https://nixos.org/nixos/packages.html#jdk - oracle is not there nix-env -i ...
qsd's user avatar
  • 1
0 votes
1 answer
1k views

SQL Developer Can't locate Java on Mac OS

I have downloaded Oracle SQL Developer and when I attempt to run it i get the following message: These are the java settings on my computer: java -version: java version "12.0.1" 2019-04-16 "/Library/...
xupv5's user avatar
  • 121
2 votes
2 answers
4k views

Java version issue "Could not determine java version from '12.0.1'"

I am trying to code a minecraft mod, but that is not the problem. I have to extract a folder using the gradlew command: gradlew setupDecompWorkspace The problem: Every time I try to perform this ...
TomCoding's user avatar
0 votes
1 answer
2k views

weblogic server installation issue

I got my weblogic installation file here: https://www.oracle.com/technetwork/middleware/weblogic/downloads/wls-main-097127.html I was able to open my Admin command prompt (Win key+R, type cmd and ...
Dbomb's user avatar
  • 1
0 votes
1 answer
1k views

JavaFX Application (JDK and JRE 8) Issue Greenfoot Ubuntu 18.04

I recently installed JRE 8 and JDK 8 to use Greenfoot in Ubuntu 18.04. I know the majority of my Java install works (I can write code in atom and run it with scripts). However, when I try to launch ...
Tomahok's user avatar
3 votes
1 answer
2k views

What is the minimal installation possible in order to run a .jar Java file?

I wish to run a small utility ("Nightly Updater", NU) for a game called Simutrans. NU comes in the form of a .jar file and the only system requirement for NU is Java 9. I have Java 8 installed in my ...
Matthew's user avatar
  • 216
7 votes
2 answers
5k views

Automatic updates to free OpenJDK on Windows?

How do I install or setup a free JDK such as OpenJDK on Windows 10 in such a way that it will automatically hint about or install security updates to the JDK? Is there some distribution except for ...
tomsv's user avatar
  • 373
1 vote
1 answer
723 views

IntelliJ doesn't see JDK in Linux Mint

I installed IntelliJ 2019.1 on Linux Mint, but it doesn't recognize the JDK. I'm used to it automatically detecting it. I have tried: Manually adding the JDK.  I go to Project Structure and try to ...
Hadya's user avatar
  • 11
2 votes
1 answer
13k views

Cordova, Requirements check failed for JDK 8 ('1.8.*')! Detected version: 11.0.2 on Mac OS

I'm trying to run simple project with cordova on MacOS Mojave 10.14.4: screenshot of error I tried to change the environment variable JAVA_HOME in several ways: export JAVA_HOME="`/usr/libexec/...
user3057645's user avatar
1 vote
2 answers
5k views

What's the fitting Java Runtime for files compiled by JDK 12.0.1?

I have just updated my JDK to version 12.0.1. Compiling works like a charm, but I cannot run the files anymore. However, I couldn't find a fitting JRE (like JRE 12 or so). As it seems, there is no ...
Islion's user avatar
  • 11
2 votes
0 answers
465 views

gradlew command fails in Android Studio terminal

I'm trying to run gradlew in an Android Studio terminal to setup SonarQube however I get error: ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk-11 .0.2\bin. Please set the ...
pinglock's user avatar
  • 121
0 votes
0 answers
3k views

Tomcat started / stopped with error, return code 1

" Make sure you have java JDK or JRE installed and the required ports are free Check the ""/xampp/tomcat/logs"folder for more information " Tell me in detail plz.
govind pathak's user avatar
1 vote
2 answers
3k views

How to change java jdk version?

I want to install the new 11.0.02 java jdk. I tried to use this link: first source and afterwards this: second source Now, using cmd, I run these two commands: java -version ==> the older version ...
user6394019's user avatar
1 vote
1 answer
2k views

Invoking wget from java (runtime.exec) hangs and limits the download to a specific file size (while same with curl does not)

Issue details I am trying to invoke wget from java to download a file but I keep hitting a weird issue where the file size will be capped. For example, when issuing "wget https://speed.hetzner.de/...
Jbezos's user avatar
  • 13
1 vote
0 answers
81 views

Java application not picking up app.properties on Widows 10

there is an application that needs certification to work fine, in Linux, there is no problem but I want to run this on a windows machine. I have Installed Java on my windows 10 system. then I ...
Arash's user avatar
  • 726
2 votes
2 answers
3k views

Can't start Android Studio

So I've been having some problems lately with Android Studio (Gradle not syncing, can't target JDK, etc..). So I completely uninstalled and reinstalled both Android Studio and JDK. But now when I try ...
Omar Ashraf's user avatar
7 votes
3 answers
49k views

Changing JAVA_HOME in cmd temporarily doesn't change PATH temporarily in windows

I hava defined JAVA_HOME to jdk11 in users' environment variable and PATH contains %JAVA_HOME%/bin in it. Now I want to switch to jdk8 temporarily in command-prompt (cmd) by changing JAVA_HOME to ...
Shubham Raj's user avatar
1 vote
2 answers
7k views

How to change the color of NetBeans cursor?

I recently tried the Darcula LAF theme for NetBeans 8.2 and uninstalled it. Everything seems fine except the fact that the cursor in the NetBeans has now tured to white, which makes it invisible/...
Daniel's user avatar
  • 11
9 votes
3 answers
12k views

Are there performance differences between OpenJDK and Oracle?

Oracle has recently decided to start charging for commercial use of their JVM. Our team has started to switch over to using OpenJDK instead, and are finding everything seems to be working fine, ...
Brad Parks's user avatar
  • 2,838
3 votes
1 answer
4k views

Fedora 28's "JDK" is missing the compiler, javac; How do I properly install it?

I installed a fresh download of Fedora Server 28 and it didn't come with Java. Fine. I ran yum list, and found some packages to install and installed all the most suitable looking JDK packages. ...
Richard T's user avatar
  • 457
0 votes
1 answer
173 views

How do I get a standalone (no install necessary) JDK 8 for Java coding in IDE on Mac?

I am using a public computer and I want to do some Java coding on it. I was able to download IntelliJ and I was able to copy it to my desktop and run it, but I was not able to install the JDK due to ...
Sacha T Red's user avatar
2 votes
1 answer
2k views

Run artifact (.jar) in Eclipse after Maven build success

I'm working on a Maven project, and after resolving many configuration problems, finally I am able to build the project successfully in Eclipse. After selecting maven install and seeing build success, ...
Tina J's user avatar
  • 569
0 votes
1 answer
55 views

Cannot use command promt [duplicate]

Mt command prompt will not run any default windows commands because I changed my PATH to jdk (Java Development Kit). Is there a way to fix this without changing the PATH back? If there isn't what ...
Eliot's user avatar
  • 1
1 vote
1 answer
469 views

Where is JAVA_HOME expanded to JAVA_HOME/jre?

We have a Tomcat 8 running on Debian 8/jessie. When starting the tomcat using service tomcat8 start we can see INFO: Java Home: /usr/lib/jvm/java-7-openjdk-amd64/jre In /etc/default/tomcat8 we ...
Yeti's user avatar
  • 181