Eclipse hangs on startup [duplicate] - java

This question already has answers here:
How do I prevent Eclipse from hanging on startup?
(36 answers)
Closed 6 years ago.
I have problem with running my Eclipse. I tried 3.7, 4.2 and 4.3 versions with java 6 and java 7. Nothing can help me. It shows me popup screen but it doesn't start to load( I dont have chance to choose workspace).
Starting it with -debug -console parameters shows that it stops running in this moment:
Time to load bundles: 10
Starting application: 6374
osgi>
I have started JVisualVM but I cannot observe anything special. There are no deadlocks etc.
Edit
My observations were to deep... After ~60s pid of eclipse is dead.
Edit 2
Now it stops on
Time to load bundles: 8
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized. Will retry after the state location is initialized.
Starting application: 3557
Edit 3
I have managed to start it but only with -clean parameter and with choosing workspace from command line -data parameter.

Remove .snap (or .markers in Indigo) from .metadata.plugins\org.eclipse.core.resources.projects\\

I've had exactly the same problem and could solve it using the answer here https://stackoverflow.com/a/5504530/1275767 which works by moving the projects out of the workspace and back in again after Eclipse has been started and stopped.
Starting it with -clean -data started eclipse but whenever I switched the workspace using the eclipse gui it wouldn't load.

With Eclipse Kepler, you need to remove all of the .snap files within the .plugins directory, i.e. C:...\eclipse-jee-kepler-R-win32.metadata.plugins. Once I did that, everything started up fine. (NOTE: There are about 10 *.snap files total)

Couldn't solve these problems with any of the above options on mars or neon. Downgraded to Luna, which also happens to be the version that I had deleted previously. This worked for me.

Edit workbench.xml in the \workspace\.metadata\.plugins\org.eclipse.ui.workbench\ folder
remove all the coding in XML File in between <editor></editor> in the <editors></editors>
save the xml file and close the eclipse platform and restart your Eclipse and it should run properly

Tried all the above options, nothing worked. So I finally figured out the solution:
I removed all JRE installations in my C:\Program Files and C:|Program Files(x86) folders. Installed a new JDK 7 package, copied the fullpath of JDK7\bin folder and appended it at the end of the "Path" variable found under 'Environment variables' of my Windows 7 pc. Then restarted everything, so it worked.

Related

JDK 8 is MIA on my Mac, how can I find and remove it?

So, long story short I installed jdk-8u74-macosx-x64.dmg to do some development work in intellij, installation and setup was fine and I was able to select in intellij no problem.
But I soon discovered that the version of grails I wanted to use is incompatible for various as yet unsolved reasons so I want to revert to 7.
I downloaded jdk-7u79-macosx-x64.dmg and run the install I but cannot find where it was installed, looking in the java system preferences stuff it doesnt look like its installed or selectable in there in the "View/manage Java runtime" section :/
For some information on what my machine seems to have on it my current java -version returns java version "1.8.0_74".
Finding it to set up my JAVA_HOME etc originally was a PITA but I ended up finding it in the Java system preferences path which pointed to the following path: -
/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home
I don't seem to have a Library/Java folder if I try to go to the path above there is nothing inside my Internet Plug-Ins folder at all (I've unhidden hidden files and there is still nothing there in finder, if I navigate to this folder in a terminal window and type ls -lah I get this: -
total 0
drwx------+ 2 petercopper staff 68B 1 Mar 20:33 .
drwx------# 54 petercopper staff 1.8K 20 Apr 07:34 ..
How can I delete java 8?
The oracle websites instructions tell you to go to the Java folder in Library, which I dont have. And running the JDK 7 install doesn't seem to work when 8 is present...
Any ideas on how to remove 8 or install and select 7 would be much appreciated!

Eclipse opens and then immediately closes after graphic appears

When windows installed updates, it closed my eclipse and corrupted the workspace or something. When I try to start eclipse I get the error:
I have already tried most of the google solutions. I tried deleting the plugins folder, and it still does the same thing. I tried adding the --clean option to the eclipse launcher, and it still crashes. If I delete the org.eclipse.e4.workbench folder, it still does the same behavior. When I try to start eclipse it shows the launcher logo for about a quarter second, and none of the above solutions fixed my problem.
Any other ideas?
Thanks,
The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.mylyn.tasks.core 2 0 2015-08-24 08:54:58.371
!MESSAGE Failed to load tasks.xml.zip, restoring from snapshot
!STACK 1
org.eclipse.core.runtime.CoreException: Failed to load Task List
Step 1: Open Command Prompt as Administrator
Step 2: Change Your Directory to eclipse folder
Run
Step 3: eclipse -clean -clearPersistedState
Done!
Just Uninstall the latest Java updates from ControlPanel->Programs and Features
and Re-Open Eclipse .
SOLUTION IS SIMPLE
Firstly you wil come across this issue if you have uninstalled Java versions from system uninstall window. eg., I uninstalled Java 8 u151 from my machine and downloaded and installed Java 8 u152. Then it was opening with splash screens for few seconds.
Quick Fix is:
Undo all your java version changes.
Uninstall 152 for exammple and install the original 151 version. This fixed my issue.
DONT FOGET TO COPY ECLIPSE folder TO c:\program files folder.

Installing Glassfish Server with installer fails on Windows 7 [duplicate]

This question already has answers here:
eclipse error: glassfish\domains\domain1 does not exist
(8 answers)
Closed 6 years ago.
iam a complete newbie in this area and dont know what to do.
For a Java ee tutorial i have to install the GlassFish server on my Windows 7.
I have followed the instructions and installed the newest JDK.
After i have downloaded the GlassFish native installer with multilingual from this website
glassfish.java.net/download.html i pressed the exe and it starts to install, but after 30
seconds it stops and a window pops and says that the software was not correctly installed that i
have to do it again with the correct settings. The result of the tried install is that the GlassFish
installer creates a glassfish4 folder under c:/glassfish4 but the glassfish4 folder is complete empty.
The newest JDK is installed even so i did not know what to do. Than i choose to install the GlassFish
server 3 and everything worked fine. A glassfish3 folder was created under c:/glassfish3 and i have
installed the glassfish tools for eclipse. The problem here is that the glassfish3 installer did not create the domain1 folder. I followed the instruction given in this question
eclipse error: glassfish\domains\domain1 does not exist
but the command
glassfish-install-dir\bin\asadmin create-domain your-domain-name
doesnt work i get the same error message like the poster of this question that cmd gives path error.
I also tried to execute the glassFish4 installer exe as admin but it failed also.
Now i dont know what to and how to install the GlassFish4 server correctly it is so frustrating.
Please help!
Try running the following command:
glassfish-install-dir\glassfish\bin\asadmin.bat create-domain --adminport 4848 domain1
And then try to start it again.
I also faced the same problem few days back. Please follow the instruction.
Glass Fish Server may be searching for proper JDK before creating a domain.
You can download zip archive for glass fish server and unzip it and use it as server.
This zip file already will have default domain created.
If you want to install it. Then please follow the below mention steps.
Step 1.
Go to /glassfish/config
Step 2.
Open asenv.bat in editor and edit set AS_JAVA=""
Mention jre installation path properly. It should be till bin directory.
Step 3.
Save file and start glassfish server installation again.
Step 4.
Choose "Custom Installation" press next
Step 5.
Choose "Configure an existing installation"
Step 6.
Mention the older installation directory and follow the instructions.
Domain1 should be created.

Unable to install new software/check for updates eclipse

I'm trying to install subclipse on my desktop so i can use subversion.
When I was at school with my laptop, the installation worked well and i was able to update and commit on the subversion, but, while i was at home, i tried to update and nothing worked. Then I tried on my desktop to install the subclipse plugin without success.
When I go to "Help>install new software>Work With Kepler - http://download.eclipse.org/releases/kepler"
Nothing appears on the software view except "pending..."
The thing I don't understand is that i'm not using a proxy at home, so i don't understand why it's freezing at this step.
Then, I tried to change my eclipse version but it didn't worked
I also tried to change my network settings without success
Anyone had the same problem before or know how to fix it ?
EDIT 1 : While waiting for the pending thing to resolv i had an error :
"Unable to read repository at http: //download.eclipse.org/releases/kepler/content.xml.
Unable to read repository at http: //download.eclipse.org/releases/kepler/content.xml.
Connection has been shut down"
I solved a similar issue today with a new eclipse Kepler installation on a machine with Java 7. We eventually got it to work by having eclipse run on a Java 6 JRE instead.
To do this, add
-vm
C:\Program Files\Java\jre6\bin\javaw.exe
Above the -vmargs line in your eclipse.ini file (which should be next to your eclipse.exe)
Looks like you have extra whitespace between : and /

Installed Eclipse, but it won't start

My Eclipse Kepler had been running just fine until I messed up some settings and then had to delete the installation directory and re-extract the zip file. I also deleted the workspaces.
But after I had extracted the zip file, the Eclipse just won't start.
I tried extracting to another drive (C:) this time, still won't start.
Also tried the -clean option, but to no avail.
What went wrong?
There are few things I could think of that are trivial, but might solve your problem. Maybe you changed JAVA_HOME in Path, or deleted it. Check for Environment Variables for JAVA_HOME.
Another thing is that you have Java 6 and you need Java 7. Or in your case, you need Java 7 x64. Maybe you have installed Java 7 x64, but JAVA_HOME points to another version of Java. Check for that too.
Ultimate solution is to write in eclipse.ini argument for desired virtual machine path, like:
-vm
/path/to/desired/java/vm
You can start eclipse with debug / console flag and see exactly what is happening
Run eclipsec.exe this will launch Eclipse with a debug console in the background.

Categories

Resources