I was working on eclipse two days ago, and closed it properly.
Now, when I'm trying to start it, I get the splash screen popping for a blink of an eye, then disappearing.
I get:
no error message, and
no error is logged in the <workspace>\.metadata\.log file (the last errors logged there are from two days ago).
Apparently, the problem isn't with the workspace, because I changed the SHOW_WORKSPACE_SELECTION_DIALOG argument in <eclipse>\configurations\.settings\org.eclipse.ui.ide.prefs to true, and it doesn't even get as far as showing the dialog.
There's only one thing I can recall I did before it stopped working - I have installed a plugin for UFT Java Extensibility SDK from HP.
Needless to say uninstalling it didn't help.
Is there any other log I can hope to find helpful?
Or anything else I can do to get it to work?
EDIT:
I was just trying to start another instance of eclipse I have (adt-bundle-windows-x86-20130219), and got the same outcome.
EDIT:
I added Java & QTP to the title in order to help others who bumps into the same issue.
If the JRE is somehow the issue, try installing a JDK (not a JRE), in a non-default path (for instance, C:\Prog\Java\JDK1.7.0_xx), and make sure your eclipse.ini explicitly reference that JDK.
-vm
C:/Prog/Java/jdk1.7.0_21/jre/bin/server/jvm.dll
(you can use '/' even on Windows in an eclipse.ini file)
The problem was indeed with Java (Thanks Arne). Re-installing the jre didn't help, so I also tried to deleted the JAVA_OPTIONS and JAVA_TOOL_OPTIONS enviroment variables, which solved the problem.
Later, I found this discussion which seems related to my problem: http://h30499.www3.hp.com/t5/Unified-Functional-Testing/Environment-variables-JAVA-OPTIONS-and-JAVA-TOOL-OPTIONS-is/td-p/5855995.
I will look more deeply into it later, when I will start using HP's plugin, but I hope this thread can help others who run into trouble with eclipse after installing this plugin.
Related
I have recently been using the Atom editor with its ide-java package to do some Java development. It has worked well enough for me and I'd like to continue to use it.
I have just refreshed my Mac from scratch after having some repairs done on it that required erasing the disk. Since installing on this refreshed Mac, I am getting red error highlights on pretty much every line of code, including the first line of files which start with a comment. Most of the errors have a message something like this:
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
A Google search shows this error and some fixes within Eclipse projects, but I am not (directly) using Eclipse and I've had a hard time figuring out how to fix the problem in ide-java.
I've tried deleting the .project file and the .settings folder and allowed them to be auto-regenerated. I've tried uninstalling and re-installing the ide-java package. I've tried setting the package's Java Home to both a Java 8 and a Java 10 home folder. None of these have made a difference.
Can anyone offer any advice on how to troubleshoot and make this work as it has for me in the past?
To fix this - you can try to reset atom settings.
For linux:
mv ~/.atom ~/.atom.bak
You will have to install packages again, but this helped me to fix the issue
I am facing a problem, as the title suggests, have no idea what happened here. My eclipse does not show comments/docs in bubble any more. As you can see I have written some comments on a method but still it would not show them.
Note: I have restarted eclipse + PC several times without any success. The comments do not even appear for my own methods.
Please help
IDE's can be very moody sometimes. Try either completely restarting eclipse or restarting your machine all together. If all else fails, reinstall.
Eclipse may not showing code docs in different situations -
The code may have not java doc
Or the jar file for the code is not added in eclipse classpath
Yesterday I coded a bit and then exit eclipse as I normally do. When I started it today, without doing any sort of eclipse/java updates, it hangs as soon as it starts and nothing can be done. I have tried reading the log and searching on google, but there is so much stuff there that I don't know what to search for. All hits on google send me away to useless sites.
Here is the log that I found in workspace/.metadata/.log
EDIT: Sorry, I thought that eclipse clears its logs on startup. I removed 2 files, .log and .bak_0.log and then restarted eclipse and funnily enough that fixed the problem :D. So remember children, when your eclipse stops working, try cleaning the logs :D.
Also this is my fresh log file, there is one error left that I would like to take care of while I'm at it.
http://pastebin.com/biSDSFTS
Tried all the 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 the JDK7\bin folder and appended it at the end of the "Path" variable under 'Environment variables' of my Windows 7 pc.
Then restarted everything, so it worked.
I've installed Eclipse and tried to do the "Hello World" program a couple of times and for some reason it never seems to work, could anyone help me out with this because I'm quite lost seeing as I've never used Eclipse before, heres a screenshot of my UI and what I get as an error:
Also I may have forgotten something very basic knowing me, seeing as it's been months since I last programmed, feel free to mention it nonetheless.
You are trying to run a program full of compiler errors, so no wonder it doesn't work. In your case it's the JRE configuration—you need to bind your installed JRE to the Eclipse's JRE setup. You can type Ctrl-3, jre, enter and you'll be able to go directly to the proper preference page.
Eclipse is not able to find HelloWorld.class file. Might be due to compile time problems.
You can check in the output directory of your project, weather .class file is there or not.
I am having a problem with Eclipse where I can run my program just fine, but when I try to start the debugger, I get this message
The picture is a little hard to make out, but instead of getting the normal debugging window, instead it says it is throwing a ClassNotFoundException, and is trying to dislay the source for Launcher$ExtClassLoader.
The thing that really baffles me though is that I can run the code just fine, it is only when I click the debug button that I have the problem.
I have also tried debugging at the command line with JDB, and I got the same error.
So far, I have tried Reinstalling Eclipse and downloading (what I believe to be) the correct Java Development tools for Mac OS X.
I have no idea what else I can try, so any help would be greatly appreciated. Let me know if there is any other information I can provide.
Source not found might be legitimate for dynamically loaded code (e.g. Maven).
There are three workarounds known to me (after months of search):
Connect to a running JVM with the debugger and you will see the code.
Use Dynamic Source Lookup plugin for Eclipse from here:
https://github.com/ifedorenko/com.ifedorenko.m2e.sourcelookup
Use run-jetty-run Maven plugin
http://code.google.com/p/run-jetty-run/
I prefer and recommend 3. It works and starts webapp much faster than jetty:run.
Unfortunately 2. didn't helped me as it has issues with Windows paths with spaces.
I have filled an enhancement request on Eclipse Bugzilla and if you agree this issue "Source not found" should vanish forever, please vote for it here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384065
Do you have the sources for the files that you are using. If you are using Maven (M2Eclipse) you could download the sources. This might solve the problem.
Otherwise you could go and manually attach your sources. Here is how you manually attach sources.
Next you have to attach the sources-
Hope this helps
The "source not found" is a red herring - there may simply be no way to get access to the source that is throwing the error, because it is deep in the guts of the debugger's class loader.
The better question, then, is, "Why is scottrice.ChessPuzzles.ChessPuzzleDriver not being found?" The only possibility that occurs to me at the moment is that something might be weird in your debug configuration. Did you debug the program by just right-clicking a file with a main() and choosing "Debug As" -> "Java Application"?