Why is my Elasticsearch 1.6.0 missing the plugin manager? - java

I am trying to run elasticsearch 1.6.0 using cygwin on a 64-bit Windows 7 machine. I downloaded the elasticsearch zip from the elasticsearch home page, and installed the latest version of java and jdk (1.8.0_45) and have set the JAVA_HOME variable to the right path I think. When I try to execute the very first step in the Definitive Guide installation process:
$ ./bin/plugin -i elasticsearch/marvel/latest
I get this error:
Error: Could not find or load main class org.elasticsearch.plugins.PluginManager
I've seen this problem with earlier versions of elastic, but apparently the problem was fixed so I'm not sure why this is happening.

Related

Running STIGViewer on a Mac

I'm trying to run DISA's STIGViewer on my Mac. It is a JAR file, and I have Java installed on my system. Double-clicking on the file does not work, and neither does launching it from the command line.
% java -jar /Applications/STIGViewer-2.16.jar
Error: Could not find or load main class stigviewer.STIGViewer
Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
%
Has anyone in the community been able to get this to work on their system?
My current version of Java is 16.0.2 (java -version). I tried to install Java 8, which is said to include JavaFX. I tried simple procedures (installers only, no environmental variables) but was not able to get anything to work. I tried to uninstall every install attempt to keep my system as close to its original configuration as possible.
I found some information about installing JavaFX using Homebrew (already installed on my system). I installed the version that matches my Java version using the following commands:
brew tap bell-sw/liberica
brew install --cask liberica-jdk16-full
I still don't know where JavaFX is within my configuration, but I can get STIGViewer to launch now. I can't double-click on it in my Applications folder, but I can launch it from the command line:
java -jar /Applications/STIGViewer-2.16.jar

Error during Maven execution

I'm trying to run the maven and returns me the error:
/opt/apache-maven-3.3.3/bin/mvn: 227: exec: /opt/jdk1.7.0_79/bin/java: not found
What can it be?
run the command echo $JAVA_HOME and see where the java home is set and verify if the path is correct. Then check if $JAVA_HOME\bin\ folder is there and check for java command in it.
I just was experiencing this same problem, and about 4 hours later I figured it out. I had installed the wrong version of the java JDK. I originally installed the Linux x-86 version, but my computer settings required the x-64 version. Make sure you have the version of the Java JDK that is compatible with your system. Here's the link to those JDK downloads: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

OS X Yosemite not finding Java 8 runtime

I installed Java 8 SDK (with update 25 for JRE) from the Oracle Java site using the instructions on this page
http://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html
and put the following line in my ~/.bash_profile
export JAVA_HOME="/usr/libexec/java_home -v 1.8"
but when I try to compile or run a Java program in Bash I get the following message
No Java runtime present, requesting install.
and this window
I ran /usr/libexec/java_home to check:
$ /usr/libexec/java_home
Unable to find any JVMs matching version "(null)".
No Java runtime present, try --request to install.
But the JRE is in
/System/Library/Frameworks/JavaVM.framework/Versions/Current
and the JRE location in System Preferences is pointing to
/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin
I don't know what the problem is here, but usr/bin/javac and /usr/bin/java are not able to find the correct JVM location in /System/Library/Frameworks/JavaVM.framework/Versions/Current.
I have encountered the same problem , i think you should install JDK but not JRE
You need to add some backticks:
export JAVA_HOME="`/usr/libexec/java_home -v 1.8`"
The /usr/libexec/java_home command outputs the right value for JAVA_HOME on its standard output, you need to use backticks to capture that value so you can store it in the variable.
But the JRE is in /System/Library/Frameworks/JavaVM.framework/Versions/Current
No, it isn't. The Oracle JRE installs itself under /Library/Internet Plug-Ins, the Oracle JDK installs under /Library/Java/JavaVirtualMachines. The binaries under /usr/bin and /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands are stubs that delegate to whichever JDK your JAVA_HOME variable points to.
Here's how I solved my problem on my mac
Check from RStudio if Java_HOME has been setup properly by running Sys.getenv("JAVA_HOME") in the console. If it returns blank, you need to set it up properly
Check whether you have Java SDK installed
Open terminal and check if you have Java SDK installed
Run the /usr/libexec/java_home -vcommand. This will show you the library where you Java SDK is installed.
If you don't have Java SDK installed yet, result from command above is blank, or the version is not up-to-date, download here and install the latest version.
Copy the library shown in step 2. On my mac, it shows:
/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home
Back on your RStudio console, set the JAVA_HOME
Sys.setenv(JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home")
After doing the steps above, h2o.init() ran without hitch.
Please carefully note #Ian Robert's point on JRE vs JDK distinction. We need JDK to make h2o run.
I've tried several solutions, downloading several sdk but Android Studio didn't recognize them as valid sdks.
Finally, the workaround that worked for me was:
Delete Android Studio.app and Android Studio preferences (~/Library/Preferences/AndroidStuido).
Rename /usr/libexec/java_home to java_home.bak.
Install again Android Stuido.
When Android Studio prompts for a valid Java SDK, follow link provided by Android Studio and download that java installation.
After installation, push detect button on Android Studio, and run.

Android SDK: Cannot find Java, version of the file is not compatible

I've installed Android standalone tools on Windows 7 32-bit, but when I am trying to run the android utility on the command line, the following error report is shown:
No suitable Java found. In order to properly use the ADT, you need a version of JDK installed (...)
I have Java properly installed in C:\Program Files\Java\JDK, and my JAVA_HOME is set to this path. (C:\Progra~1 - for ANT), PATH includes C:\Program Files\Java\JDK )
I have read on here in other posts that android utility simply starts find_java.exe, so when I start the program directly, I had this error:
The version of this file is not compatible with the version of Windows
you're running. Check your computer's system information to see whether
you need an x86 (32-bit) or x64 (64-bit) version of the program, and then
contact the software publisher.
It just seems like the SDK manager installs wrong (64-bit? I am not an expert on that, but the error seems like that) of Java finder for some reason.
Has anyone encountered a similar kind of error? What could some reasons for that be?
Thank you in advance

Error during Installing WAS 6 : createprocess failed

I'm tried to install Websphere application Server Version 6 for one development project, and when I start the installation I got the error message that.
the JVM is not correct and i should start the installation using -is:javahome <Java_home_DIR> Createprpocess ==> failed.
The problem is, at my computer I have the java sdk 1.4.2 installed and java_home is set correctly. The system could not find the file.
What I need to do to solve this problem, or someone knows why I'm getting this message?
WAS Server has own java runtime environment. IBM has own version of JRE and JDK.
All installation packages are referencing to internal JRE.

Categories