Questions tagged [eclipse]

38119 questions
1

votes
1

answer
71

Views

every time I change my widget xml, I get runtime error in eclipse

I try to edit my android widget xml. everytime I change one property (drawable, gravity...) The layout is marked as error build runs OK, but the application doesn't run. Eclipse says there are errors, but I see no in the error window/problem/log-cat Unexpected namespace prefix "xmlns" found for tag...
Elad Benda
1

votes
1

answer
1.4k

Views

Programmatically selecting/expanding a folder resource in Project Explorer

In Eclipse RCP, I'm programmatically creating a resource (folder with files) inside a Project, I wish to select and expand the folder (I know its path) in the Project Explorer (assuming it's opened). The effect should be similar than that of the "Link with Editor" button, but here the resource is no...
leonbloy
1

votes
1

answer
2k

Views

creating a connection in eclipse - ClassNotFoundException: com.mysql.jdbc.Driver

I am not doing anything in code - I just created an eclipse connection and can't seem to be able to ping it. The connection properties : The jar is where I say it is ($GLASSFISH_HOME\domains\domain1\lib\ext) but I am getting : java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLCl...
Mr_and_Mrs_D
1

votes
3

answer
1.6k

Views

How to use single drawable for all screen resolutions in Android programming?

Android programming in eclipse, java, xml etc. I put all the drawables (images, xml files etc) in all the folders: mdpi, hdpi etc. So I have 4 copies of each file. Is this absolutely necessary ? Is there a way I can put them in a single "drawable" folder ? Or will android understand that if the fil...
mobilGelistirici
1

votes
1

answer
1.7k

Views

Why do my custom fonts work from Eclipse, but not from an exported JAR?

I am trying to hack together a game in Java, and on the start screen I used a custom font I downloaded. When I run the program from Eclipse, the screen looks like this (just as it should): However, when I run the program from the compiled jar, the screen looks like this: Here is my code for loading...
Greg
1

votes
3

answer
4.4k

Views

The selected App Engine SDK is not valid

I am trying to create an Google Web application project in Eclipse and in the initial step of the wizard I get the following error. The selected App Engine SDK is not valid: SDK directory '/path_to_directory/.eclipse/org.eclipse.platform_4.3.0_1473617060_linux_gtk_x86_64/plugins/com.google.appengin...
ame
1

votes
1

answer
5.2k

Views

There is no “Convert to Maven” Option when I do Right Click

I have a project which is divided into 3 sub project each for special purpose: I put this project in bitbucket and then I imported it into eclipse but after importing the project, when I right click, I cannot see the "Configure -> Convert to Maven" option. But when I click on the folder (called om...
Hamed Minaee
1

votes
2

answer
22

Views

How to easily see the name of the current method

When I used Visual Studio with C++ there was a nice combo box where you could always easily see the name of the method in which the cursor was. Is there something similar in eclipse for Java (except of Outline, of course)?
HAL9000
1

votes
2

answer
323

Views

Android SDK Manager will not open [closed]

This seems to be a common problem but I've been searching the internet for awhile and I none of the many solutions seem to work. Here are the errors that are output by either eclipse or running android.bat in a cmd window. [2014-02-01 19:36:45 - SDK Manager] [SDK Manager] The system cannot find th...
user3261798
1

votes
1

answer
647

Views

Implementing an eclipse 4 RCP Service

maybe it's an stupid question but me research on the net didn't give me an answer. What i want to do is Implementing my own Service in RCP to provide Data to different views. I started to get into Eclipse 4 RCP development and worked previosly with Eclipse 3.x. I now that the Eclipse 3.x way to imp...
Cake42
1

votes
1

answer
5.5k

Views

Search for text inside decompiled classes using JD and Eclipse

I'm currently trying to debug an issue with our web application - I can see an error message in the logs but I can't tell where it originates, though I suspect it's coming from one of the classes provided by the closed-source ecommerce platform we use. I have the JD-Eclipse decompiler - is there som...
rcgeorge23
1

votes
1

answer
687

Views

Inheriting widgets properties in Java SWT

Is it possible for a widget to inherit properties from its predecessor? For example, say I have the following code segment: Display display=new Display(); Shell shell=new Shell(display, SWT.DIALOG_TRIM); Image menu_background=new Image(display, "menu.jpg"); shell.setBackgroundImage(menu_background);...
so.very.tired
1

votes
2

answer
217

Views

ANTLR and Xtext integration for developing plugin

My current project is focusing on code generation from High-level specification. More specifically, developers write high-level specifications and compiler parses them and generates Java code. For parser, I have used ANTLR grammar and for code generation I have used StringTemplateFiles. For providi...
Pankesh
1

votes
3

answer
5.2k

Views

Is any body here had encounter “lock fail” in ECLIPSE?

Is any body here had encounter "lock fail" in ECLIPSE? I also encounter this problem. Can anyone tell what the reason and how to solve this.
Van
1

votes
1

answer
1.3k

Views

Eclipse won't reopen workspace after crash

Eclipse crashed while working on a project, now when I want to reopen the project I get the following message. An error has occurred. See the log file /FOLDERS/.metadata/.log I can open other workspaces without any problem. I remember having this problem some time ago and it was just a lock or somet...
Peter Raeves
0

votes
1

answer
49

Views

if statement with “?” operator and break java

i can't find anywhere how to do methods with ? operator. only what i know: boolean something = (!again) ? true : false; this returns me true or false, but if i have if method with break ? like this: if(!again){ break; } can i do that too with ? operator ? or do you know better way ? i have this meth...
kecinotrab
1

votes
3

answer
11k

Views

Java (eclipse): How to call a int or string from another class in same project?

How can I use an int or string from another class in same project, for example, here we go with a class called Estadisticas: public class Estadisticas { public void stats() { final String c1 = "Tu personaje"; final int Nivel = 1; final int Salud = 50; final int Ataque = 2; final int Defensa = 1; fin...
Cristobal Ruiz
1

votes
1

answer
892

Views

Cannot deploy new Liferay theme “The filename or extension is too long”

I'm new to Liferay and Eclipse, and I'm trying to do some simple theme development. However, once I right click my theme (which I just created) and go to Liferay->SDK->deploy I get the following error: BUILD FAILED C:\sdk6.2\build-common-plugin.xml:482: The following error occurred while executing t...
Burntspaghetti
1

votes
2

answer
2.1k

Views

Twig Eclipse plug-in syntax highlighting

I need to develop with Eclipse a lot of twig view files, to be used with Symfony 2. I'd like use syntax highlighting and code assist. Then I installed the Twig Editor Feature 1.0.13 plugin by Dubture on my Eclipse. It seems installed correctly , I see the new Twig Editor and it's associated to .twig...
Eric Draven
1

votes
1

answer
49

Views

My findViewById() returns null, but it shouldn't

My findViewById returns null, but it shouldn't. As you'll see, the button is in the same XML file. And calling getActivity() makes no difference at all Here's my onCreateView: @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView...
igorfeiden
1

votes
1

answer
2.3k

Views

Gurobi UnsatisfiedLinkError

I am trying to install Gurobi under Academic Licence on Ubuntu 14.04. I have read the following post about the UnsatisfiedLinkError: stackoverflow.com/questions/.... But that didnt help me. I have extracted the zip in my opt folder. I have placed the licence file in /opt/gurobi600/linux64/lib/gurobi...
martijnn2008
1

votes
2

answer
1.7k

Views

Stop service when removing app through recent apps

I have developed an app that plays bgm service even after hitting the home button or switching to another activity. The problem is when I remove the app through recent apps - the service is still running. How do I make it stop when I remove the app through recent apps? Is it possible to do that? he...
dio hanafianto
1

votes
1

answer
104

Views

Store MySQLite Database Online

I'm making a voting app in Java using Eclipse where the user votes for their favorite team. Right now I have a local MySQLite database that I am managing with the MySQLite Firefox extension. The votes are stored in the MySQLite database, then I have another java application that reads from the datab...
drake
1

votes
1

answer
5.3k

Views

Fragment was not found at expected path

Eclipse shows this message below, but the file is there: Fragment "”main_header.jsp”" was not found at expected path /test-webapp/src/main/webapp/WEB-INF/pages/”main_header.jsp” test-webapp/ `-- src |-- main | |--webapp | | |--WEB-INF | | | |--pages | | | | |--main.js...
martin
1

votes
1

answer
2.8k

Views

java.lang.ClassNotFoundException: org.apache.commons.logging.Log

while running SpringMVC program through eclipse showing below error 'Starting Tomcat v8.0 at localhost' has encountered a problem. Server Tomcat v8.0 Server at localhost failed to start. using eclipse luna configured with tomcat 8.0 below is the relevant stacktrace of the error Caused by: org.apach...
user3032296
1

votes
1

answer
3.1k

Views

Why does Eclipse not show “Run” or “Run configuration”?

Dears, I just upgraded (and configured) my IDE to the Eclipse Mars edition for Java EE Developers with Tomcat8 as a Server. This configuration works for new Java EE projects (I tried a JSP "Hello World" project). However, my old projects (the workspace of which I imported into the new Eclipse instan...
kalabalik
1

votes
1

answer
214

Views

Eclipse Open Type: Restrict to open project

I frequently use the Eclipse "Open Type" dialog to quickly jump to classes. The problem is, as I work on more and more projects in parallel, i.e. tackling different bugs in the same source code, the dialog sorts multiple copies of the same class in different projects by how frequently they've been...
Andrew Latham
0

votes
0

answer
3

Views

Import org.apache.chemistry cannot be resolved, but library is already in build path?

Eclipse can't seem to locate org.apache.chemistry.opencmis.chemistry-opencmis-osgi-client_x.y.z.jar. I've tried adding it to every possible location. What am I missing? It's not mentioned in pom.xml, but that shouldn't be required according to the tutorial I'm following.
Matheus Leão
-4

votes
1

answer
24

Views

Eclipse compile error shown incorrectly (Can only iterate over an array or an instance of java.lang.Iterable) [duplicate]

This question already has an answer here: Error: can only iterate over an array or an instance of java.lang.Iterable 2 answers I'm experiencing a really weird issue in Eclipse (Photon 4.8). I have some code that uses the for (Object x : ObjectList){} logic and all of a sudden it's throwing a compil...
Jason Schade
1

votes
1

answer
4.2k

Views

Junit maven build error (maven-surefire-plugin:2.19.1:test failed: There was an error in the forked process) [duplicate]

This question is an exact duplicate of: Struts 2 Junit Test case execution failed (StrutsTestCase.getActionProxy:138 » NullPointer) 1 answer I created a sample struts 2 project & J-unit test case by referring the link. Below is my POM file. 4.0.0 au.com.woolworths struts_junit 0.0.1-SNAPSHOT war...
aravind
1

votes
1

answer
903

Views

Using ESQL-Sonar plugin in IIB V10

I am trying to use the Sonar-ESQL plugin in IIB V10 for ESQL code scanning. I downloaded the plugin jar file from the website http://www.sonarplugins.com/esql, then added the jar file in the plugin folder for Eclipse and restarted Eclipse. But I dont see any difference in Eclipse. How do I use that...
user3845894
1

votes
2

answer
1.4k

Views

“open call hierarchy” in eclipse not working

When i try to use the "Open call hierarchy" function in Eclipse, all of sudden it has stopped working. I don't get any results, it just shows the name of the method I wanted to see the call hierarchy for. This happens for all methods I try, even though they are all called by other methods. I've tri...
Bugle
0

votes
0

answer
5

Views

Eclipse warning “when selecting 9 compliance make sure to have a compatible jre installed and activated…” only shows up in pre-existing projects

If I create a project in Eclipse from scratch, and I assign Java-9 as JRE : And after that I go to project properties, I see the following message The system libraries from the selected release 9 will be used with '--release' compiler option using current JRE 10: If I change an existing project of J...
chomp
1

votes
1

answer
2.9k

Views

Undefined symbol errors when linking of C++ project using Eclipse

I compiled one C++ project which transplanted from another project, and there are some undefined symbol warnings while linking after compiled. The point is that these warnings are so strange. They are divided into 2 types: Type 1: dld: warning: Undefined symbol **'__record_needed_destruction'** in f...
1

votes
4

answer
12k

Views

where to put config.properties and log4j.xml in Eclipse

When I first developed my Java app, I ended up with my config.properties and log4j.xml files in the 'src' directory. This worked fine running in Eclipse, but now I am trying to deploy to a Linux server. When I deploy, I take the exported app jar file and explode it, but it of course does not have t...
mitchmcc
0

votes
1

answer
15

Views

How to Purge Eclipse from my Operating System?

I forked a maven project from a git repository to my Eclipse IDE then, Maven starts update the dependencies but, my IDE shut herself up. How to purge Eclipse from my system, since Eclipse doesn't shows in the Uninstall Program of my Operating System.
Kaizerslawten
0

votes
0

answer
8

Views

Firefox fails to open an url with the error: Exception… "Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND)

I am starting with Selenium WebDriver and Ecplise. After configuring the Eclipse and running simple code to launch the website I am getting an error. Additionally added to the project: selenium-server-standalone-3.141.59.jar geckodriver.exe v.0.24.0 Firefox version - 56.0 I have checked the answers...
Tatiana
0

votes
1

answer
17

Views

Buttons not appearing in GridPane JavaFX8

I am declaring buttons prior to using them inside the GridPane so I can use the button.setOnAction() function to switch scenes, but the buttons don't appear. When I create the button inside the gridpane.add() function it works just fine. I've tried using BorderPanes instead and doing the non-lambda...
sammu
1

votes
1

answer
2.1k

Views

Nested SWT Composites with conflicting GridLayout

I'm new to SWT and am trying to create a page with several nested Composites. I'm running into problems with using a GridLayout nested within Composites of other layout types. This is some simplified mock code that illustrates what it is I'm trying to accomplish, and the error I'm running into: pack...
Anna W.
0

votes
2

answer
19

Views

String.split() ,ethod doesn't work in eclipse oxygen version 4.7.0M2

String.split() ,ethod doesn't work in eclipse oxygen version 4.7.0M2 I have prepared a simple code snippet public static void main(String[] args) { // TODO Auto-generated method stub int T = Integer.parseInt(System.console().readLine()); while(T > 0) { int N = Integer.parseInt(System.console().read...
S RB

View additional questions