eclipse

Eclipse WTP: Glassfish does not include WEB-INF/lib in classpath

Hi there, I started a new dynamic web project in eclipse helios. I integrated glassfish into eclipse and it works fine so far. Except one thing: I place my libraries (jdbc, log4j etc.) in WEB-INF/lib. Eclipse deploys that files correctly to glassfish, but glassfish does not include that directory in its classpath, so my app won't run (b...

Eclipse Plugin development: How do you prevent another job from running

Greetings all. I have 2 actions: "Find" and "Run". They can be invoked in 3 ways: Find only; Run only; and Find and Run. I want to put both actions in Jobs. For the case of "Find and Run", what is the best way in Eclipse to have the "Run" job wait for the "Find" job to complete. Importantly, the "Run" job depends on the results from t...

In Eclipse, how can I make a toolbar button, or menu command, that modifies my current selection?

I want to make a toolbar button in eclipse that when pressed, removes all newlines from my selection. How can I do this? ...

Linking to generated Java protobuf code in Eclipse

Here's the workflow that I'm trying to build compile my proto files using a script, putting the generated src in a specified directory link to the generated classes in Eclipse compile my project I am easily able to do this for C++ using Eclipse CDT: In my project I choose File->New->Other and choose File under General. Then I click o...

Eclipse Android: Could not open Selected VM debug port (8700)

I am getting an error when opening eclipse: "Could not open Selected VM debug port (8700). Make sure you do not have another instance of DDMS or of the eclipse plugin running. If it's being used by something else, choose a new port number in the preferences." - pretty sure DDMS is the Andoid debugger, and I am also pretty sure it is not ...

In Eclipse, how can I add a toolbar button to run a batch file?

Say I have a batch file C:\myscript.bat, how can I add a toolbar button to eclipse that runs the batch file when I press the button? ...

Automate builds of MobiStudio projects

MobiStudio is an Eclipse plugin to develop mobile phone applications. The projects are written in mscript, and then need to be compiled into phone specific packages. Has anyone already tackled this? Thanks, Mike ...

Java Vector: How to find out the would-be index of an item

Hello, I would like to do the following in Java: I have an element, and I would like to know what would be its index had it been inserted into a collection of other objects (given they're already sorted). So if I have a vector of ints like this: 1,3,5,7,9 and I had the int '2' in hand, I'd know that its 'would-be' index is i=1, between...

make Eclipse slimmer

Hi all. I am trying to run Eclipse on my netbook to be able to develop for Android. As you may guess, Eclipse is quite slow and it is not easy to develop effectively. I am using Linux Ubuntu and I have still 0.5GB of free RAM...the CPU is the bottleneck. Have you got any tip to slim Eclipse down and make it run faster? Thanks, Dan ...

Intellij 'Go to symbol' shortcut in eclipse?

There is a shortcut in IntelliJ I'm looking equivalent in Eclipse, it is called 'Go to symbol'. CTRL-ALT-SHIFT-N lets you start typing and glob up classes, method names, variable names, etc, from the entire project. Does someone know if there is such thing in eclipse? ...

Is there a reason to have both Eclipse IDE for Java and also Eclipse IDE for Java EE?

I've recently downloaded the Eclipse IDE for Java EE developers (for web apps development). Does it make sense to delete my "regular" Eclipse IDE for Java developers? I mean, is there a feature in the regular IDE which isn't included in the EE IDE? (I also use eclipse for Python programming with the Pydev plugin) ...

Validation on TextEdit boxes on android

Hi! I wounder if there is some different way of validating EditText on android controlls.. Or should I use the regular java way of doing this? ...

Logcat tab in Eclipse DDMS Persepctive (Android ADT plugin) Keeps Coming up Blank

I have seen this problem off and on while running the Eclipse (Galileo) under Fedora 11-13, whether the target is my device or an emulator. But now with my new device, the HTC T-Mobile G2 (Android 2.2), I see it much more frequently: I successfully download the app (complete with lots of Log.d() calls), the system successfully launches i...

How to bypass loading some plugins when eclipse starts up?

Hi all, I'm coding with different languages (c, python, java, latex and ...)using eclipse on a MacBook(2gb ram, coredou 2.13). This needs to install many plugins for each language along with some other common plugins(mylyn, vrapper, svncontroller), which makes the machine very slow. Since every time I start eclipse, I aim to only use on...

eclipse: how to create an applet ?

I have finished writing my applications, and would like to deploy it as a Java applet. How can I start this ? Additionally, how would you deploy it on html page, and pass an argument to the Java applet ? ...

Why is my Eclipse launch configuration not being added to the Run or Debug configurations list?

Just finally found a solution for this so thought I'd post it here as a question and answer so I find it next time I google it: I have a .launch file which I can run by context menu (Run As...), but it is not being added to the list of Debug or Run configurations like it should. Why not? ...

The Eclipse "select workspace" dialog disappears when I switch to a different virtual desktop (VirtuaWin) - how to restore it?

When eclipse starts up, it first show its splash screen and then pops up a dialog for selecting the desired workspace to open. If at this point I switch to a different virtual desktop and then come back later, only the splash screen is visible but the dialog is gone and I haven't found a way to get it back. I have to kill the eclipse pro...

Create a Hudson job with Hudson down ?

Hello world, is there a way to create and build a Hudson job without having Hudson running. Using Hudson Java sources seemed an appropriate solution for me first, but i started having troubles when trying the import onto Eclipse. I've already tried the Hudson tutorial here but started having problems with svn download. Anybody knows a...

Servlet exception in java

I imported a java project(war file) to eclipse. When I tried to run it , I got following error : java.lang.Error: Unresolved compilation problems: The type List is not generic; it cannot be parameterized with arguments <User> Syntax error, parameterized types are only available if source level is 5.0 I tried to google it. I found tha...

Groovy not compiling properly in Eclipse

I'm trying to write my first groovy class. When I do so, Eclipse complains about syntax errors as though it's parsing a Java file. It wants semicolons on the end of each line, it doesn't recognize the "def" keyword, etc. I have both Groovy 1.7.5 and the latest Groovy Eclipse plugin installed. I have also converted the project to a Gr...