eclipse

Deploying project, created with Eclipse and Maven, to Tomcat

I'm using Eclipse 3.5, Maven 2, m2eclipse and Tomcat 6. So i create Maven project for archetype webapp. This is pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt; <...

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

I'm developing a servlet that receives a multipart request with content of multiple files, and I'm using apache commons file upload libraries. When I call parseRequest(request); method servlet throws following exception: GRAVE: Servlet.service() for servlet DiffOntology threw exception java.lang.NoClassDefFoundError: javax/servlet/http...

How does Eclipse/IDEA/etc. debugger obtain the information about local variable values and watch expression values?

I always thought that varibales are mapped to stack locations once your Java source is compiled; additionally, they may include the info about the variable names and their scope in classfiles, but that's optional AFAIK. The question is - how do my Eclipse/IDEA IDEs allow me to set a watch expression containing the local variable name? T...

How do I convert a local variable in a method to a method parameter using eclipse refactor?

How do I convert a local variable in a method to a method parameter using eclipse refactor? ...

Refreshing WEB-INF/lib in Google App Engine (with Eclipse)

Hi, I've created a new Google App Engine project within Eclipse. I copied several JARs that I need for my application into the WEB-INF/lib directory, and add them to the build path. I make some random calls to these JARs from within the handler, deploy, and everything works fine. However, if I then change one of the JARs outside the pr...

Fail to launch application (CreateProcess error=87), can't use shorten classpath workaround

When I launch our application in Eclipse on Windows I receive the following error: Exception occured executing command line. Cannot run program .. : CreateProcess error=87, The parameter is incorrect I've solved this in the past by shortening the CLASSPATH. I've now come to a point where I can no longer shorten the CLASSPAT...

Java equivalent to VS solution file

I'm a C# guy trying to learn Java. I understand the syntax and the basic architecture of the Java platform, and have no problem doing smaller projects myself, but I'd really like to be able to download some open source projects to learn from the work of others. However, I'm running into a stumbling block that I can't seem to find any inf...

how to add Apache Tomcat6 to eclipse ?

when i go to windows preferences, there is no Tomcat6 !!! how can i add tomcat6 new server runtime environment in eclipse 3.5 ...

Set color for button field in blackberry using Java

How can I set the color for a button field in Blackberry using Java? Thanks. ...

how to get the current location of the captured images in android and sending it?

hi all, pls let me know the cade for getting the current location of images that is captured and sending to the selected persons thank's in advance ...

How to execute ant using java and captured the output?

Hi, I have an ant build file that contains JUnit test suite that I would like to execute. Currently I just right click and run the build file from Eclipse. I want to write a java code that can execute the ant build file automatically. So I just run the code and ant will be executed. Second is I want to capture the test result. Current...

SVN Subclipse : Not working for googlecode

Hello, I am trying to connect to google code giving http://birdeye.googlecode.com/svn/trunk/ as the URL. it is not connecting and gives the following error. "The VCC property was not found on the resource" Any ideas or thoughts how to fix this ? ...

Eclipse CDT configuaration

Hi, I have installed eclipse with CDT. I have GNU compiler tool chain installed on my PC. But I need to replace the GNU compiler tool chain with our own Tool chain, how can I do this ...

Publishing selection in eclipse RCP

I'm writing an RCP application plug-in. I want to make a set of objects the global selection from a IHandler but this can be triggered from other views out of my control - it is possible that these do not have an ISelectionProvider. Is it possible to publish a selection to the eclipse selection service without going through some view si...

Eclipse Package Explorer Zoom?

Configuring Eclipse to look exactly how you want is a tough job I've found, therefore I'm not going to attempt to do this myself. I'd like to 'zoom out' of the Package Explorer side bar? You see, I like only having my code on the screen with a small section for the files in the project - however I can never see the full path of the file...

Java + Eclipse: Synchronize stdout and stderr

Hi, I use Eclipse. When I have an application like this: write 20 times 'Hello World\n' to stdout write 'ERROR\n' to stderr write 5 times 'Hello World\n' to stdout The output looks many times like this: Hello World Hello World Hello World Hello World Hello World Hello World ... Hello World Hello World Hello World ERROR Is there a...

Enabling Console output for exec ANT task

Inside eclipse I'm launching an html page with a swf embedded from ANT using the following Macrodef: <macrodef name="runhtml"> <attribute name="url" /> <attribute name="browser" default="${app.browser.firefox}" /> <sequential> <exec executable="open" vmlauncher="true" spawn="false" fail...

Java Eclipse plugin Development - Save all project's files programmatically

I'm developing a plugin for Eclipse. I'd like it to suggest the user to save unsaved resources before running. This is in a similar behavior to how eclipse suggest you to save unsaved files before debugging. In essence, I would like to open the following dialog: Any help will be greatly appreciate. ...

Ubuntu crashed, Eclipse lost .metadata, Java Perspective gone, missing, lost

I am running Eclipse Galileo on Ubuntu 10.04 LTS. Ubuntu crashed on me today, and after rebooting, I found that Eclipse has completely lost the Java Perspective (it's like the perspective and all associated views never existed) and the .metadata dir in my workspace is empty except for version.ini. What's up with that? Why did it happen?...

Exporting Eclipse project with a reference to native library

I have an Eclipse project, that uses JMF, I found out I could skip the JMF installation process and still to use the CaptureDeviceManager of the JMF, and to receive the list of devices if I could point my project to the native lib of the JMF. I've managed to add the native lib to the IDE run/debug, but once I export the application to a...