jdk: Java jar crashes when trying to load a window, no error message

Every time I run a Java application that has a user interface, it crashes as soon as the window opens. The window is blank white without content and is displayed for approximately 100 milliseconds. There are no error messages when I run it with java -jar . The program simply seems to end simply without warning or anything. It is a very strange behavior.

I am running Java 1.8 x64 bit. I tried jarfix but it was in vain. This is very frustrating since I don't have error messages to share and I can't run anything with a windows system.

My JAVA_HOME is not configured. The road to bin/ File in my JDK is on my way.

I have tried reinstalling Java, using different versions, none has worked so far.

Why does jdk LockSupport use unsafe.putObject to configure the blocker?

I see that the LockSupport class uses UNSAFE.putObject to configure the blocker, I understand what this method means, but the confusing thing is why not use a setter directly.

java – Why did JRE disappear from JDK 11?

I am an ordinary cat who studies Java alone

While reviewing Java from a basic part,
It doesn't matter how much I try, but I couldn't find the JRE (Java Runtime Environment) folder in JDK 12.0.2

I realized that JRE is no longer offered, but only JDK and users who need a runtime environment can use & # 39; jlink & # 39; to create smaller custom runtimes through the Java 11 release note

but I'm still curious about this, so I'm here to ask two questions.

  • Is there any particular reason that JRE is no longer offered?

  • If there was any benefit to creating a custom runtime environment with jlink to use JRE, which was offered up to Java
    10?

Thank you for reading the article even though it was written in poor English.
You have a good day

Java 11 release note

package management: JRE / JDK cannot be installed

I get the following results
I've already tried sudo apt-get update

$ sudo apt-get install default-jre
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 default-jre : Depends: default-jre-headless (= 2:1.8-59ubuntu1) but it is not going to be installed
               Depends: openjdk-8-jre but it is not going to be installed
 openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


$ sudo apt-get install openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree       
Reading state information... Done
openjdk-8-jre-headless is already the newest version (8u222-b10-1ubuntu1~16.04.1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  ca-certificates-java
The following NEW packages will be installed:
  ca-certificates-java
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 12.0 kB of archives.
After this operation, 41.0 kB of additional disk space will be used.
Do you want to continue? (Y/n) y
Err:1 http://in.archive.ubuntu.com/ubuntu artful/main amd64 ca-certificates-java all 20170930
  404  Not Found (IP: 103.123.234.254 80)
Err:1 http://in.archive.ubuntu.com/ubuntu artful/main i386 ca-certificates-java all 20170930
  404  Not Found (IP: 103.123.234.254 80)
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/c/ca-certificates-java/ca-certificates-java_20170930_all.deb  404  Not Found (IP: 103.123.234.254 80)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

java – I can't access oracle jdk through the command line or the terminal in Linux mint. How can I use sudo apt-get install at that time?

I am in one of the countries where Oracle has a restriction. Whenever I want to install or update a program in Linux (I have Linux mint) I face the error that says "JDK cannot be downloaded". I didn't know that the system needs to update jdk to download and install pycharm and texlive, but it does. and although it must be done through the terminal (sudo apt-get install) I cannot configure the vpn browser to access the Oracle website.
I would really appreciate it if someone who knows the answer or has had the same problem and has overcome it, makes any suggestions.

Software installation: how is the best way, for Jmeter to find the JDK or Java

I have jdk installed, in /usr/lib/jvm/jdk1.8.0_212/

I want to run Jmeter, but this one find java in
./jmeter: 128:[: Illegal number:
./jmeter: 192: ./jmeter: / usr / bin / java / bin / java: not found

ENV
JAVA_HOME = / usr / bin / java

PATH = / usr / local / sbin: / usr / local / bin: / usr / sbin: / usr / bin: / sbin: / bin: / usr / games: / usr / local / games: / usr / lib / jvm /jdk1.8.0_212/bin:/usr/lib/jvm/jdk1.8.0_212/bin/java:/usr/bin/java "

How can i fix it?

Thank you.

Macos: Allow the Java 1.7 application to run without displaying the message "Install Legacy Java SE 6" and JRE no JDK

I have the task of implementing an old Eclipse RCP application (Java 1.6) with a minimum or no change in the code in macOS Mojave 10.14 64bit. The application has not been implemented in a long time, the last target was Mac OS X Snow Leopard 10.6.

The main problem I have is that the best results (full set of features) were obtained by changing the build level of the application to Java 1.7, and by circumventing this error (where Mac complains, Java is not present when the JDK or JRE 1.7 or 1.8 was in fact correctly installed).

Mac error message about the lack of Java when Java is not missing

Error report:

Thanks to this hack:

It only works if you have the JDK installed, not the JRE. However, since this is a corporate shipment, the customer would never accept that the prerequisite is the JDK when it should be the JRE.

As you can see in my comment on the answer, I tried a bastard application of this solution in the JRE by modifying what I thought of the equivalent files and paths, but this did not work.

So, to summarize the situation

What I have

The application will run if:

  1. Install the JDK

  2. Apply this: https://apple.stackexchange.com/a/211033/324385

What I would like

For the application to start when there is:

  1. Only installed JRE 1.7 or 1.8

  2. Applied X fix what you suggest

jdk – How to create or use a portable java installation

So this is quite simple, I am running a set of tools in Windows, however, to avoid problems with the lack of installation in Java, I have included in my installation its own jre folder that in Windows allows me to simply run a Java virtual machine with .bat and run my program.

My question, can I do the same in linux without java? I know that my program works well in ubuntu as long as I have java installed, but now I have problems with certain computers with linux that do not have java installed at all. How would I call the java folder inside my program to run a virtual machine to run the .jar? Would it be the same process? I already have a .sh that opens java and runs my virtual machine, it starts with a java command followed by -jar. Example: java -jar -xmx1024m ./myprogram.jar.

How would I change the previous command to use a portable java or java installation inside the folder of my program? How can I create a portable java in Linux too? I'm pretty sure that the jre folder that I have that works in Windows will not work in Java.

Uninstall oracle jdk 8 mac

DOWNLOAD THE LINK ===> https://tinyurl.com/y7cc995b

KW:
Uninstall oracle jdk 8 mac
uninstall jdk 8 mac
Uninstall java 8 mac

Latest downloads:
mac win 10 bootcamp
Microsoft rdp beta for mac
install java mac os x el capitan …

Uninstall oracle jdk 8 mac

apt – Why did Oracle suspend the PPA of the Oracle Java (JDK) 8 installer?

I tried installing Oracle jdk 8 using

sudo add-apt-repository ppa: webupd8team / java

But it is not working.

I searched for the problem and found that "The Oracle JDK license has changed for versions as of April 16, 2019." And "Oracle Java (JDK) 8 Installer PPA (DISCONTINUED)"

So I installed the OpenJdk8.

But why did Oracle cancel the Oracle 8 installer's license?