Questions tagged [eclipse]

21608 questions
2

votes
1

answer
3k

Views

System cannot find path specified

I'm reading information from a (maven) generated file located at target/[projectname]/WEB-INF/classes/. Eclipse does not show me the path, however, I cannot create a new folder named classes in WEB-INF (because there is already an existing one). I can find the folder and the file via the command lin...
LordAnomander
22

votes
2

answer
10.2k

Views

Is there a way in the Eclipse debugger to be notified when the state of a Java object changes?

I'm debugging some legacy code where we have a cached object that appears to be changed externally. If I know the object identifier for it (while debugging), is there some way to 'watch' it so that if some other code in the same thread or another thread attempts to modify its state it'll trigger my...
Uri
2

votes
1

answer
2.5k

Views

Adding extra system properties to an Eclipse programmatic restart

I have a plugin that forces a restart of Eclipse by using: Workbench.getInstance().restart(); However, I need this restart to include a new environment variable: eclipse.refreshBundles=true Is there any way to add such an environment variable for this next restart of Eclipse only?
5

votes
2

answer
5.8k

Views

ESlint in Eclipse

I have been given a web project at work that has a .eslintrc file in it and was told to use it. I gather that this enforces code styles and sounds like a good idea, but I have never done this before. I just switched to Eclipse Neon. But I can find no tutorials on how to use it. I did find something...
mmaceachran
19

votes
3

answer
25.1k

Views

How to upgrade from Eclipse Mars to Eclipse Neon?

To upgrade to a new version, the eclipse FAQ suggests to add a new repository and then install available updates. Upgrading to Neon, the corresponding repository is http://download.eclipse.org/releases/neon/. On this page, it says: NOTE: Due to structural changes you cannot update from a Mars (or pr...
jpmath
5

votes
2

answer
242

Views

List.sort() NoSuchMethodException 1.6 vs 1.8

So i'm a little confused about a change in Java 8 - List.sort - bear with me as the confusion will become apparent. I have Java 8 JDK installed and running Eclipse with the Project in question set to compile in 1.6 (Windows environment). Throughout my code I've been doing (Example extends BaseExampl...
Steve
28

votes
7

answer
56.5k

Views

Maven Eclipse Debug “JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)”

I'm trying to debug Maven tests in Eclipse. When I launch tests with the maven option maven.surefire.debug, I get this error : ERROR: transport error 202: bind failed: Address already in use FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197) ERRO...
Rémi Doolaeghe
4

votes
3

answer
1.8k

Views

Eclipse doesn't launch (JVM terminated. Exit code=1)

This is my java version(on Debian 8 Jessie): java version '1.8.0_05' Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) And after successful installation, I get this message and program doesn't launch: JVM terminated. Exit code=1 /opt/...
user3486308
2

votes
2

answer
1.5k

Views

eclipse autocompletion from class file?

when i use netbeans and includes a class in a phpfile and then type $class_name-> it will show all functions and properties of that class. how can i do that with eclipse?
never_had_a_name
5

votes
1

answer
5.7k

Views

Checkstyle and Eclipse; Java string continuation

(I know this is a sort of lazy question, but it's oddly hard to search for...especially since checkstyle does so much, and Google search results are littered with checkstyle reports.) Can someone tell me which checkstyle check reports '+ should be on a new line' when splitting long strings over mult...
Boden
2

votes
1

answer
270

Views

Control + 1 suggestion doesn't work in eclipse scala ide?

I am using eclipse scala ide Scala IDE build of Eclipse SDK Build id: 3.0.4-2.11-20140520-1158-Typesafe . Suggestions feature seems to be missing from it, like if from my test case I write PersonTest.scala val person = new Person() since Person class doesn't exist intially, I get a compilation error...
Shakti
883

votes
30

answer
1.3m

Views

Failed to load the JNI shared Library (JDK)

When I try opening Eclipse, a pop-up dialog states: Failed to load the JNI shared library 'C:/JDK/bin/client/jvm.dll'`. Following this, Eclipse force closes. Here's a few points I'd like to make: I checked to see if anything exists at that path. It does exist. My Eclipse and Java SE Development...
1

votes
3

answer
3.2k

Views

Do not hardcode “/sdcard/”; media storage change?

as of right now I am using this: String path='/sdcard/media/audio/ringtones/'; String filename=soundname+'.ogg'; boolean exists = (new File(path)).exists(); if (!exists){new File(path).mkdirs();} FileOutputStream save; try { save = new FileOutputStream(path+filename); save.write(buffer); save.flush(...
vamp6x6x6x
1

votes
4

answer
7.2k

Views

BreakPoints not being hit?

I have been running and debugging my android app for quite a while now. All of a sudden I many of the break point I am setting are not being hit. I know the code is executed because of log messages. I have noticed that once the breakpoint is passed for the first time eclipse adds a little check mark...
Jason
1

votes
6

answer
1.7k

Views

IDE pros and cons for J2ME and Android development [closed]

I have been tasked with updating my teams dev. environment. This environment will be used to develop and test J2ME and Android mobile applications. I am looking at NetBeans 6.8 and Eclipse 3.6. Do you have any recommendations for why either of these would be good or bad for this? (aka mobile plugin...
Andrew Hubbs
6

votes
3

answer
10.1k

Views

Eclipse does not show lib directory during Java Build Path -> Libraries editing

I have an Eclipse/Java project (Eclipse 3.5.2) that I am trying to add some JARs to. In the root project directory I have 3 sub-directories, src, bin, and lib and all 3 sub-directories are present in the Package Explorer list. I put the needed JARs into lib. However, when I go to Project Propertes...
Robert Oschler
3

votes
1

answer
320

Views

Refactor a constructor in Java with Intellij

I'm refactoring my java code with IntelliJ and need to add an extra parameter on a constructor. Let's say I'm editing the class SocialNetwork and just changed how I add a friend, instead of just a name now the class also has an Integer that is the age. Of course IntelliJ will tell me the constructor...
Sergio1978
2

votes
3

answer
1.9k

Views

How can I get eclipse to default to 'deselect working set'

When I start eclipse, the project explorer window shows none of my projects. If I open the menu in the project explorer, it shows 'Multiple Working Sets' as being selected. In order to see my projects, I have to click on 'Deselect working set', and then all the projects magically appear. What's goin...
idlewis
1.2k

votes
11

answer
243.8k

Views

'Must Override a Superclass Method' Errors after importing a project into Eclipse

Anytime I have to re-import my projects into Eclipse (if I reinstalled Eclipse, or changed the location of the projects), almost all of my overridden methods are not formatted correctly, causing the error The method must override a superclass method. It may be noteworthy to mention this is with Andr...
Tim H
1

votes
2

answer
745

Views

Eclipse duplication annotation @SurpressWarnings for PMD

I am trying to disable several arbitrary PMD warnings for my class. How can I list several PMD rules to be ignored? I was not able to find with Google. @SuppressWarnings('PMD.OnlyOneReturn') @SuppressWarnings('PMD.ShortVariable') public class MyClass { it gives Eclipse compile time error: Duplicate...
Nikolay Kuznetsov
29

votes
5

answer
37.9k

Views

In Eclipse, how can I exclude some files (maybe based on the .svn extension or filename) from being copied to the output folder?

I'm developing a Java application using Eclipse. My project has two source directories that are both built and then some files are copied into the output folder. From the output directory I then run my application and all works well. However, I keep having these warnings: Snapshot from Problems tab...
Alfred B. Thordarson
3

votes
1

answer
976

Views

Send BASIC auth credentials using cxf client

I am sending the auth credentials using a cxf webservice client and it says: javax.xml.ws.WebServiceException: Could not send Message. Caused by: org.apache.cxf.transport.http.HTTPException: HTTP response '401: Unauthorized' when communicating with http://localhost:8080/AccountFacadeService/Accoun...
Atif Imran
15

votes
1

answer
49.4k

Views

Java Properties File in Eclipse [duplicate]

This question already has an answer here: How to add a Java Properties file to my Java Project in Eclipse 8 answers That's basically it...How do I create it?? I've been trying to find it and googling for it but found nothing yet...maybe I'm just overlooking it...but I already got sort of desperate....
Tsundoku
15

votes
1

answer
6.8k

Views

How to prevent Eclipse from auto-importing packages when pasting code?

Frequently I copy and paste code from my existing code base. Eclipse frequently brings in erroneous import statements that I don't need example, I copy and paste code into my project package named com.myproject.utilities into a file named twitter_class.java and in the java file it adds import com.pi...
CQM
6

votes
3

answer
9.4k

Views

Alternative or way to force eclipse source code formatter to break line at 80 characters?

Whenever I use the Eclipse source code formatter / beautifier (via the menu item Source - Clean Up or CTRL - SHIFT - f) it reformats statements that I have broken into multiple lines back into one line that is longer than 80 chars, eg I have: public CDataCacheContainer loadDataset(CDataFileDef dsd)...
tekumara
13

votes
1

answer
7.8k

Views

Uninstall Android App Before Each Debug

I am developing an Android app using Eclipse 3.7.2 with the Android SDK installed. I was wondering if there is a setting in Eclipse which when launching the debugger will automatically uninstall any previously existing versions of an app from the device? For example, if I have an app developing, eve...
David
11

votes
1

answer
3.5k

Views

Eclipse ADT crash when autocomplete popup

I am using the eclipse ADT-bundle that Google lets you download directly from their site. I am in Ubuntu 13.10 and is using Oracle Java 7. My problem is that Eclipse crashes (freezes) as soon as the autocomplete popup is shown. It seems to be a reported bug https://bugs.eclipse.org/bugs/show_bug.cgi...
AlexanderNajafi
2

votes
1

answer
45

Views

Error after commit on git repository Android application

I have built one Android application, the name is Geo. After that I created an account on Bitbucket, then I cloned the repository and I synced my project. After that, the project has some errors and the location changed: initially the project was stored in D:\DropBox\Workspace, but now after git syn...
bircastri
37

votes
4

answer
27.3k

Views

Automatic EOL conversion in Eclipse

Need to keep EOL format consistent in all resources under Eclipse workspace. I know about Eclipse preference that sets new line style for newly created files, but I would like to have automatic conversion for already existing files. Is there some settings/plugins? I want just setup once and be sure...
Ilya Ivanov
2

votes
4

answer
476

Views

Eclipse @deprecated not working, but @Deprecated work

In my Eclipse Indigo, only @Deprecated work but not @deprecated in comment, any idea? e.g. // @deprecated
Ryan
5

votes
8

answer
2.7k

Views

Java static code analysis

I am looking for eclipse/netbeans plugin or a tool, which analysis java project, and give us a report of unused imports, unused variables, unused methods, violating custom naming conventions, etc..
Nageswaran
12

votes
6

answer
14.5k

Views

CTRL+C / CTRL+V don't work in Eclipse

It's a very weird behavior. My Ctrl+C / Ctrl+V keyboard shortcuts are not being called in my Juno Eclipse. I know it is somewhat broad... But I'm really lost. I'm using Ubuntu 12. Can it be a OS configuration issue?
mthama
6

votes
2

answer
3.4k

Views

Validating GWT components takes forever

Validating GWT components process in Eclipse takes ages, almost impossible to do productive work. I have selected from my Eclipse->Window->Preferences->Validators: selected Supend all validators still Eclipse validates GWT components which is painfully slow. How can I fix this? It's very hard when e...
xybrek
11

votes
2

answer
6.8k

Views

Eclipse SQL Editor normal text color

I was able to change all the other SQL syntax coloring in Eclipse Preferences, but the normal (non-Sql-syntactic) text is still black and I couldn't find where to find the setting for that. Black text is kind of hard to read against an almost black background. Thank you!
Steve Waters
3

votes
6

answer
4.6k

Views

Has anyone been successful in using 64-bit Eclipse for Android 2.3 dev on 64-bit Windows 7?

Has anyone been successful in using 64-bit Eclipse for Android 2.3 dev on 64-bit Windows 7? Please answer positively only if, when you invoke the emulator via Eclipse's Run (Ctrl+F11), your app-to-be-debugged's APK is installed automatically onto the Android emulator and you are running this same ex...
Android Eve
3

votes
1

answer
703

Views

Why do the source folders in package explorer appear in not alphabetical order

I'm looking at a few projects in Eclipse's Package Explorer. I expect to see the items listed in this order: My Awesome Project + src/main/java + src/test/java + src/test/resources The first project in my list meets this expectation, but the second project appears in this order My Less Awesome Pro...
MedicineMan
243

votes
3

answer
179.1k

Views

What do the icons in Eclipse mean?

What do the icons in the Eclipse debugger mean? What do the icon decorators in Eclipse mean? What do the icons in Eclipse's Package Explorer mean? What do the little letters on top of Eclipse icons mean? What's the difference between the two error icons in Eclipse (the x in the red circle and the on...
7

votes
1

answer
4.1k

Views

Debugging on Honeywell Dolphin from Eclipse

I'm developing a scanner app for Honeywell Dolphin 7800 devices, but can't figure out how to make eclipse detect the device. Usb debugging is enabled as well as Allow non-Market applications (also, device is showing USB debugging connected notification). I've tried restarting eclipse, adb server & d...
ssantos
2

votes
1

answer
692

Views

Selecting OSX SDK version in Eclipse and Makefiles

I have a development Mac running 10.5. This causes my apps to not work in 10.4 (Google '_nsdefaultrunloopmode tiger'). I read the solution is to install the 10.4 SDK and compile against that. I have it installed (at least I have /Developer/SDKs/MacOSX10.4u.sdk) Now I can't find a way to actually use...
ggambett
15

votes
1

answer
12.2k

Views

Trouble Setting Up ANTLR 4 IDE on Eclipse Luna (4.4)

I'm trying to install the ANTLR 4 IDE on Eclipse Luna (4.4). I've installed it from the Marketplace but I have no idea how to create a project that has an ANTLR 4 Lexer/Parser in it. When I go to create a new project I don't see any options for ANTLR 4. I tried creating a .g4 file and it opens in th...
amura.cxg