java

why we should not use static and abstract for a single method?

why we should not use static and abstract for a single method? ...

open source mail clients in java

Are there any open source email clients in java that you can recommend? Something that pulls in emails via pop, sends emails, stores sent emails, etc. Similar to what mozilla thunderbird does, but on build using jsp etc. for the web. (preferably web based, but would also be interested in desktop apps) ...

Is there any Lightweight IDE for java [ windows ]

Possible Duplicate: Light weight Java IDE At present i am using Eclipse, which i think is the best IDE for java. But in terms of memory consumption , it is really a big memory hogger. Do you know any IDE for java, which is the light[est] weight? Today i have downloaded DrJava IDE. It seems promising. Other than this if you know...

Eclipse: Two web projects, one servlet

Hi, I use a library which includes, among other things, a servlet. I've fetched the source for this lib to a dynamic web project and it works fine. I'd like to make an example dynamic web application in another project which would just reference to the classes of this library. Is it possible to do it this way in Eclipse Galileo and de...

Including Source in Archive File

I was considering including the source code in my archive file (EAR, JAR, WAR) so we could see what the deployed application looks like. This will obviously make the archive much bigger. Does the size of the archive file affect performance on the application server at all? Is this a good idea or not? ...

What is the initial step to start with android? How does java programming help?

I am a Java professional. Now I'd like to write an application for the Android platform. What is the initial step I need to take? How does my Java programming experience help in this case? ...

J2EE or Netbeans with Glassfish?

ive downloaded Netbeans with Glassfish and installed it. do i have to download j2ee then from sun's site? ...

What is the bit depth of a boolean in java?

Possible Duplicate: Java - boolean primitive type - size Possible duplicate: http://stackoverflow.com/questions/1907318/java-boolean-primitive-type-size Someone asked me a question, but I didnt get the question properly. is it related to size? If yes what's the answer? ...

debugging hibernate annotations, can you output the hbm file?

Is it possible to output the resulting hbm file for a class if you are trying to debug a problem? Are there any tools that can take a hbm and convert it to annotations? or visa versa ...

How to instrument a multiproject Maven 2 with Cobertura?

My Maven 2 project consists of several sub-modules. It s structured containing and EJB, WAR and Jar sub modules.. Now i want to instrument the packaged EAR that contains all submodules as mentioned. Example: Interface Maven Project consists of several modules: - InterfacePOM --> parent pom - InterfaceEAR --> EAR module which does not a...

tomcat or glassfish as comet server?

they are both free but i think glassfish has some limitation or when you reach up to a certain nr of users (comet) then you have to pay? is that correct? if true, could you use tomcat as a comet server? if not, then which free comet servers are there supporting long polling and iframe? ...

how to overwrite a file if it exists?

I am using this to save a string value to a file: BufferedWriter writer = new BufferedWriter(new FileWriter(filename)); writer.write(content); writer.close(); If the file exists, I get an error. ...

Benefits of an enterprise service bus

Where can I find some information on the uses and benefits of an enterprise service bus (ESB)? I am looking for information about: the kinds of problems and ESB helps to solve the alternatives to an ESB - and the tradeoffs in selecting between them what you need to do as a developer to build ESB-compatible systems I'm looking for a ...

Spring Annotations not working

I posted this to the spring forums, sorry for the xpost. I am new to spring. I am working on an existing project that uses spring 1.2.8 (old, I know), and java 1.5 so annotations should work. I am trying to use the @Transactional annotation on a concrete class, following the docs at: http://static.springsource.org/spring/docs/1.2.8/ref...

JavaME, Implementing Peer to Peer communication.

I have 4 phones connected to a Wifi access point and I know the MAC/IP of all of these including the Wifi access point. I need to implement communication between each of these phones, a sort of peer to peer communication, I was thinking about using sockets but then each phone will have to implement a ServerSocket and Socket on each o...

Drawing multiple circles with Java2D

I am trying to use Java2D to do some simple graphics programming. I've started easy, just trying to display a couple of circles in a JFrame. I was successful displaying a single circle, but when adding a second circle, only the last circle added to the JFrame is displayed. I use class Circle to define my circle and to override the pai...

Is there a way to get a node value with xPath without this ugly somersault?

This is a java question, btw. I'm using xPath and everything works great until I get to the last point where I'm looking at the node set that I've sought and I need to do a really ugly evaluation to see if the node I'm dealing with is of type ELEMENT or TEXT before I can get its value. I was wondering if there's a method along the line...

Download JAVA JDK 6.0

After downloading java.sun.com by Window XP, c:\program files\java\jre6 is found, but not JDK files. cmd Javac -version with error message "javac is recognized command". No idea why. Also where and what do I need to update the PATH? Many thanks, Michael Chen ...

Looking for a place to store temporary .class files on Windows (some similar app support on Mac)

Possible Duplicate: Storing a file in the users directory in cross-platform Java I am working on a java project and the java application ends up making some .class files. Currently, these files are stored inside a projects directory inside the main application directory. Some people who run the application on a network with a ...

Variable-sized Array Initialization in Java

I have an array of integers in Java that is initialized as follows: public int MyNumbers[] = {0,0,0,0}; I would like to, however, initialize the array to a variable-length number of zeroes. private int number_of_elements = 4; public int MyNumbers[] = {0} * number_of_elements; // ???? I am clueless how to do this being new to Java ...