Can't install a single plugin on Eclipse 3.5 - plugins

I'm trying to install the Subversion team provider on Eclipse 3.5, and it fails with the following message:
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile,phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Collect, operand=, action=).
Result of processing steps.
Unpack facility not configured
OK
OK
Result of processing steps.
Unpack facility not configured
OK
OK
Not just SVN, try installing any plugin, and it fails to install. Isn't this a serious bug?
Has anyone else seen it or is there a workaround?
Changing to a brand new workspace doesn't help either.
Update: The problem was a bug in IBM Java 6- unpack200.exe wasn't working properly. It's fixed now.

What version of Java are you running with? Java 5+ may be required. See this email

I installed Java SDK from Sun and then started with the -vm option.
It seems that Eclipse used my GNU version of Java without the -vm option.
./eclipse -vm /usr/java/jdk1.5.0_22/jre/bin/

Right click on "My computer" -> Properties -> Advanced -> Environment Variables.
In "Path" under "System Variables", give your "bin" folder(in java/jre) path as the first parameter before DevSuite and other parameters.
This will solve the problem.
Thanks..!!

Related

Can't connect to Eclipse Marketplace

I am trying to install log4j Eclipse Plugin.
But I'm Getting this error message :
Unable to read repository at https://sourceforge.net/projects/oneclick-logger/files/site/content.xml. Received fatal alert: handshake_failure
I had the same issue for yet another plugin hosted on SourceForge. It seems to be a common issue.
As stated in the comments above, this solution helped me:
https://stackoverflow.com/a/38264878. But I had to go some extra steps to find which JRE my Eclipse installation was using. So here are all the steps put together. This instructions worked on my Mac, using Eclipse Neon. But other OS and versions of Eclipse will have really similar operations:
1./ Check the JRE used by Eclipse:
Click the "help" menu -> Installation Details -> Configuration
Then look for the -vm argument
2./ Open a finder/file explorer to the JRE's .../lib/security sub-folder
And make a backup of local_policy.jar and US_export_policy.jar. Just in case.
3./ Download the Java Cryptography Extension from Oracle:
Java7: http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
Java8: http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
And unzip it.
4./ Copy local_policy.jar and US_export_policy.jar just just downloaded into the JRE's .../lib/security sub-folder
5./ Restart Eclipse
Then retry the installation. It should be fine this time.

org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required

Before posting this question here: I looked up at
1)Glassfish 3.1.2.2 in IDEA 11.1.4: "PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required"
2) How do I specify the jdk for a glassfish domain?
3) http://alvinalexander.com/blog/post/java/fixing-glassfish-jdk-path-problem-solved
4) https://www.java.net//node/702274
5) "PWC6345: There is an error in invoking javac." error when using Jetty WTP plugin to deploy a JSP page on Jetty
I am able to open the glassfish admin window in eclipse, but when I am trying to run my project, I get this annoying error:
"org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required"
I looked at the above listed posts, but werent useful in my case...I have my java environment set..
But They Did not solve my problem. I still get the error as in the heading, there is already a question posted on a similar one, but doesnt have an answer I require....
That is probably the same problem encountered with the m2clipse plugin : You have to tell eclipse to use the JDK when launching Eclipse. Only setting the JDK/JRE on the Window>Preferences has no effect.
For example add this argument :
C:\eclipse\eclipse.exe -vm C:\Java\jdk1.6.0_20\bin\javaw
Or edit the eclipse.ini file to add the vm argument.
There are plenty of possibilities. Check this link to get the right answer : m2eclipse: Eclipse is running in a JRE, but a JDK is required
For those who can't find an answer here...
For me this problem occured when I kept re-deploying a project on Glassfish for a while and the server ran into PermGem. This message was displayed first and sometimes it doesn't even show up. Restarting the server allways helps.
Had this issue, realized that the issue was actually with my glassfish instance and not eclipse when i deployed the same war to a remote glassfish server and it deployed fine. So i went to glassfish docs and searched how to change the jdk for your domain and this worked for me.
asadmin set "server.java-config.java-home=path-to-java-home"
Solution is simple,
All you need to do below steps :
Prerequisites :
Make sure JAVA_HOME, JRE_HOME, Path must be set in environment variable (both locally and system variable) and verify the same in cmd
In Eclipse/STS/DeveloperStudio , Go to Windows -> Preferences -> Java -> Installed JREs
Remove the old JRE_1.8.012 and add new i,e : Add -> Standard VM ->JRE Home : C:\Program Files\Java\jdk1.8.0_121 (give JDK path not JRE) -> JRE Name : jdk1.8.0_121 -> Finish
Then Select, the listed JDK -> apply and close
Go to Server(Tomcat) -> Runtime Environment ->verify selected runtime JREs it should be jdk1.8.0_121 (In my case)
Restart Eclipse, restart server
You need to run Glassfish using a JDK rather than a JRE. I'm not entirely sure what you mean by having your Java environment set, but it wouldn't apply here. Eclipse is running the Glassfish server you told it about using the Java Runtime you told to use.
If you are like me trying to run the application in a standalone container, and not in Eclipse environment. You need to change the JVM general settings on glassfish through admin console, and restart glassfish
I added this line to 'eclipse.ini' file which is present inside eclipse folder.
-vm
C:\Program Files\Java\jdk1.8.0_131\bin\javaw.exe
and I also change the JRE path in eclipse
windows -> preferences -> java -> Installed JREs
and provided path upto jdk
C:\Program Files\Java\jdk1.8.0_131
my issue resolved.
Thanks
I faced the same problem and resolved it.My eclipse was using jre not jdk.I just changed the jre.
Go to Window->Preferences->Java->Installed JRE's.
Remove the entry and add the path to your jdk's bin folder.
After adding don't forget that your jdk is checked and then apply and close the windows.Now the program should run.
I had this same issue, this was due to the mistake that I had forgot to set JAVA_HOME to point to the correct Java installation path in my environment variables.
Try add vaiable AS_JAVA in ./glassfish/config to asenv.bat or/and asenv.conf
Set the JDK in
C:\glassfish4\glassfish\config\asenv.bat
to
set AS_JAVA=C:\Program Files\Java\jdk1.x.x_xx

ANT script error after installing newer version of JDK on my system

After installing the newer version of the JDK 6 (1.6.0_41) from 1.6.0_37, I went into Eclipse and updated the Installed JREs in the Java section under the preferences menu. I then went into my ANT script to test some changes I made and when I tried to run the ANT script I got this error:
Specified VM install not found: type Standard VM, name jdk1.6.0_37
The specified VM is not the jdk1.6.0_41. This has also been updated in the PATH and JAVA_HOME environment variables.
Any suggestions as to WHERE else to make a change so that ANT sees this?
Here is the error I'm getting:
Thanks.
After additional hunting around in Eclipse, I found in the ANT view an External Configuration Tools option when right clicking my Ant script name and under the JRE tab is where the setting was. I changed the setting to use the same JRE as the workspace and then all was fine.
Just in case anyone else ran into this same problem I thought it might be helpful to post my findings.
Ant won't mind the new jdk version as long as its name stays unchanged under Preferences / Java / Installed JREs.

Unable to install the Force.com plugin for eclipse. getting md5 mismatch

I'm trying to install the Force.com IDE plugin. I found it, it started downloading, but once the plugin goes to install I get the following error at about 45% completion:
Installing software has encountered a problem. An error occurred while collecting items to be installed
When I click details about this error, I get the following. Anyone know how to fix this and get the plugin installed? Thanks in advance
An error occurred while collecting items to be installed
session context was:(profile=SDKProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,com.salesforce.ide.api,23.0.2.201201091635.
MD5 hash is not as expected. Expected: 97a6329f82c422a61e9b1bc28be7cace and found ef8b1c2b63c7d04acaa6bf41f4b8570c.
My solution: download plugin jar files manually and put them into eclipse installation directory. The problem was in corrupted (partial) download of jars by eclipse.
Download all jars of particular needed version from http://www.adnsandbox.com/tools/ide/install/features/ and http://www.adnsandbox.com/tools/ide/install/plugins/
Make sure to use some download manager to ensure files integrity!
Then put them to /features/ and /plugins/ folders of your eclipse installation directory accordingly.
Run plugin installation as described by salesforce (Jars will not be downloaded again) - Success!
Make sure you're running Eclipse as an Administrator (right click, select "Run as Administrator") when installing plugins.
If that doesn't help, move your Eclipse folder to the C:\ on Windows because there are issues with the Program Files folder permissions. Then run it as an Administrator and try to install the plugin again.
I just got it working;
Install Eclipse 3.6.1 (Helios SR1)
The IDE FAQ recommends Eclipse 3.5 and 3.6, but the install instructions link you to 3.6 SR1 .
Ensure you only have the latest JRE
I am running Java 6 Update 26 as of this post.
Make sure you don't have any legacy JREs installed
I had to uninstall a 1.4 Java environment before the IDE install would work.
Then follow what Matthew Keefe said;
Run Eclipse As Administrator
Move the Eclipse program directory outside of the Program Files directory.
Edit: Eclipse 3.7 installs the IDE successfully once the Java version is correct.

cannot install Google plugin in Eclipse

I want to install Google plugin, GAE and GWT on Eclipse i tried in different ways by trying to install all at once and only one at a time but i get this error
Cannot complete the install because one or more required items could not be found.
Software being installed: Google Web Toolkit SDK 2.3.0 2.3.0.r36v201105191508 (com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group 2.3.0.r36v201105191508)
Missing requirement: Google Plugin for Eclipse 3.6 2.3.2.r36v201106211634 (com.google.gdt.eclipse.suite.e36.feature.feature.group 2.3.2.r36v201106211634) requires 'org.eclipse.pde.core 0.0.0' but it could not be found
i could install Android without any trouble.
can anybody help me to solve this?
Thanks !!!
EDIT : i am using Eclipse 3.6 - Helios
I had this problem as well, and neither running as administrator nor changing the eclipse directory permissions fixed the issue for me.
Eventually, I discovered that the Eclipse download site (http://download.eclipse.org/releases/juno) was disabled in my "Available Software Sites" preferences. Enabling it solved the issue for me.
I got same problem and solved by launching Eclipse as administrator.
I post this for people who face this error in future.
Firstly I changed permissions on the directory where I put Eclipse as CobaltBlue suggest but it didn't work. Next I launched Eclipse as administrator and tried again, then installation is completed!
I'm not sure it is necessary to change the access permission of the directory of Eclipse.
I am using Eclipse Juno and OS is windows 7.
If you're running on Windows, check the permissions on the directory where Eclipse was installed. Test if this is the problem by adding the user "Everyone" and give them read/write/execute access to that directory. If it works, then that was the issue.
Also, if you are not running Eclipse as Administrator, you'll want to update the shortcut you use to launch Eclipse and select "Run as Administrator."
The part of the error message that says following looks kind of odd to me
requires 'org.eclipse.pde.core 0.0.0'
If 0.0.0 is the required version of org.eclipse.pde.core plugin then something must be wrong in the dependencies being detected by eclipse's dependency resolution system. 0.0.0 just doesn't seems to be a valid version.
What update site are you using? Is it the correct one for eclipse 3.6?