JVM requirements incompatible error - java

I have following Java installed:
Java 32 bit
Java 64 bit
I have eclipse-standard-kepler-SR2-win32-x86_64 installed in my Windows 7 64 bit pointing to jdk1.8.0_05.
When trying to install IBM software packages (IBM Rational Team Concert Client) using IBM Installation Manager, it gives below error:
The JVM requirements of the package are incompatible with the JVM java
version "1.8.0_05" used by the existing Eclipse IDE
This is my eclipse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jdk1.8.0_05\bin
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m
What thing that I have misinstalled?

The RTC Eclipse client requirement page mentions Eclipse 3.6.x and 4.2.x (Juno) as compatible Eclipse clients.
Kepler (Eclipse 4.3.x) will be for RTC 5.x only.
(Note: accessing the jazz.net wiki requires a jazz.net account: you have to create one, it is free)
That being said, with the latest RTC 4.x, you can try the process described in this thread which could work even for Juno (4.3):
Download an Eclipse release from http://www.eclipse.org/downloads/packages/release/juno/sr2
Extract the Eclipse release to c:\tools\eclipse
Extend Eclipse by adding a remote update site with the RTC p2repo from ...\RTC\4.x\RTC-Client-p2Repo-4.x.zip
When Eclipse has restarted shift to the Jazz Admin perspective
The RTC-Client-p2Repo-4.x.zip file is available on the RTC "all downloads" page, like for instance:
https://jazz.net/downloads/rational-team-concert/releases/4.0.6?p=allDownloads

You can edit eclipse.ini file like following for java 1.8
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx512m

The installation doesn't matter as much as your Environment Path location for Java Compiler.
Try doing a Clean install and stick to the 32 bit installations. I have had issues with 64bit JDK installations.

Related

Spring Studio 3.8.4 won't start up

I'm running windows 7. When I double click on STS.exe, then this is the error message I get.
I uninstalled all JRE/JDKs, downloaded the latest one (v8 u131), and manually added the -vm line below.
STS.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.401.v20161122-1740
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jre1.8.0_131\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms40m
-Dosgi.module.lock.timeout=10
-Xverify:none
-Dorg.eclipse.swt.browser.IEVersion=10001
-Xmx768m
It turns out that if you go to https://spring.io/tools/sts it will give you the 32bit version of eclipse by default.
I needed to go to https://spring.io/tools/sts/all and specifically find the 64bit version of eclipse (STS) to match my JDK which is 64bit.
Eclipse error detection/reporting could easily be improved to save a lot of unnecesary grief. And the Spring website could be improved to offer both 64bit and 32 bit links from the download page so that the decision/distinction is obvious.

Re-Download Eclipse?

I finally got rid of errors 13 and 1 but now I am dealing with the worst error of all, can not find jvm.dll. So I checked my copy of the JDK and it has two jvm.dll's, server, and client. I also got the 64 bit version of the JDK and Eclipse. I add the JDK to my PATH variable, and put the -vm tag in every directory of the JDK in Eclipse.ini, but still Failed to load shared library jvm.dll.
This is what I have in Ecilpse.ini:
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.pl
atform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-XX:-UseCompressedOops
-vm
C:\Program Files (x86)\Java\jdk1.8.0_51\jre\bin
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms256m
-Xmx1024m
What should I do?
Sorry for not having enough reputation to comment, so first of all, are you sure that have JRE and JDK are correctly installed on your machine these seem to be problems with either the installation of the JDK and JRE or of eclipse itself, also since the problem is with finding a .dll file I assume you are running eclipse on a Windows machine, this shouldn't happen if you installed eclipse, the jdk and jre correctly, it should detect all these files automatically, I suggest you to make sure that you installed the correct versions of the JDK and JRE(×86 for 32 bit and ×64 for 64 bit) and reinstalling eclipse again.
P.S: I suggest that you also use the latest version of eclipse, there is an installer now so it should solve most of these problems (or if you used the installer then it may be the cause of the problem and you should install it in the old way (extracting a zip file and creating a shortcut from the eclipse.exe file)) hope this information helps

Can't Open Eclipse "No Java virtual machine was found"

I've checked the other relative common posts to mine but they a slight difference that didn't give me the solution I needed:
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
C:\Program Files (x86)\Java\jdk1.80_25\jre\bin\javaw.exe
I have checked over and over in that path, and javaw.exe is definitely there. Any ideas what to do, I had a exit-13 problem before I followed a step to add
"-vm "path to javaw.exe" in my eclipse.ini but I don't know what to do now.
My eclipse.ini file:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:\Program Files (x86)\Java\jdk1.8.0_25\jre\bin\javaw.exe
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx512m
Got it to work, uninstalled all my Java's, reinstalled jdk (x86) in my case, installed newest jre (x64) to delete obsolete ones from the jdk and it worked. THanks everyone
-vm
C:\Program Files (x86)\Java\jdk1.8.0_25\jre\javaw.exe
should be something like
-vm
C:/Program Files (x86)/Java/jdk1.8.0_25/
or even better:
-vm
C:/Program Files (x86)/Java/jre1.8.0_25/bin/server/jvm.dll
On a side note, download the 64bit version if you can
The potential problem is you are using 64 bit Eclipse but 32 bit java. Either use 32 bit eclipse or install 64 bit java and re-try. It all started with Java 7!
Just copy this file:
C:/Program Files/Java/jre(5,6,7...whatever version)/bin/javaw.exe
to the Eclipse folder (directory where the eclipse.exe is located)
Please note: Only tested for Windows
Alternatively, right click on Eclipse icon, select Properties and edit Target field.
There will be a large string, edit it to point to correct javaw.exe path:
-vm "c:/Program Files/Java/jdk1.8.0_65/bin/javaw.exe"

Eclipse Failed to create the Java Virtual Machine

I'm using eclipse to develop android application and it always gone well, but today it's giving problems.
When i try to open eclipse it show me this message "Failed to create the java virtual machine. Error occurred during initialization of VM. Could not reserve enough space for object heap"
This is my eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-product
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256M
-showsplash
com.android.ide.eclipse.adt.package.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms1336m
-Xmx1336m
-Declipse.buildId=v22.3.0-887826
-XX:MaxPermSize=512M
I tried to change "256m" in "512m" but it still doesn't work. I tried to restart but nothing. I tried to change the -XX:MaxPermSize=512M value, but nothing.
Just add your JDK path in windows environment variable.
Open eclipse.ini and change the following variables.
For -Dosgi.requiredJavaVersion=1.8, try changing your required Java version to 1.6.
Memory-related defaults (as of Eclipse 3.4):
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
Recommended settings for Android development:
-Xms128m
-Xmx512m
-XX:MaxPermSize=256m
If everything else fails you can just delete or rename eclipse.ini and let the IDE handle everything. I strongly suggest looking for a current replacement for your eclipse.ini and reading up on how to configure the eclipse.ini for Android development.
Closed all the other memory intensive application in my windows7. And tried to
open eclipse. This worked for me, and I found it on similar question here Stackoverflow-eclipse failed to create JVM.

Eclipse Indigo typing lag on OS X Lion

I am working on a fairly large project and have recently bumped into the good old friend of mine from the 90's, typing lag.
My setup is MacBook Pro 2.2 GHz i7 8GB with SSD drive and it hasn't had any serious performance issues so far.
I have increased the memory allocations to -Xmx1024m and -XX:MaxPermSize=512m. There is no heavy use of plugins involved. Also, this only happens on .java files in the default editor.
What could be the problem?
EDIT:
I found the problem. I noticed that the problem occurred only when editing large java files. In my case the class had 1800 rows.
It's weird though, since I am not facing the same problem with the same eclipse setup on Ubuntu. It seems like Eclipse on Mac just can't handle java files that big I was editing.
Any suggestions?
EDIT2:
I am using the Eclipse Indigo for Java EE with the latest updates (3.7.1.X)
Installed plugins:
m2eclipse
MercurialEclipse aka HGE (1.9.1 from the official eclipse update site)
Subclipse (installed, but not used in the workspace where the typing lag occurs)
ADT (installed, but not used in this project)
All plugins are installed via Eclipse marketplace and are updated to the latest release unless stated otherwise.
Try altering the settings in your eclipse.ini file. This contain the settings for the JVM and can help reduce memory issues like this.
Example eclipse.ini:
-data
../../workspace
-showlocation
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
384m
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-vm
../../../../program files/Java/jdk1.6.0_17/jre/bin/client/jvm.dll
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx384m
-Xss4m
-XX:PermSize=128m
-XX:MaxPermSize=384m
-XX:CompileThreshold=5
-XX:MaxGCPauseMillis=10
-XX:MaxHeapFreeRatio=70
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:+CMSIncrementalPacing
-Dcom.sun.management.jmxremote
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/jv/eclipse/mydropins
Detailed in this question and this question.
Jivings was right about the root of the problem being in the eclipse.ini file.
I am not sure what I have actually changed in the eclipse.ini after messing around with the it, since the TimeMachine does not seem to be able to save a backup of the .ini file inside the Eclipse application package (Eclipse/Contents/MacOS/eclipse.ini).
I actually lowered the MaxPermSize and other memory values which made Eclipse run smoother. If anyone else is encountering the same problem, I suggest you try similar values and see if that works. If it doesn't, I also read that you can start eclipse once with the -clean argument, which cleans up some installation and usage history among other things. I did not do that, but it's worth a try.
The following is my current configuration, and it works pretty well:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

Categories