How can I show the folder (bin) where my class files are placed after I build a project in eclipse? I want this directory to show up in the package explorer. Searched the forums, but can’t seem to find an answer Answer You can view the the bin folders in the Navigator (Window –> Show View —> Navigator), which is
Tag: eclipse
Eclipse – passing VM parameter to every test in the project
I need to pass a VM parameter to every test that is run in the project. Setting this manually doesn’t seem to be the most convenient solution, so is there any possibility to pass the parameter to every test automatically. Thank you for help. Answer We change the JRE Configuration in Eclipse (Preferences>Java>Installed JREs). There you can set default VM
Auto code completion on Eclipse
I want Eclipse to automatically suggest to me all possible options, while I’m writing some variable/class name or keyword, like in Flash Develop or Visual Studio. Is it possible? If not, with which Java IDE can I get this? I’m specifically asking about a way to automatically get the same thing I get using CTRL + Space, while I’m typing.
Unable to select project for New->Servlet
I’m unable to create a new servlet because I cannot assign it a project. Also the browse buttons do not work, at all, as in they silently fail Am I missing something basic? I’ve been able to create,…
Why is my Eclipse Java package being treated as a folder?
My Eclipse Java package is treated as a folder; can anyone suggest what’s wrong? Answer Worst case, you’ll have to delete the folder and recreate as a java package. Save the Java classes somewhere else in your Java project by refactoring Delete the folder and the underlying folder structure Create a Java package Move the Java classes back under the
I am getting “java.lang.ClassNotFoundException: com.google.gson.Gson” error even though it is defined in my classpath
I’m trying to parse some JSON object strings that I’m getting using gson-1.6.jar I have placed it in the same location as my other .jars and have added it to my buildpath in eclipse. The other libraries worked fine when I added them and I can use them without any issues, but when I try to create the JSON object,
How to set eclipse console locale/language
When developing web application with Eclipse (Helios) the tomcat output is being sent to the console. Ok, but the messages are being translated to my OS language. In fact, my Eclipse is in English, but the Tomcat output (logging) is being translated to Portuguese. Probably it’s a Tomcat configuration issue, but I can’t find where… How do I change this
Eclipse Memory Analyzer – Leak Suspects Report doesn’t point to MY classes – why?
I’m trying to determine whether or not I have a memory leak in my webapp. I’m using VisualVM and JMeter to load test and watch the heap. I saved a heap dump to file and downloaded Eclipse Memory Analyzer yesterday…after much frustration with VisualVM, I thought Eclipse would pinpoint the leak, if any, better than VisualVM. I opened the heap
Find all occurrences of a function in Eclipse
In Eclipse, how can I find all usages of a function in a Java app? What is the shortcut for that? I tried with Ctrl+H to search by method, but it return me all methods with the same name. Answer You can find a menu entry in the context menu, when right clicking on the function. You can also press
How can I add JAR files to the web-inf/lib folder in Eclipse?
I’m using Eclipse and I need to be able to add Java libraries (JAR files) into my web application’s WEB-INF/lib folder. How do I achieve this? Answer Add the jar file to your WEB-INF/lib folder. Right-click your project in Eclipse, and go to “Build Path > Configure Build Path” Add the “Web App Libraries” library This will ensure all WEB-INF/lib