eclipse

NoClassDefFoundError when running Facebook official example

Sorry I am new, stackoverflow does not allow me to post image and links... I try to use Official Android SDK (http://github.com/facebook/facebook-android-sdk/). I install the SDK and try to run the Example At first, it fails at "build", it cannot find the Facebook SDK, so I try to follow the steps found in SDK page: Add a dep...

How to set up Eclipse to run with as much RAM as possible?

Possible Duplicate: Is there a maximum number you can set Xmx to when trying to increase jvm memory? On my x64 Windows with 8GB physical RAM I'd like to increase performance of my Flash Builder (an IDE built on top of Eclipse). This is usually done by adding something like this to eclipse.ini: -Xmx1024m I'd like to use some...

Getting Error running javac.exe compiler message, while using Ant in Eclipse

When I run my Ant build in Eclipse, I'm getting the following error message and the Ant build fails. Error Message: Error running javac.exe compiler Line where the build stops: <javac destdir="${classes.home}" debug="on" fork="true" memoryinitialsize="512M" memorymaximumsize="1G"> <classpath refid="classpath"/> <src pa...

How do I get access to my java source model (from JDT) from a GEF editor?

I have a basic GEF editor where I want to use the model from the currently open/selected java source editor to display extra information, but I can't figure out how to get access to java model from inside my editor. Any ideas? I'm finding the Eclipse docs hard to navigate. ...

jsf 2 and maven with eclipse "run on server"

Hi, I check out the Mojarra JSF 2.0 helloworld sample from here (just enter guest as username). I import it as maven project to eclipse (v 3.5) with a tomcat 6 server. I have the mojarra dependencies for running JSF 2.0 inside a servlet container. When i package it and because the jsf dependencies have compile scope, these jar are alre...

How to change the font of the Android console in Eclipse?

Hello, The question is given, I want a smaller font to display these lines in the Android Console window (NOT the Logcat window). I've changed the other console's font (cvs, svn, ...) in the preferences, but this window still has same font size. I want this window to be much smaller and put it on the side of my screen, not on the bottom...

Source not found for URLClassPath$JarLoader.getJarFile(URL) line: not available error occurs if i start tomcat in myeclipse.

if i am starting the tomcat or any one server for run the web application it give the error like Source not found for URLClassPath$JarLoader.getJarFile(URL) line: not available in myeclipse. ...

Why does Eclipse 'filter results from view' when searching?

Often when I'm searching for referenced types, Eclipse search will return no actual results but provide the message (3 matches filtered from view) .. for example. Why is it filtering results and how do I disable this? thanks ...

How do you change the default test location in Eclipse when using Maven?

If I'm looking at a class (MyComponent, say) somewhere underneath src/main/java in Eclipse, I can right click it and pick new...--> other --> JUnit test. Eclipse is smart enough to guess the name for the unit test class (MyComponentTest), but it insists on putting the unit test under src/main/java. Is there anything in Eclipse or m2Eclip...

Android&Javadoc: @inheritDoc is not working

Every time i used the @inheritDoc tag in javadoc, I see the following warning (example): @inheritDoc used but getCount() does not override or implement any method. Does anybody know how to avoid that? I'm sure that the methods implement/override another method, because I also set the @override tag, and Eclipse doesn't complain about t...

How to count number of non-derived files in an Eclipse project.

So, how to count number of files in an Eclipse project, with the specific requirement that derived resources should not be counted. (otherwise one could easily use unix command line tools to calculate that) Linked and virtual resources need not be considered, although, bonus points if you do. ...

Eclipse help won't show under Ubuntu

Whenever I open some help within eclipse I get a page saying: Server Error. The following error occurred: [code=CANT_CONNECT_LOOPBACK] Cannot connect due to potential loopback problems I'm running Ubuntu 10.04. Any ideas what this can be? UPDATE Some commands outputs (some private info replaced): $ ifconfig -a eth0 Link enc...

Eclipse does not deploy jars into WEB-INF/lib directory

To integrate JSF with Spring I have added these lines in web.xml: <context-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/applicationContext.xml</param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <listen...

How to get started with a bare-bones Eclipse + PyDev

I am planning to move from SPE to Eclipse + PyDev for better code completion. I think SPE's code completion is rather weird. Anyway, how should I get started with Eclipse + PyDev? I browsed http://www.eclipse.org and I found that Eclipse is made up of some base/core system and plugins are added for more functionality. I also stumbled up...

Problem running eclipse under fedora core 13 x86_64 - runs and exits without even a splash screen

When I try to run eclipse under Fedora core 13 x86_64, eclipse seems to run and then exit without an error. My install consisted of downloading this file from the Eclipse Amazon mirror: eclipse-jee-helios-linux-gtk.tar.gz untarring it in my home dir, cd'ing into the reulsting eclipse dir and running the eclipse executable. The executa...

RCP app & change background color and putting image in center of application

Hello, I would like to set the background color of my RCP application to white and show a center image (logo). This is because due to the fact, that no views or editors are shown beforehand and the user should select which perspective to open. This is necessary because I defined a backgroundview which would be shown first, but this prev...

How Do You Focus The Android Developer Emulator?

I made an image button in eclipse and I tested it out (ran it) with the emulator in the android sdk package. <selector xmlns:android="http://schemas.android.com/apk/res/android"&gt; <item android:state_pressed="true" android:drawable="@drawable/cat1" /> <!-- pressed --> <item android:state_focused="true" android:drawable="@drawabl...

Writing test case for Junit testing

Hi, As a developer, I'm a newbie to Unit testing and have a requirement to write a test case to unit test the following code. Could somebody help me here and also give me some pointers on how to write unit tests in eclipse. private void handle(final DocumentEvent e) { Document doc = e.getDocument(); try { String tex...

Getting Django to work with Eclipse

I'm new to python and django but wanted to start following some tutorials. I installed python, then django, and then the pydev plugin for eclipse. I created a new django project and tried running it. In eclipse I set up a run configuration for manage.py with argument runserver and it said "Validating Models" but never said anything el...

Eclipse 3.5+: Loading plug-ins from auto-created .eclipse directory inside user's home directory

I have downloaded the latest Eclipse (3.6) for my Linux machine and extracted tar.gz to the /opt/eclipse directory as root. I started Eclipse as a normal user and successfully installed some plug-ins through Eclipse. The plug-ins are visible under "Installed software" from Eclipse, but they doesn't seem to be working - no new perspective...