Spring STS fails to run on windows 10 64bit - java

Running on windows 10 64bit, I downloaded the Spring sts 3.8.2 from their website for 64bit windows and installed JDK 1.8.0_111 and JRE 1.8.0_111.
JDK is added to environmental variables PATH.
when running the STS I end up with the following error message:
What I also don't understand is that in the task manager STS is marked as 32bit version although I downloaded the 64bit version:
and this is what I get for the java version:
java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
Any idea what's going on with this ?

Install Java JRE and JDK on same location in your PC.
Because STS looks for JRE and JDK to be installed at same location.
Or you can change STS configurations.
But I'll recommend You to re-install the same versions of JRE and JDK at same location.

I had the same problem. It turns out that STS needs full JDK to work and gives this error when only JRE is present. I had to download NetBeans that comes with JDK. After that STS works without an issue.

Related

How PyCharm runs without JRE although it is made using Swing?

Is PyCharm made using Java-Swing?
If it is, then how does it runs on a PC where JDK or JRE hasn't been set up yet?
When I look at my own PyCharm installation directory structure, I see a jre64 directory, which contains a Java installation.
And that seems to be a normal JRE:
$ ./pycharm-community-2018.2.4/jre64/bin/java -version
openjdk version "1.8.0_152-release"
OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b8)
OpenJDK 64-Bit Server VM (build 25.152-b8, mixed mode)
So PyCharm comes with a Java distribution which it uses (even instead of an already available Java installation). Instead of my pre-installed and configured java 1.8.0_191, it uses the version it comes bundled with:

How to update java on macOS Sierra 10.12

I am trying to install eclipse-cpp oxygen on macOS Sierra 10.12. While installing it i get an error that java version is not 1.8, while I had already installed latest JDK package. on terminal it shows java version as below
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
Please suggest how can I upgrade my java version.
Apple don't provide a version of Java greater than Java 6. You must install Java 8 from the Oracle site.
In order to run Eclipse you must install the full JDK, the JRE download is not enough as it does not include the java executable.
The Oracle site is here
You can install Java8 from here.
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
make sure to check the latest binaries of java and javac in PATH. You can override the old java binaries in path.

Eclipse Neon installation fails because of missing JRE/JDK

it opens a web browser and a page tells me that I have to install either JRE or JDK version 1.7.0 or higher. I have installed JRE 1.8.0, in fact in command line I can see:
d:>java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) Client VM (build 25.121-b13, mixed mode)
I also setup JAVA_HOME and PATH accordingly but no luck. Is there something else I can try?
Thanks
I found the issue: I installed JRE X86 while Eclispe wanted the X64 version. I have installed it now and the installation process goes on. I didn't install JDK because I want Eclipse for C++ I don't need Java things. Thanks anyway, I hope this will help others!
You need the JDK installed to run Eclipse, or even better, to develope java apps at all...
verify that by doing in a terminal:
>javac -version

Eclipse Luna requested Java 1.8 but failed

I downloaded Eclipse Luna and ran from the terminal in Mac OS X:
> /Applications/Eclipse.app/Contents/MacOS/eclipse
JavaVM: requested Java version (1.8.0) not available. Using Java at "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home" instead.
However, I have:
> java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)
What am I doing wrong?
Luna seems currently having a bug: it installs the wrong Java version as its own dependency and then fails claiming that version is wrong.
You need to install Java separately (download official SDK from Oracle website) and make that one default. Be sure you install SDK and not the web plugin. Type java -version to verify the version and then which java to tell the exact path. Edit eclipse.ini as usual and set there the correct path to Java executable.

Can't start Eclipse on OSX (Version not suitable)

I just tried to run Eclipse on a Mac Book Pro running OSX Mavericks. I've downloaded both, the 32 and the 64 bit version. Both end up in following Notification:
Version 1.6.0_65 of the JVM is not suitable for this product.
Version: 1.7 or greater is required.
I know that the question was already asked, but my Eclipse won't event start with the 64-bit version, which was the answer for a smiliar question. So I checked the version of my installed Java by running
java -version
In the terminal. The output really confirmed, that version 1.6.0_65 was installed. Here's the output:
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
Now the problem is that when launching the Java Control panel, it says, that Java 7 Update 67 is installed, and there are no updates.
So where's my problem, how get I get Eclipse to run?
You can modify the eclipse.ini and add the path to your JDK7
For versions of Mac OS X 10.7+ the location has changed to
-vm
/Library/Java/JavaVirtualMachines/<''jdk_name_ver''>/Contents/Home/...
To be safer, determine the location for the JDK you intend to use via the utility /usr/libexec/java_home and put this value with .../bin/java appended into the eclipse.ini file.
See "How to install JRE 1.7 on Mac OS X and use it with Eclipse?"
I installed JDK, "Java SE Development Kit 8u101", in addition to JRE and eclipse started to work fine.

Categories