I am running 64-bit Windows 10, I installed Erlang 64-bit R16B03, set-up ERLANG_HOME system env variable (not the user env var) and validated it to work OK from command shell.
When I run RabbitMQ3.6.6.exe to setup I get error "Erlang could not be detected". What version of Erlang do I need for RabbitMQ 3.6.6 ??
Does Erlang have to be installed in C:\Program Files??
I installed it in C:\Erlang folder.
I also tried to add %ERLANG_HOME%\bin to Path but it made no difference.
I have VC++ redistributable exe already installed (2005,2008,2013,2015).
I tried version OTP 19.2 (erl8.2) of Erlang with same results.
Any ideas?
I am trying to avoid installing manually from RabbitMQ zip file because I am new to RabbitMQ and just want to get it up and running so I can learn it.
Thank you
I got it working. Basically, setup does not work unless you install it in default C:\Program Files folder on Windows 10 64-bit. I had Erlang initially installed in C:\Erlang and even though ERLANG_HOME system var was correctly set up still did not work from RabbitMQ setup. Once I installed Erlang in C:\Program Files and ran ERLANG and RabbitMQ set-ups "run as administrator" then it installed.
Erlang should be installed in its default location C:\Program Files\erl8.3.
Once you have installed in the default location you have to set
ERLANG_HOME and Path in your environment variables.
Only then the RabbitMQ installation will start.
Important note: Installing Erlang in other than the default location mentioned above will not work even if you have set environment variables.
I got the same issue with RabbitMQ 3.5.6 and erlang 1.7.
The ERLANG_HOME was set correctly but I couldn't install rabbitMQ as it said that couldn't find erlang.
I have removed erlang and install it again. But I run installation exe as Administrator.
And then I installed RabittMQ successfully.
Related
I just switch to try develop on Linux for a while.
But one thing I couldn't understand how to solve it, as I mentioned in topic.
I'm going to develop a project that need Java SDK, then I installed the SDK with command:
#bash
sudo apt install openjdk-17-jdk-headless
After installation finished, I could run command java -version and javac -version to see the result of installation and it looks OK.
openjdk version "17.0.3" 2022-04-19
OpenJDK Runtime Environment (build 17.0.3+7-Ubuntu-0ubuntu0.22.04.1)
OpenJDK 64-Bit Server VM (build 17.0.3+7-Ubuntu-0ubuntu0.22.04.1, mixed mode, sharing)
And then when I open IDE (Intellij IDEA) and it has feature of integrated terminal. (see picture)
But when I try to test java -version it was shown the error:
bash: java: command not found
As you can see from picture, I run java -version on terminal it return output properly, but when I run the same command java -version, it output with error message, like it couldn't find the java SDK that I installed.
Could anyone help me to describe the reason and solutions to solve the issue?
P.S. This is same on VS Codium.
I found the answer.
Solution:
Install the IDE app with the file from official website instead of using package manager of OS.
Description:
The cause is I installed the IDE via Package Manager of OS (here I'm using Pop_OS, install via Pop!_Shop)
And its package manager has some strict rules for security purpose.
I'm not sure, Pop_OS using which package manager, but I'll raise Flatpak as reference: https://docs.flatpak.org/en/latest/sandbox-permissions.html
And on blacklisted directories, my installed java command is under /usr/bin/ which is in blacklist.
In the past, Oracle used to publish an executable installers for Windows that would:
Unpack files
Add registry keys indicating the installed version and path
Add the JRE to the system PATH
Register an uninstaller with Windows.
As of Java 11, the Oracle's free version of Java (Oracle OpenJDK) doesn't seem to include an installer. It is just a zip file containing the binaries.
How are we supposed to install OpenJDK 11 on Windows seeing as the aforementioned integrations are no longer there? Aren't they necessary?
Extract the zip file into a folder, e.g. C:\Program Files\Java\ and it will create a jdk-11 folder (where the bin folder is a direct sub-folder). You may need Administrator privileges to extract the zip file to this location.
Set a PATH:
Select Control Panel and then System.
Click Advanced and then Environment Variables.
Add the location of the bin folder of the JDK installation to the PATH variable in System Variables.
The following is a typical value for the PATH variable: C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-11\bin"
Set JAVA_HOME:
Under System Variables, click New.
Enter the variable name as JAVA_HOME.
Enter the variable value as the installation path of the JDK (without the bin sub-folder).
Click OK.
Click Apply Changes.
Configure the JDK in your IDE (e.g. IntelliJ or Eclipse).
You are set.
To see if it worked, open up the Command Prompt and type java -version and see if it prints your newly installed JDK.
If you want to uninstall - just undo the above steps.
Note: You can also point JAVA_HOME to the folder of your JDK installations and then set the PATH variable to %JAVA_HOME%\bin. So when you want to change the JDK you change only the JAVA_HOME variable and leave PATH as it is.
Java 17 (LTS) and up
For Java 17 and up, you can use the Eclipse Adoptium website. According to their about section, the Eclipse Adoptium project is the continuation of the original AdoptOpenJDK mission.
Java 11 (LTS), Java 8 - 16
For Java 11 (8 through 16), you can use AdoptOpenJDK, a website hosted by the java community. You can find .msi installers for OpenJDK 8 through 16 there, which will perform all the things listed in the question (Unpacking, registry keys, PATH variable updating (and JAVA_HOME), uninstaller...).
Use the Chocolatey packet manager. It's a command-line tool similar to npm. Once you have installed it, use
choco install openjdk --version=11.0
in an elevated command prompt to install OpenJDK 11 (leave out the --version parameter to install the latest version).
To update an installed version to the latest version, type
choco upgrade openjdk
Pretty simple to use and especially helpful to upgrade to the latest version. No manual fiddling with path environment variables.
From the comment by #ZhekaKozlov: ojdkbuild has OpenJDK builds (currently 8 and 11) for Windows (zip and msi).
You can use Amazon Corretto. It is free to use multiplatform, production-ready distribution of the OpenJDK. It comes with long-term support that will include performance enhancements and security fixes. Check the installation instructions here.
You can also check Zulu from Azul.
One more thing I like to highlight here is both Amazon Corretto and Zulu are TCK Compliant. You can see the OpenJDK builds comparison here and here.
For Java 12 onwards, official General-Availability (GA) and Early-Access (EA) Windows 64-bit builds of the OpenJDK (GPL2 + Classpath Exception) from Oracle are available as tar.gz/zip from the JDK website.
If you prefer an installer, there are several distributions. There is a public Google Doc and Blog post by the Java Champions community which lists the best-supported OpenJDK distributions. Currently, these are:
AdoptOpenJDK has been superseded by Adoptium/Temurin (Hotspot) and IBM Semeru (OpenJ9)
Adoptium Temurin
Amazon Corretto
IBM Semeru (with OpenJ9 JVM)
Liberica from Bellsoft
Microsoft Build of OpenJDK
OpenLogic OpenJDK
Red Hat OpenJDK
SAPMachine (backed by SAP)
Zulu Community (backed by Azul Systems)
https://www.openlogic.com/openjdk-downloads allowed me to pick a 32-bit version of OpenJDK8 (don't ask - Arduino IDE doesn't compile with 11), I think they just wrap around AdoptOpenJDK MSIs but I couldn't find 32-bit distros on AdoptOpenJDK.
In addition to the above answers, it is worth noting that you have to move your JDK Path entry to the top of the Path
Here is the complete answer. first of all you have to install the Chocolatey. to install Chocolatey run powershell as administrator and run the following command
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
after this run open cmd as administrator and run this command
choco install -y openjdk11
it will install the openjdk to the following location
C:\Program Files\Eclipse Adoptium\jdk-11.0.16.101-hotspot
finllay set your JAVA_HOME TO
C:\Program Files\Eclipse Adoptium\jdk-11.0.16.101-hotspot
and cheers
WinGet is now available on Windows 10+ to install the Microsoft Build of OpenJDK on your machine. See details and access the downloads page at https://aka.ms/msopenjdk/ where Zip files and instructions.
Scoop installs programs you know and love, from the command line with a minimal amount of friction.
Install scoop
Add java scoop bucket add java
Install OpenJDK scoop.cmd install openjdk17
I'm having the hardest time installing XAMPP on C:\Development\xampp on Windows 10. I would like my C drive to be as clean as possible so I'm moving as many dev tools to the Development folder as I can to achieve this. I get an error towards the end of the XAMPP installation about a problem running the post-install step. It then suggests I install Microsoft Visual C++ 2008 Redistributable, which I already have the 2012 version installed. Originally XAMPP was installed on C:\ with no problems.
How do I install XAMPP to the above directory or any directory other than C:\?
Edit:
I have tried installing XAMPP portable and now receive the following error
I'm no longer on Windows so I can't re-test, but as I recall, the easiest way I managed this was to use the portable version of xampp.
Make sure to run the shell setup script so that it recognizes it's location properly.
You can get it from Apache Friends
Or from PortableApps.com
Having deleted the Studio 3, which was working, and installing a new one, the first launch produced the message: "Failed to load the JNI Shared Library: 'C:...java.jdk1.8.0_05\bin..\jre\bin\server\jvm.dll'" Upon checking the indicated bin directory, the 'server' subdirectory was missing. I then installed both jre7 and jre8 as standalone jre's. Both hre7 and jre8 have the server subdirectory under bin. If I point JAVA_HOME towards one of the newer installs, I will lose ready access to the JDK. Is there any other way to tell Aptana Studio 3 which jvm to use?
This whole exercise was started in an attempt to get Aptana Studio 3 to use Ruby 2.0.0, rather than ruby 1.9.3 (both of which are installed). How might one do that? Both rubys are in the PATH, with ruby2.0.0 first. Also RUBY_HOME points to ruby2.0.0. Entering ruby -v at the command prompt yields 1.9.3.
In turn, I am doing this because I am getting a crash in 1.9.3 wich says: "You have encountered a bug in the ruby interpreter..."
You can configure which version of Java Aptana will use in AptanaStudio3.ini: simply add
-vm
C:/Program Files (x86)/Java/jdk1.7.0_21/bin/javaw.exe
(before --launcher.XXMaxPermSize) pointing to a 32bit Java version.
Make sure you have the 32-bit version of the JDK installed. This error occurs with the 64-bit version. Try and download the 32bit JDK, install and Aptana should run (at least that worked for me)
The latest Windows installer does not contain the JRE, contrary to what the page at http://www.aptana.com/products/studio3/success.html says:
The Windows installer includes a compatible version of Java.
I downloaded the 3.5 installer, installed to a different directory, and copied the JRE directory from there to the 3.6.x directory. This has resolved the issue for me.
(I suppose the installer could contain a 32-bit JRE, detect my system is a 64-bit system, and not install it, but the size difference between the two installers is enough to be accounted for by a missing JRE.)
I Was getting the same issue while loading aptana.
Fixed it with following steps.
Uninstalled available jdk7.1 (It was 64 bit)
Uninstalled aptana;
Downloaded and installed jdk7.1 32 bit.
The jvm.dll will be in the follwing path: "C:\Program Files (x86)\Java\jdk1.7.0_75\jre\bin\client"
Re installed aptana
Thanks
When I try to execute the installer, it starts "Extracting Bundled Java SDK ..." and then fails with "Error: Could not find the required version of the Java(TM) 2 Runrime Environment in '(null)'.".
What can I do? The OS is a Windows 7 Ultimate (just installed), virtualized with KVM under an Ubuntu 13.10.
Firefox and LibreOffice could be installed without any problem.
The pre requisite for JavaEE sdk7 installer is to have Jdk 7. So make sure, your environment variable path is pointing to JDK7\bin folder. And check java -version in command prompt, it should show you jdk 7 is current version in your system.
If both of the above are correct and it still doesn't work, then donot double click on the exe file directly, install it from command prompt, by giving location for JRE7 and
helping the installer to find jar files of JRE7, see below:
D:\installables>java_ee_sdk-7-jdk7-windows-x64.exe -j "C:\
Program Files\Java\jre7"
I had same problem, but this worked for me.