I am trying to use the maven Launch4j plugin version 1.5.0.1
When I build the pom on my windows box, there is no issue (my windows box has both 32-bit and 64-bit versions of Java installed). But when I build the pom on my linux box, I get this issue:
Stack trace:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.bluestemsoftware.open.maven.plugin:launch4j-plugin:1.5.01.1..... Failed to build executable; please verify your configuration
Cause by: net.sf.launch4j.BuilderException: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program "/home/hudson/.m2/repository/org/bluestemsoftware/open/maven/plugin/launch4j-plugin/1.5.0.1/launch4j-plugin-1.5.0.1-workdir-linux/bin/windres": java.IOException: error=2, No such file or directory
I did quite a bit of digging around and I found this:
http://alakai.org:8088/browse/LAUNCHPLUGIN-15
But, the task is still open, so I can only assume that there is no fix in place for this issue on a 64-bit Linux OS that uses 64-bit java. Unfortunately, my linux box cannot access an external network, so installing 32-bit java is not much of an option. Does anyone know of any other possible work-arounds?
Just install ia32-libs for your distrib. On my ubuntu machine: sudo apt-get install ia32-libs
On recent x64 Ubuntu distributions (starting 14.04 LTS, tested on 16.04 LTS), do this:
$ sudo dpkg --add-architecture i386
$ sudo apt-get update
$ sudo apt-get install lib32z1 lib32ncurses5 libbz2-1.0:i386
For Fedora, install the 32 bit version of openjdk-devel. java-1.6.0-openjdk-devel.i686 or java-1.7.0-openjdk-devel.i686.
yum install java-1.6.0-openjdk-devel.i686
... or ...
yum install java-1.7.0-openjdk-devel.i686
Use yumdownloader on a different machine if you can not reach the network.
Related
When I tried to install Hive through homebrew it throws below error:
homebrew install hive
Error: openjdk#8: no bottle available!
Has anyone solved this issue?
I did a bit of research in google and someone said "this is because the M1 chip needs it's own special version of OpenJDK ".
Apple silicone M1 and similar processors have the ARMv8.4 architecture and rosetta2 to launch native amd64 binaries on the arm64 processor. So apple silicone may launch nearly any app compiled for the Intel platform (there is some exception, for example, the older version of PostgreSQL won't be launched by rosetta2).
By default, homebrew detects the platform that is installed and tries to find the bottle that is appropriate for arm64. In some cases, there is no bottle for some applications (for example, you can't install openjdk#8 on arm64 because there is no bottle). But you can install, for example, oracle JDK because there is the bottle for arm64 (but it will install amd64 binaries). It is a pretty confusing situation, isn't it?
The decision is to install the second copy of homebrew into the /usr/local/homebrew directory and launch it in compatibility mode with the command arch -x86_64. You won't start the original homebrew with this command because it will lid to mix arm64 and amd64 binaries (and what you will do, if you need the same library for both platforms? libpq as an example).
So there is the step-by-step guide:
Download homebrew curl -L https://github.com/Homebrew/brew/tarball/master --output homebrew.tar
Extract tarball to /usr/local/homebrew
chown -R to allow start apps from this folder
Add aliases to your ~/.zshrc file
# If you come from bash you might have to change your $PATH.
# need this for x86_64 brew
export PATH=$HOME/bin:/usr/local/bin:$PATH
# for intel x86_64 brew
alias axbrew='arch -x86_64 /usr/local/homebrew/bin/brew'
Now start new console and launch installation, for example axbrew install openjdk#8
Install other Intel binaries you need the same way. Remember that it will be installed into the /usr/local/homebrew/ directory - fill free to create a symlink if you wanna use it something else.
The slight disadvantage - the java_version tool won't see the OpenJDK in /user/local directory, but symlink to /Library/Java/JavaVirtualMachines/ will solve this problem.
Finally, I found a solution. First, We need to install Homebrew with Rosetta under /usr/local and then we can try installing everything the same way.
Combine Gleb Yan's answer and another website's solution https://github.com/Homebrew/discussions/discussions/2723. What I do is
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Then run
arch -x86_64 /usr/local/homebrew/bin/brew install openjdk#8
Then
arch -x86_64 /usr/local/homebrew/bin/brew install hive
Reminder two separate Homebrew hierarchies on your machine, an Intel-only one under /usr/local, and an M1-only one under /opt/homebrew
I need to install Oracle JDK 11 on Ubuntu Server 18.04. I have seen many tutorials but all of those point that I need to download this repository:
sudo add-apt-repository ppa:linuxuprising/java
But it is not working. This is what I get:
Also, I need to install Open JDK 14 in the same Ubuntu machine, but I'm unable to find working instructions.
Does somebody have any hints on these issues?
Actually it should be possible to just type "sudo apt-get install openjdk-11-jdk" or "sudo apt-get install openjdk-14-jdk"
This should Help you with all the OpenJDK stuff
https://wiki.ubuntuusers.de/Java/Installation/OpenJDK/
I have MacOs when I install Hadoop I used this Command sudo apt install hadoop-yarn-resourcemanager
I got below error
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/apt"
apt is the Debian / Ubuntu Linux package management system. What makes you think that MacOs supports Debian packages?!
Instead you could install and use the brew package manager.
See https://isaacchanghau.github.io/post/install_hadoop_mac/ for example.
I am trying to change java installed in boss Linux because am trying to install eclipse oxygen which needs java8. First I couldn't find where the jdk installed. Currently 1.7.0_73 installed. I just downloaded the tar.gz of jdk8. Extracted in a location. Setted java home and path pointing bin. But still am getting error during eclipse installation that version 1.8 is required.
Well as Wikipedia states that
BOSS Linux is an "LSB certified" Linux distribution :
the software has been certified by the Linux Foundation
for compliance with the Linux Standard Base standard.
BOSS Linux is derived from Debian Linux.
Note that It is derived from Debian Linux and uses apt to handle packages for updates or upgrades. On that note, you just have to use apt
command to upgrade to version you want.
Installing java version 1.8 by installing OpenJDK v8
To install java version 1.8 (OpenJDK v8), type following on terminal :
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
If you only want to install the Java Runtime Environment :
sudo apt-get install openjdk-8-jre
Feel free to add-in more details to the answer.
I am trying to install Jenkins on ubuntu 11.04
I have installed Oracle Java
$:~$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) Server VM (build 25.5-b02, mixed mode)
$:~$ javac -version
javac 1.8.0_05
$:~$
$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/jdk1.8.0_05/bin:/usr/lib/hadoop/hadoop-1.2.0/bin/:/usr/lib/pig/pig-0.12.0/bin:/usr/lib/hive/hive-0.11.0/bin:/usr/lib/hbase/hbase-0.94.8/bin
$:~$ echo $JAVA_HOME
/usr/lib/jvm/jdk1.8.0_05
When I try to install, I have some dependency issues..
$ sudo apt-get install jenkins
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
jenkins : Depends: daemon but it is not installable
Depends: default-jre-headless but it is not installable or
java-runtime-headless but it is not installable
E: Broken packages
to work install Jenkins they request Java versions greater than 1.8.0_1.
I got hte same error and I updated java to below version
java -version
java version "1.8.0_121"
Now jenkins installing without errors
Below link worked for 14.04 (hope it works for 11.04 too)
Install Java version in ubuntu
Try this:
sudo apt-get update
sudo apt-get remove default-jre default-jdk
sudo apt-get update
sudo apt-get install default-jre default-jdk
More about java on Ubuntu:
https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
Steps to install jenkins and view in browser with IP:-
sudo apt update
sudo apt search jdk --to search jdk
sudo install openjdk-8-jre
sudo install openjdk-8-jre-headless
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
add below line in the file /etc/apt/sources.list:
sudo nano /etc/apt/sources.list
OR
sudo vi /etc/apt/sources.list
Add this below link at the end of editing document.
deb https://pkg.jenkins.io/debian binary/
Update your local package index
sudo apt-get update
Install jenkins now
sudo apt install jenkins
start jenkins service
sudo systemctl start jenkins
Enable the jenkins service
sudo systemctl enable jenkins
Now jenkins installed in your system. If are following these steps
you are good to go. heat localhost:8080 in the browser. because jenkins works on
8080 by default. you can change it's port to others.
Now if are using google cloud then there is one more step.
Firewall rule details (Add firewall rule to enable ip and tcp 8080 port)
That's that now if you open in browser http://<your-ip>:8080 jenkins will open and ask you
to view the password which give location on the ui.
For more detail please visit
https://www.jenkins.io/
Your installation of Java is likely the Oracle zip / tgz drop. By using it, the package manager (dpkg / apt in this case) is unaware it is installed.
Install the packaged java for the package manager to "know" that the right java is isntalled, or install the zip / tgz drop of jenkins.
In short, if you want managed Jenkins, use the managed Java, and if you don't want it to be managed (sometimes that's a good option if you don't want it to be upgraded), don't use the managed Jenkins or Java. (Keep in mind that unmanaged means you get none of the bug fixes until you manually update, but it also means you get no surprises until you manually update).
Seems like you should run
sudo apt-get update
sudo apt-get upgrade
And try again.
Anyway, Jenkins users quite frecuently complain about the installer not working.
Your life will be easier if you do it manually. It is quite easy and you have complete instructions all around the web: http://clavadetscher.dyndns.org/wiki/en/Install_and_upgrade_Jenkins_CI_Server_on_Ubuntu_12.04_and_Tomcat6
note: tomcat7 (if you are tempted) has given me some headaches with Jenkins. I always end up installing tomcat6.
Ended up solving this by running the following command:
sudo add-apt-repository universe
Pre-made script for install Jenkins and it will also print the access code to the console for the first login as well.
You should be able to copy and paste
cd ~/
git clone https://github.com/120GBSSD/jenkins-install-xenial.git
chmod +x ~/jenkins-install-xenial/Ubuntu:16.04-Jenkins.sh
./Ubuntu:16.04-Jenkins.sh