eclipse

Under Tomcat java.lang.NoClassDefFoundError when accessing a servlet?

I'm writing a web applicaion in Eclipse, and I'm using the XStream Serialization Library to generate My JSON. I've encapsulated the Code that builds up the JSON in a class which is called by my servelet. Then encapsulated class has a main method for testing and when I run it everything seems to work fine. However when I use the call th...

How Do You change A ScrolledComposite's Horizontal Scroll Increment?

I have an application that displays a ScrolledComposite. Users are complaining that the horizontal scrolling increment is too fine, i.e. each click on the horizontal scroll arrow currently moves the bar one pixel at a time. They want individual clicks to cause greater horizontal movement. Could someone explain how I could implement th...

Where does Eclipse store SSL keys?

I'm trying to use the JIRA dashboard plugin from tigris.org to connect to our in-house JIRA server, which has an invalid SSL certificate. I'd like to import the certificate into the keystore used by this plugin, whether that's the Eclipse keystore (which is where?) or its own. If it helps, here's the error message: sun.security.val...

Django in Eclipse

The book I've been reading about Django mandates heavy usage of a command line in terms of installing Python and importing Django. It details which command line commands are necessary, both from the command line itself and from a python shell, in order to create a new project, start a web server, perform synchronization of models to a da...

Eclipse: adding a whole repository for all projects to use

Hi, I have been working on Eclipse recently. I am fairly new to java programming, so this question might seem novice to some. I have been working on projects which have references to many other projects. So, when I create the project in my eclipse environment, it shows errors on many places, as I believe it is not able to pick-up all t...

Success stories of Eclipse as an application framework (RCP)

I keep reading about Eclipse as an application framework (i.e. about Eclipse Rich Client Platform). I am unable to find comprehensive list of success stories of Eclipse as an application framework (RCP) other than Eclipse as an IDE which is extremely popular. I have seen customer testimonials of Netbeans platform, but not for Eclipse Ric...

How to pass the -D Sytem properties while testing on Eclipse?

I am developing on Eclipse on Windows and Code gets deployed on Unix. I am fething the system property values using System.getProperty("key") ... how do I pass this in Eclipse so that I do not have to modify the code and it works on Eclipse for debugging? Any suggestions? ...

Attribute is not being renamed by this code in Ldap.

/** * * ModifyRDN .java * Sample code to demostrate how ModifyRDN/ModifyDN works. * */ import javax.naming.; import javax.naming.directory.; import java.util.Hashtable; public class ModifyRDN { public static void main(String[] args) { Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY,"co...

Is it possible to view what shell commands Eclipse is making?

I have a rather length project I'm working on, which requires an older JDK to compile correctly, various JAR includes, and the like. I'm assembling the entire project using a batch script, and I'd like to make the whole process fully automated with the script. So I was wondering if I could view the shell commands Eclipse does to make a p...

Where are Eclipse key configurations saved on Mac OS X

There is no .eclipse dir under my home dir. I can't find the configuration file saving the key binding schemes. Where are they saved on Mac OS X? ...

Problem with Java properties utf8 encoding in Eclipse

I've recently had to switch encoding of webapp I'm working on from ISO-xx to utf8. Everything went smooth, except properties files. I added „-Dfile.encoding=UTF-8“ in eclipse.ini and normal files work fine. Properties however show some strange behaviour. If I copy utf8 encoded properties from Notepad++ and paste them in eclipse, they sh...

Eclipse RCP application - Create a window programatically

Hi, In an RCP application, how I can programtically define and open a new window? I want to open several window - each window show different data. How can I set different input for each window? I want to simulate the same functionality of Eclipse IDE (Window --> New Window), but I want each new opened window to have different input. I...

How to open a eclipse java and a c++ project point to the same root directory

hi, I have a directory which has both java/c++ code (they are in different sub-directories, multiple of them). How to open a eclipse java and a c++ project point to the same root directory? eclipse won't let me, saying something like 'there is a project exists in the same location' Thank you. ...

Can I use JAVAC to compile a project with multiple files and directories?

I'm working on a very large project that has associated class files in multiple directories, all stemming from the root dir \src. I'm trying to compile a file in src\solution\ (called Console.java) that uses imports from other directories in the src, which are still uncompiled. So if I want to compile Console.java outside of an IDE, ho...

How do I debug properly using Eclipse and Pydev?

I have got Pydev configured properly so it runs my app, however when I want to inspect/trace my code by setting up breakpoints the debugger does not kick in (can't trace). Does anyone got any idea what's going on here? ...

generic code snippets / templates in eclipse

hi, i'm currently evaluating eclipse after using textmate for all my development for many years. what i miss in eclipse and what i can't find any solution for are some kind of generic templates: i'm using PDT for my javascript and php development, and it supports code-templates. however , in my projects i'm writing large amounts of she...

Line numbers in StackTrace point to method start

We're developing a web application with Rational Application Developer 7.5 (based on Eclipse 3.4) for WebSphere Application Server 6.1 . When examining stacktraces on a staging server, the line numbers always point to the beginning of the methods, never to the actual line. In the local development environment (each developer has his loca...

Is there a template or something for generating a switch statement for Java enum in Eclipse?

Is there a template or something for generating a switch statement for Java enum in Eclipse? So that when I got an enum and I want to have a switch with all the values, I didn't have to write all it myself? ...

'Exiting' (ctrl+c) a process from console - Eclipse vs Intellij

It seems that in Eclipse, if you want to send ctrl+c to a process you cant. The terminate button on the console just kills the running process without running the shutdown hooks. I know that java itself doesnt allow sending a signal to another process. However it seems that intellij idea does have a 'exit' button next to its 'stop' butt...

Using ANT to generate a .jar in a very large project

Hi, I have a large project I'm working on (using Eclipse) that uses the 1.5 update 18 JDK, various external JARs, and the like. It's all been setup properly in Eclipse. Is it possible to create an Ant file that generates a JAR from a particular source file in my project? (A number of the source files are compilable into Java Applications...