Hello,
I just started using XStream Annotations, and I am trying to figure out how to associate the annotations with the XStream object. From the documentation, it seems like this is the accepted method:
XStream xstream = new XStream(new DomDriver());
xstream.processAnnotations(AnnotatedClass.class);
My problem with this is that Ecl...
Here is my class definition:
class MyClass {
public:
void test(int val = 0);
}
void MyClass::test(int val = 0) {
//
}
When I try to compile this code I get the error: "default parameter given for parameter 1"
It's just a simple function, I don't know what's wrong. I'm using Eclipse + MinGW.
...
There´s any eclipse shortcut to stance a new object ?
For example. I would like to type:
Object zzz =
and it would complete for me this way:
Object zzz = new Object();
with void parameter of course.
I will wait answers.. thank you people.
...
Hi,
I'm currently working on a plug-in for Eclipse that translates some custom Java code (which doesn't necessarily run/compile), to runnable Java code. In particular, the plug-in allows code to be written using classes created or imported during the translation. In general, the pre-translation code runs/compiles fine provided the write...
So I change the -vm argument for eclipse.exe using the eclipse.ini settings file, and now there's an command prompt console (even if I remove the -vm value).
Does anyone know how to turn off the console so I only have the eclipse GUI and not the console window? I'm running MS Windows 7.
EDIT: Solved thanks to Kennet, the problem was I...
Hello ,
i'm kind of new to java. I use eclipse and i imported some jar files with some classes by going to properties -> Add External Jars;
The problem is that when i try to use a class from the jar i get the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: nextapp/echo2/app/event/ActionListener
at java....
I am trying to get a sample program working with JUNG, a graphing tool in Java. I downloaded and referenced all the .jar files in eclipse so my project hierarchy looks like this:
In Test.java I have the following code:
public class Test {
static public void main() {
System.out.print("Hello");
}}
For some reason though when I tr...
Eclipse has a feature "Add unimplemented methods" that adds the unimplemented methods for a class (such as when implementing an interface).
When Eclipse adds the methods it adds them in alphabetical order. Is there a way to configure Eclipse to add them in the order that they appear in the interface (or abstract class)?
...
I was unfortunately forced to result to uploading a WAR file as my backup for a web application I am working on.
Luckily I have the most recent WAR file available. I am using Eclipse IDE and am using the Web Tools plugin for all the J2EE work that I am doing with the Dynamic Web Application Project.
When I imported my WAR file, and ran...
im new to java ee platform and im having a hard time searching for a book for java ee that uses eclipse IDE. So please can you tell me any book that involves java ee and eclipse for beginners. and some tips from you how to learn this stuff and a follow up question, is java EE still good 20 years from now?
...
I have an eclipse WTP app using the M2 plugin. I exported it and it runs fine on my machine, but I believe this is because it references my local maven repo.
How can I get it to bundle the jars from the maven repo into the war file ?
Is there a simple way to do this in eclipse with the M2 plugin >? Im afraid that if I muck with the ...
I want to use some of the libraries produced by the Eclipse project through Maven. I 've had a look at the main Maven repo and while it looks like that there are a few projects already imported, their versions are old and some important ones are missing (e.g. cdt). Is there any Eclipse project official Maven repository? If not, what woul...
Everytime before connecting to svn server, there are 2 'Team' options to choose: 'Apply Patch' and 'Share Project'. Both options seem to perform the same when intializing the svn project.
In addition, how is the functional difference between 'Commit...' and 'Apply Patch'?
What exactly is the difference?
...
Inside the folder 'ProjectName' exists several subfolders, and of them contains java program:
ProjectName
Specifications
JavaCode
Gfx
...
JavaCode folder contains pom.xml.
I have installed m2eclipse (0.10.x) to Eclipse and imported whole ProjectName folder to Eclipse. Subfolders are displayed correctly but maven integration is not...
Most people agree that it's a good practice to have copies of all libraries your project depends on in the /lib subfolder, so the project can be built on other computers without having to install the libraries (and you can keep the libraries in source control).
Is there a way in Eclipse to add the referenced libraries' files to the /lib...
Hi!
I'm writing a little Maven application in Eclipse. I store some property files and my application context in the directory src/main/resources.
I now want to make Eclipse use properties in the directory src/test/resources. So when I run and debug the program in Eclipse, these test properties should be used.
Do you know how I could ...
Hey,
This may seem like seem like a bit of a weird/uncommon request but I am trying to find out if it is possible. I would like to add to the language syntax in Netbeans or Eclipse easily without needing to create an entirely new language. According to this question http://stackoverflow.com/questions/281992/how-to-add-more-syntax-elemen...
Hello all,
I have a that uses maven... and I want to put it in my working environment with eclipse(Galileo)... the project is in a svn server, and I can create check out the project and everything looks OK. I even can run the unit test and everything is working there.
However, now that everything is there I wanted to work in the code, ...
The error "error parsing XML: unbound prefix" shows up on my main layout: main.xml when I first open Eclipse. To make the error go away, all I have to do is make a modification to the file, then undo it, then hit save (have to make a change in order to be able to save file and thus trigger the new syntax check).
My environment is:
F...
how to put breakpoints in haml files in eclipse? It just doesnt work...
...