Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

0 votes
0 answers
46 views
Heap dump using jmap for memory leak purpose
so i am trying to check memory leak currently so i did some thread dump and heap dump for it i am using jdk11 command which is `jstack` & `jmap` the `jstack` command runs well, i can see the file in `SFTP` using `Termius` when i run the jmap command, this actually run as well saying ``` Dumping heap...
so i am trying to check memory leak currently so i did some thread dump and heap dump for it i am using jdk11 command which is jstack & jmap the jstack command runs well, i can see the file in SFTP using Termius when i run the jmap command, this actually run as well saying
Dumping heap to /tmp/heap_dump_activemq.hprof ...
Heap dump file created [102526562 bytes in 0.318 secs]
when i checked the file in SFTP however it doesn't appear. when i tried to rerun the jmap command it said the file exists when i tried to move the file using mv it also said that the file or directory doesn't exist there is also sometimes this error message block when running the jmap
at jdk.attach/sun.tools.attach.VirtualMachineImpl.(VirtualMachineImpl.java:100)
at jdk.attach/sun.tools.attach.AttachProviderImpl.attachVirtualMachine(AttachProviderImpl.java:58)
at jdk.attach/com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:207)
at jdk.jcmd/sun.tools.jmap.JMap.executeCommandForPid(JMap.java:128)
at jdk.jcmd/sun.tools.jmap.JMap.dump(JMap.java:208)
at jdk.jcmd/sun.tools.jmap.JMap.main(JMap.java:114)
Devs (1 rep)
Mar 20, 2025, 09:45 AM
14 votes
4 answers
36764 views
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?
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?
realtebo (1035 rep)
Jun 26, 2023, 03:16 PM • Last activity: Mar 16, 2025, 02:46 PM
0 votes
2 answers
1091 views
Yum install not recognizing specific version of JDK package on Oracle Linux 7.9
I am trying to install jdk 1.8.0_311 using yum install. However, I am getting an error stating that there is "nothing to do" when attempting to install. I have used yum --showduplicates list jdk* to check that the package is there jdk-20-headful.aarch64 2000:20.0.1-9.el7 ol7_oci_included jdk-20-head...
I am trying to install jdk 1.8.0_311 using yum install. However, I am getting an error stating that there is "nothing to do" when attempting to install. I have used yum --showduplicates list jdk* to check that the package is there jdk-20-headful.aarch64 2000:20.0.1-9.el7 ol7_oci_included jdk-20-headless.aarch64 2000:20-36.el7 ol7_oci_included jdk-20-headless.aarch64 2000:20.0.1-9.el7 ol7_oci_included jdk1.8.aarch64 2000:1.8.0_301-fcs ol7_oci_included jdk1.8.aarch64 2000:1.8.0_311-fcs ol7_oci_included jdk1.8.aarch64 2000:1.8.0_331-fcs ol7_oci_included jdk1.8.aarch64 2000:1.8.0_341-fcs ol7_oci_included jdk1.8.aarch64 2000:1.8.0_351-fcs ol7_oci_included I then attempted to run yum install jdk1.8.aarch64-2000:1.8.0_311-fcs and I get the error "Nothing to do" yum install jdk1.8.aarch64-2000:1.8.0_311-fcs Loaded plugins: langpacks, ulninfo No package jdk1.8.aarch64-2000:1.8.0_311-fcs available. Error: Nothing to do According to the documentation, this is the correct way to install this, but it is not recognizing the package. If i do not specify the version, it defaults to a newer version (351) that I cant use. Any help is appreciated, thanks.
Howdy (3 rep)
May 7, 2023, 08:33 PM • Last activity: Oct 19, 2023, 12:58 PM
0 votes
0 answers
260 views
Exception in thread "main" java.lang.UnsatisfiedLinkError
**Context:** Trying to install Oracle WebLogic Infrastructure 12.2.1.4.0 on Oracle Linux 8.5. JDK 7 & JDK 8 are installed. **Issue:** [![Error in the console when trying to run the .jar][1]][1] [1]: https://i.sstatic.net/bFuFD.png
**Context:** Trying to install Oracle WebLogic Infrastructure 12.2.1.4.0 on Oracle Linux 8.5. JDK 7 & JDK 8 are installed. **Issue:** Error in the console when trying to run the .jar
Axel (1 rep)
Apr 27, 2022, 01:14 PM
15 votes
4 answers
143373 views
Uninstall JDK rpm to reinstall
Where do I find the JDK install to uninstall? @terdon had explained using an `rpm` type download so it would be easier to uninstall, but I cannot find it.
Where do I find the JDK install to uninstall? @terdon had explained using an rpm type download so it would be easier to uninstall, but I cannot find it.
cea (1573 rep)
Jan 23, 2014, 03:11 AM • Last activity: Oct 26, 2021, 07:02 AM
2 votes
1 answers
218 views
Install Java 10 using Oracle JDK
I have updated my system, then added a third-party PPA to Ubuntu with the following command. ``` sudo add-apt-repository ppa:linuxuprising/java ``` But this is what I got: ``` $ sudo apt install oracle-java10-installer Reading package lists... Done Building dependency tree Reading state information....
I have updated my system, then added a third-party PPA to Ubuntu with the following command.
sudo add-apt-repository ppa:linuxuprising/java
But this is what I got:
$ sudo apt install oracle-java10-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package oracle-java10-installer is not available, but is referred to by another
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'oracle-java10-installer' has no installation candidate
Can you guys help me to solve this problem?
Shanon.Saga (21 rep)
Sep 22, 2019, 03:27 PM • Last activity: Oct 10, 2021, 01:46 PM
0 votes
0 answers
1492 views
WARNING: environment variable DISPLAY is not set (netbeans)
I was trying to install Netbeans in Xubuntu. I had installed Netbeans using Snapd. ```bash sudo snap install netbeans --classic ``` I was trying to start Netbeans then I got an error which was looking like this ```bash netbeans ``` >can't find JDK (I completely don't remember the error but I had fix...
I was trying to install Netbeans in Xubuntu. I had installed Netbeans using Snapd.
sudo snap install netbeans --classic
I was trying to start Netbeans then I got an error which was looking like this
netbeans
>can't find JDK (I completely don't remember the error but I had fixed it) I had solved it this way
$which javac
/usr/bin/javac
netbeans_jdkhome='/usr/bin/javac'
Then when I try to start netbeans again I get the error.
netbeans
/snap/netbeans/50/netbeans/platform/lib/nbexec: WARNING: environment variable DISPLAY is not set
I had quick search in DuckDuckGo. I didn't search in Google for "safety". I couldn't find any related problem in DuckDuckGo. **Note** : I was using Java in Android Studio. But I couldn't find java in my system that's why I had to install it again. sudo apt-get install openjdk-16-jdk-headlessWARNING: environment variable DISPLAY is not set (netbeans) [Sam](https://stackoverflow.com/users/3246362/sam) mentioned in SO that it is X11 related issue. And my question got nothing in SO that's why I had deleted it there and asking it here as Sam mentioned in comment. I had never faced X11 issue earlier that's why I don't have any idea what I should do. [In the thread](https://software.codidact.com/comments/thread/4585#comment-13797) Celtschk said to execute export DISPLAY=:0.0, after executing that I got another issue.
netbeans
java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-16-openjdk-amd64/lib/libawt_xawt.so
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2387)
	at java.base/java.lang.Runtime.load0(Runtime.java:746)
	at java.base/java.lang.System.load(System.java:1857)
	at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
	at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
	at java.base/jdk.internal.loader.NativeLibraries.findFromPaths(NativeLibraries.java:310)
	at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:280)
	at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2392)
	at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:808)
	at java.base/java.lang.System.loadLibrary(System.java:1893)
	at java.desktop/sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:61)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:312)
	at java.desktop/sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:58)
	at java.desktop/sun.awt.PlatformGraphicsInfo.createGE(PlatformGraphicsInfo.java:36)
	at java.desktop/java.awt.GraphicsEnvironment$LocalGE.createGE(GraphicsEnvironment.java:93)
	at java.desktop/java.awt.GraphicsEnvironment$LocalGE.(GraphicsEnvironment.java:84)
	at java.desktop/java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:106)
	at org.netbeans.core.startup.Main.start(Main.java:228)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
	at java.base/java.lang.Thread.run(Thread.java:831)
I thought I am getting the error cause netbeans couldn't find JDK. So I had executed it again
netbeans_jdkhome='/usr/bin/javac'
although I still get the same error.
Unknown (1 rep)
Sep 26, 2021, 06:05 AM • Last activity: Sep 26, 2021, 06:12 AM
1 votes
0 answers
9370 views
curl: (35) Encountered end of file
First, search the avaliable java version: [root@izbp19pke6x0v6ruecuy1yz ~]# sdk list java ================================================================================ Available Java Versions ================================================================================ Vendor | Use | Version |...
First, search the avaliable java version: [root@izbp19pke6x0v6ruecuy1yz ~]# sdk list java ================================================================================ Available Java Versions ================================================================================ Vendor | Use | Version | Dist | Status | Identifier -------------------------------------------------------------------------------- AdoptOpenJDK | | 16.0.1.j9 | adpt | | 16.0.1.j9-adpt | | 16.0.1.hs | adpt | | 16.0.1.hs-adpt | | 11.0.11.j9 | adpt | | 11.0.11.j9-adpt | | 11.0.11.hs | adpt | | 11.0.11.hs-adpt | | 8.0.292.j9 | adpt | | 8.0.292.j9-adpt | | 8.0.292.hs | adpt | | 8.0.292.hs-adpt Alibaba | | 11.0.9.4 | albba | | 11.0.9.4-albba | | 8.5.5 | albba | | 8.5.5-albba Amazon | | 16.0.1.9.1 | amzn | | 16.0.1.9.1-amzn | | 11.0.11.9.1 | amzn | | 11.0.11.9.1-amzn | | 8.292.10.1 | amzn | | 8.292.10.1-amzn Azul Zulu | | 16.0.1 | zulu | | 16.0.1-zulu | | 16.0.1.fx | zulu | | 16.0.1.fx-zulu | | 11.0.11 | zulu | | 11.0.11-zulu | | 11.0.11.fx | zulu | | 11.0.11.fx-zulu | | 8.0.292 | zulu | | 8.0.292-zulu | | 8.0.292.fx | zulu | | 8.0.292.fx-zulu | | 7.0.302 | zulu | | 7.0.302-zulu | | 6.0.119 | zulu | | 6.0.119-zulu BellSoft | | 16.0.1.fx | librca | | 16.0.1.fx-librca | | 16.0.1 | librca | | 16.0.1-librca | | 11.0.11.fx | librca | | 11.0.11.fx-librca | | 11.0.11 | librca | | 11.0.11-librca | | 8.0.292.fx | librca | | 8.0.292.fx-librca | | 8.0.292 | librca | | 8.0.292-librca GraalVM | | 21.1.0.r16 | grl | | 21.1.0.r16-grl | | 21.1.0.r11 | grl | | 21.1.0.r11-grl | | 21.1.0.r8 | grl | | 21.1.0.r8-grl | | 21.0.0.2.r11 | grl | | 21.0.0.2.r11-grl | | 21.0.0.2.r8 | grl | | 21.0.0.2.r8-grl | | 20.3.2.r11 | grl | | 20.3.2.r11-grl | | 20.3.2.r8 | grl | | 20.3.2.r8-grl | | 20.3.1.2.r11 | grl | | 20.3.1.2.r11-grl | | 20.3.1.2.r8 | grl | | 20.3.1.2.r8-grl | | 19.3.6.r11 | grl | | 19.3.6.r11-grl | | 19.3.6.r8 | grl | | 19.3.6.r8-grl | | 19.3.5.r11 | grl | | 19.3.5.r11-grl | | 19.3.5.r8 | grl | | 19.3.5.r8-grl Java.net | | 18.ea.4 | open | | 18.ea.4-open | | 18.ea.3 | open | | 18.ea.3-open | | 18.ea.2 | open | | 18.ea.2-open | | 18.ea.1 | open | | 18.ea.1-open | | 17.ea.29 | open | | 17.ea.29-open | | 17.ea.28 | open | | 17.ea.28-open | | 17.ea.27 | open | | 17.ea.27-open | | 17.ea.26 | open | | 17.ea.26-open | | 17.ea.25 | open | | 17.ea.25-open | | 17.ea.7.lm | open | | 17.ea.7.lm-open | | 17.ea.3.pma | open | | 17.ea.3.pma-open | | 16.0.1 | open | | 16.0.1-open | | 11.0.11 | open | | 11.0.11-open | | 11.0.10 | open | | 11.0.10-open | | 11.0.2 | open | | 11.0.2-open | | 8.0.292 | open | | 8.0.292-open | | 8.0.282 | open | | 8.0.282-open | | 8.0.265 | open | | 8.0.265-open Mandrel | | 21.1.0.0 | mandrel | | 21.1.0.0-mandrel | | 20.3.2.0 | mandrel | | 20.3.2.0-mandrel Microsoft | | 16.0.1.9.1 | ms | | 16.0.1.9.1-ms | | 11.0.11.9.1 | ms | | 11.0.11.9.1-ms SAP | | 16.0.1 | sapmchn | | 16.0.1-sapmchn | | 11.0.11 | sapmchn | | 11.0.11-sapmchn TravaOpenJDK | | 11.0.9 | trava | | 11.0.9-trava | | 8.0.232 | trava | | 8.0.232-trava ================================================================================ Use the Identifier for installation: $ sdk install java 11.0.3.hs-adpt ================================================================================ When I am using sdkman to install jdk,shows this error: [root@izbp19pke6x0v6ruecuy1yz ~]# sdk install java 11.0.11.hs-adpt Downloading: java 11.0.11.hs-adpt In progress... ######################################################################## 100.0% curl: (35) Encountered end of file Download has failed, aborting! Can not install java 11.0.11.hs-adpt at this time... what should I do to fix it? This is my sdkman version: [root@izbp19pke6x0v6ruecuy1yz ~]# sdk version SDKMAN 5.11.6 Now I am enable the debbug mode, seems could not access the github.com: [root@izbp19pke6x0v6ruecuy1yz etc]# sdk install java 11.0.11.hs-adpt Validate java 11.0.11.hs-adpt for linuxx64: valid Validation URL: https://api.sdkman.io/2/candidates/validate/java/11.0.11.hs-adpt/linuxx64 Get pre-installation hook: https://api.sdkman.io/2/hooks/pre/java/11.0.11.hs-adpt/linuxx64 Copy remote pre-installation hook: /root/.sdkman/tmp/hook_pre_java_11.0.11.hs-adpt.sh No Linux pre-install hook found for Java 11.0.11.hs-adpt. Completed pre-installation hook... Downloading: java 11.0.11.hs-adpt In progress... ######################################################################## 100.0%* About to connect() to api.sdkman.io port 443 (#0) * Trying 45.55.42.78... * Connected to api.sdkman.io (45.55.42.78) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 * Server certificate: * subject: CN=*.sdkman.io * start date: May 30 00:00:00 2020 GMT * expire date: Apr 28 23:59:59 2022 GMT * common name: *.sdkman.io * issuer: CN=Sectigo RSA Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB > GET /2/broker/download/java/11.0.11.hs-adpt/linuxx64 HTTP/1.1 > Range: bytes=192792051- > User-Agent: curl/7.29.0 > Host: api.sdkman.io > Accept: */* > GET /AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.11%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.gz HTTP/1.1 > Range: bytes=192792051- > User-Agent: curl/7.29.0 > Host: github.com > Accept: */* > GET /140419044/0d0a0080-a2e2-11eb-8f2c-cb3987bd2660?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210702%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210702T174828Z&X-Amz-Expires=300&X-Amz-Signature=7ba2f58dd3d95397a7ff5e8f1de59e68b455c3f5da3d39ea3923be5f3bfc92db&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=140419044&response-content-disposition=attachment%3B%20filename%3DOpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.gz&response-content-type=application%2Foctet-stream HTTP/1.1 > Range: bytes=192792051- > User-Agent: curl/7.29.0 > Host: github-releases.githubusercontent.com > Accept: */* > < HTTP/1.1 416 Range Not Satisfiable < Connection: keep-alive < Content-Length: 0 < x-amz-id-2: KwKxHMi3ygBv4f7jJzhbtztvmPi/8myDw2pEs8dqR2YOT0oqmbC1Je0h724+2d+5fmMOic1PZ6s= < x-amz-request-id: 3FX5VJS2YEGWZ7Z9 < Last-Modified: Wed, 21 Apr 2021 19:42:24 GMT < ETag: "0809655a9965bcd6d3eefd4b918c07c6" < Content-Disposition: attachment; filename=OpenJDK11U-jdk_x64_linux_hotspot_11.0.11_9.tar.gz < Content-Type: application/octet-stream < Server: AmazonS3 < Via: 1.1 varnish, 1.1 varnish < Accept-Ranges: bytes < Age: 0 < Content-Range: bytes */192792051 < Date: Fri, 02 Jul 2021 17:48:29 GMT < X-Served-By: cache-dca12929-DCA, cache-nrt18321-NRT < X-Cache: MISS, MISS < X-Cache-Hits: 0, 0 < Strict-Transport-Security: max-age=31536000 < X-Fastly-Request-ID: 4265a81244b61078f139b612fb946a2fd90210c8 < * Connection #2 to host github-releases.githubusercontent.com left intact Downloaded binary to: /root/.sdkman/tmp/java-11.0.11.hs-adpt.bin Get post-installation hook: https://api.sdkman.io/2/hooks/post/java/11.0.11.hs-adpt/linuxx64 Copy remote post-installation hook: /root/.sdkman/tmp/hook_post_java_11.0.11.hs-adpt.sh A Linux post-install hook was found for Java 11.0.11.hs-adpt. Download has failed, aborting! Can not install java 11.0.11.hs-adpt at this time...
Dolphin (791 rep)
Jul 2, 2021, 05:18 PM • Last activity: Jul 2, 2021, 05:50 PM
1 votes
1 answers
2244 views
Font bug in Java apps on Arch Linux
[![SOAP UI][1]][1] [1]: https://i.sstatic.net/2y9R7.png What happens with fonts in my JAVA apps? SOAP UI screen as example (see toolbox)... I have no idea where is the problem. SYS: up-to-date ARCH LINUX. $ archlinux-java status Available Java environments: java-7-openjdk java-8-jdk (default) java-8...
SOAP UI What happens with fonts in my JAVA apps? SOAP UI screen as example (see toolbox)... I have no idea where is the problem. SYS: up-to-date ARCH LINUX. $ archlinux-java status Available Java environments: java-7-openjdk java-8-jdk (default) java-8-jre/jre java-8-openjdk
Brandon Farber (21 rep)
Apr 14, 2016, 09:59 AM • Last activity: May 28, 2021, 02:04 PM
1 votes
2 answers
14529 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 I saw that it was removed from the Kali repository because very old. Can anyone help me how to ins...
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 I saw that it was removed from the Kali repository because very old. Can anyone help me how to install? When I run the command uname -m it shows me that the architecture is aarch64 can someone tell me how to install Java 8 on Nethunter for aarch64? Thanks in advance :)
Dakota (141 rep)
Feb 26, 2021, 02:40 AM • Last activity: Feb 28, 2021, 02:34 PM
0 votes
1 answers
518 views
Install JDK 9 on debian 10
For specific reasons I need to install JDK 9 on my Debian 10. But it seems like mission impossible. Can anyone share a tutorial ?
For specific reasons I need to install JDK 9 on my Debian 10. But it seems like mission impossible. Can anyone share a tutorial ?
Dakado (29 rep)
Feb 14, 2021, 12:11 PM • Last activity: Feb 14, 2021, 01:14 PM
11 votes
3 answers
107379 views
How to set JAVA_HOME correctly on CentOS?
I am trying to set **JAVA_HOME** so that I can **install Apache Solr** with the help of this **[tutorial][1]**. I am connected to my server using **ssh** with **root user** To allow the running sh script to install Apache Solr: mount | grep noexec Re-mounting file system with exec option: mount -o r...
I am trying to set **JAVA_HOME** so that I can **install Apache Solr** with the help of this **tutorial **. I am connected to my server using **ssh** with **root user** To allow the running sh script to install Apache Solr: mount | grep noexec Re-mounting file system with exec option: mount -o remount,exec /dev/md1 Then every time I try to install it using the following commands bin/install_solr_service.sh /tmp/solr-5.3.1.tgz I get the following message: WARNING: /opt/solr-5.3.1 already exists! Skipping extract ... Creating /etc/init.d/solr script ... The currently defined JAVA_HOME (/usr/local/jdk) refers to a location where Java could not be found. Aborting. Either fix the JAVA_HOME variable or remove it from the environment so that the system PATH will be searched. The currently defined JAVA_HOME (/usr/local/jdk) refers to a location where Java could not be found. Aborting. Either fix the JAVA_HOME variable or remove it from the environment so that the system PATH will be searched. Service solr installed. This is what I tried so far: nano /root/.bash_profile nano /etc/profile I added the following to the files above at the end and saved them export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64 export PATH=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64/bin:$PATH That didn't work. I created the following file /etc/profile.d/java.sh and put in it: export JRE_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64/jre/ export PATH=$PATH:$JRE_HOME/bin export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64 export JAVA_PATH=$JAVA_HOME export PATH=$PATH:$JAVA_HOME/bin And ran the following command: source java.sh That also didn't work. I tried to run the following command: export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64 No luck at all. But when a run the following commands that is what I get echo $JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64 echo $PATH /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64/bin:/usr/local/jdk/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64/jre//bin:/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin
Waqleh (269 rep)
Nov 18, 2015, 01:59 PM • Last activity: Nov 30, 2020, 10:53 PM
0 votes
1 answers
12036 views
command to install java jdk latest version on kali
I want to do programming in `java 15` for that I need `jdk` . What is the `command` to download latest `jdk` in `kali-linux`. sudo apt install -y default-jdk Is the above command will install latest jdk I am confused because I doesn't specify any `version`? English is not my native language **excuse...
I want to do programming in java 15 for that I need jdk . What is the command to download latest jdk in kali-linux. sudo apt install -y default-jdk Is the above command will install latest jdk I am confused because I doesn't specify any version? English is not my native language **excuse me please**. Thanks in advance.
devpa (123 rep)
Nov 28, 2020, 03:26 AM • Last activity: Nov 28, 2020, 05:51 AM
1 votes
1 answers
2685 views
Installing Oracle JDK 1.7 -- 404 error
I'm trying to install Hadoop 2.7.3. on Elementary OS (which ~ Ubuntu, I believe) following the instructions in the _BUILDING.txt_ that came with the Hadoop files. The file indicates that I need to install Oracle JDK 1.7 by going through the following steps: $ sudo apt-get purge openjdk* $ sudo apt-g...
I'm trying to install Hadoop 2.7.3. on Elementary OS (which ~ Ubuntu, I believe) following the instructions in the _BUILDING.txt_ that came with the Hadoop files. The file indicates that I need to install Oracle JDK 1.7 by going through the following steps: $ sudo apt-get purge openjdk* $ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:webupd8team/java $ sudo apt-get update $ sudo apt-get install oracle-java7-installer All works well until the last step, where it exits with an error message which I'm not sure what to make of (sorry if paste is too long; I'd be happy to edit it but Idk what's relevant):
--2017-05-26 10:58:06--  http://download.oracle.com/otn-pub/java/jdk/7u80- 
b15/jdk-7u80-linux-x64.tar.gz Resolving download.oracle.com
(download.oracle.com)... 199.117.103.169, 199.117.103.171

Connecting to download.oracle.com
(download.oracle.com)|199.117.103.169|:80... connected. HTTP request
sent, awaiting response... 302 Moved Temporarily Location:
https://edelivery.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz 
[...]
[following]

--2017-05-26 10:58:06--  http://download.oracle.com/otn-pub/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz?AuthParam=1495814405_54d4699c133b9ceee2666c152616ece6 
Connecting to download.oracle.com
(download.oracle.com)|199.117.103.169|:80... connected.

HTTP request sent, awaiting response... 404 Not Found 2017-05-26
10:58:07 ERROR 404: Not Found.

download failed

Oracle JDK 7 is NOT installed.

dpkg: error processing package oracle-java7-installer (--configure): 
subprocess installed post-installation script returned error exit
status 1 dpkg: dependency problems prevent configuration of
oracle-jdk7-installer:  oracle-jdk7-installer depends on
oracle-java7-installer; however:   Package oracle-java7-installer is
not configured yet.
I figured - the 404 is the main issue - it's looking for files but can't find them So my question is - Is that even true? What is the roadblock here? - How can I fix it, or do I have to take another path? (I am following White's _Hadoop - The Definitive Guide_ for the overall approach. )
patrick (1022 rep)
May 26, 2017, 07:02 PM • Last activity: Aug 19, 2020, 04:39 PM
0 votes
2 answers
3395 views
How to install Java 13 to Kali Linux?
I downloaded `jdk-13.0.2_linux-x64_bin.deb` from oracle and installed using `dpkg`. However, ``` update-alternatives --config java ``` doesnt show `java13`. How do i get the `java -version` to `java13` now?
I downloaded jdk-13.0.2_linux-x64_bin.deb from oracle and installed using dpkg. However,
update-alternatives --config java
doesnt show java13. How do i get the java -version to java13 now?
Machine Yadav (309 rep)
Jun 23, 2020, 11:46 AM • Last activity: Jun 23, 2020, 02:49 PM
0 votes
1 answers
1921 views
How to install Amazon Corretto on Manjaro?
I'm trying to install Amazon Corretto on Manjaro Linux. As it's available on AUR, I installed it using Yay. However, whenever running any command, it's not found. [![enter image description here][1]][1] [![enter image description here][2]][2] [1]: https://i.sstatic.net/Mb0m7.png [2]: https://i.sstat...
I'm trying to install Amazon Corretto on Manjaro Linux. As it's available on AUR, I installed it using Yay. However, whenever running any command, it's not found. enter image description here enter image description here How do I properly set it?
MrAnderson (11 rep)
Dec 27, 2019, 10:39 AM • Last activity: Dec 27, 2019, 05:18 PM
2 votes
2 answers
2519 views
What are JDK default user and group?
I have a freshly installed jdk1.8.0_121 on my redhat machine. When I `ls -la` in the installation directory, following output is received, ```none total 178952 drwxr-xr-x. 5 root root 87 Mar 23 16:00 . dr-xr-xr-x. 19 root root 256 Mar 23 18:19 .. drwxr-xr-x. 8 10 143 255 Dec 12 19:50 jdk1.8.0_121 -r...
I have a freshly installed jdk1.8.0_121 on my redhat machine. When I ls -la in the installation directory, following output is received,
total 178952
drwxr-xr-x.  5 root        root               87 Mar 23 16:00 .
dr-xr-xr-x. 19 root        root              256 Mar 23 18:19 ..
drwxr-xr-x.  8   10         143              255 Dec 12 19:50 jdk1.8.0_121
-rw-r--r--.  1 root        root        183246769 Dec 14 14:42 jdk-8u121-linux-x64.tar.gz
drwxr-xr-x.  2 root        root                6 Mar  9  2015 rh
My concern is with this line, drwxr-xr-x. 8 10 143 255 Dec 12 19:50 jdk1.8.0_121 Are these user ("10", for which there is no corresponding user) and group ("143", for which there is no corresponding group) expected or have I missed something while installation ?
Abhishek Sharma (163 rep)
Mar 24, 2017, 07:46 AM • Last activity: Dec 4, 2019, 02:24 PM
0 votes
1 answers
1483 views
Maven-compiler-version for Amazon Corretto
we are migrating our project from JDK1.8 to Amazon Corretto 8 version. wondering which version should i need to mention in the maven-compiler-plugin in pom.xml. This is the existing pom setup for Jdk1.8 org.apache.maven.plugins maven-compiler-plugin 1.8 1.8
we are migrating our project from JDK1.8 to Amazon Corretto 8 version. wondering which version should i need to mention in the maven-compiler-plugin in pom.xml. This is the existing pom setup for Jdk1.8 org.apache.maven.plugins maven-compiler-plugin 1.8 1.8
Suresh (1 rep)
Oct 22, 2019, 06:03 PM • Last activity: Nov 5, 2019, 10:41 AM
0 votes
1 answers
241 views
Can't install Oracle JDK in Linux Mint 19.2
I have downloaded Oracle JDK 11 and I'm trying to install it on my Linux Mint (x64). After downloading the tarball, I extracted it to my /usr/lib/jvm and exported it to PATH: export PATH=$PATH:/usr/lib/jvm/jdk-11.0.5/bin/java but if I try to: java -version bash says: zsh:command not found: java Ther...
I have downloaded Oracle JDK 11 and I'm trying to install it on my Linux Mint (x64). After downloading the tarball, I extracted it to my /usr/lib/jvm and exported it to PATH: export PATH=$PATH:/usr/lib/jvm/jdk-11.0.5/bin/java but if I try to: java -version bash says: zsh:command not found: java There are something that I'm missing?
FearX (246 rep)
Oct 23, 2019, 11:30 AM • Last activity: Oct 23, 2019, 04:21 PM
1 votes
1 answers
6095 views
jstat not found even though we installed java JDK
We installed the following RPMs (part of the Java development kit), on Red Hat Enterprise Linux 7.5: $ rpm -qa | grep jdk java-1.8.0-openjdk-headless-1.8.0.171-8.b10.el7_5.x86_64 java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64 copy-jdk-configs-3.3-10.el7_5.noarch but we can't find `jstat` which shou...
We installed the following RPMs (part of the Java development kit), on Red Hat Enterprise Linux 7.5: $ rpm -qa | grep jdk java-1.8.0-openjdk-headless-1.8.0.171-8.b10.el7_5.x86_64 java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64 copy-jdk-configs-3.3-10.el7_5.noarch but we can't find jstat which should be on the following path: /usr/jdk64/jdk1.8.0...../bin/jstat What is wrong here? Is jstat part of the installed RPMs above or do we need another java installation? $ which java /usr/bin/java
yael (13936 rep)
Aug 14, 2019, 09:51 AM • Last activity: Aug 14, 2019, 11:14 AM
Showing page 1 of 20 total questions