I'm developing a Ruby web application on top of GAE-Java and development is painfully slow because in Eclipse I must restart the development server every time I make a change to my Ruby code. I'm not able to work effectively this way because each restart takes about a minute.
Is the norm for Java development or am I doing something wron...
Is there a way to find out which processor (either on a single system or mutliple systems) your thread is running on, using Java native threads? If not, is there any library which could help?
...
I'm currently wondering what the actual overhead, in the JVM, is for loading extra classes which are never used.
We have code which iterates all the classes in the class path to find classes which implement a certain interface, we then load them.
This allows custom classes to be simply dropped in a directory and they get loaded and reg...
Hi friends,
how to use JNI in JSP page?.In net i found that
1. because if anything goes seriously wrong in the C part of your application, it will very likely crash your J2EE server, downing all other web services and applications it is running.
because the 'reactivatable' nature of web applications means there is no guaran...
Hello
Presently, i am learning Java from the book The Art and Science of Java and following Standford's Programming Methodology Course.
I would like to do game programming, but only as a hobby.
I was thinking, would Java be a good choice or is C++ the defacto in game programming.
...
I'm running multiple idempotent tasks to gather one batch of data. I found out that many times the computation is delayed significantly due to a couple of tasks out of a hundred.
What I'd like is a way of watching these tasks and launching the stragglers again if they are significantly delayed.
Is there a standard library or idiom for ...
I have similar problem to the one described in this question: I am using the "mailto" protocol to open the default mail client from Java (I am tied to Java 5 for now, so sadly I can't use the Desktop API).
Some of the emails contain Japanese text. The strings are already being UTF-8 encoded as follows:
private void email(String to, Str...
Java has primitive data types which doesn't derive from object like in Ruby. So can we consider Java as a 100% object oriented language? Another question: Why doesn't Java design primitive data types the object way?
...
Hi,
I am trying to compile a java source file on command prompt with the following command
C:\temp\test>javac -cp ".\*;" *.java
but the class does not get compiles, i have errors of type files not found, or could not find resource...
Even though the jars are present in the same directory as the java files.
Any help asap is highly ...
I've written class to parse some xml into an object and it's not working correctly, when I try and get the value of a node I get a null rather than the contents of the node.
Here is a simplified version of my class that just does the xml parsing of a single node:
import java.io.File;
import java.io.IOException;
import java.util.ArrayLi...
I have a project that uses generics and a few Java 1.5/6 bits and pieces.
Is it possible to compile this code to work on a system running a 1.4 JRE?
I use an ANT build script and javac task to compile the library. This builds fine while the target attribute is 1.5.
If I change the target to be 1.4 I get the following error:
generics a...
Given the following code in Eclipse:
import org.eclipse.jdt.core.dom.AST;
import org.eclipse.jdt.core.dom.ASTParser;
import org.eclipse.jdt.core.dom.CompilationUnit;
public class Question {
public static void main(String[] args) {
String source = "class Bob {}";
ASTParser parser = ASTParser.newParser(AST.JLS3);
...
Hi All :
I have a code which creates an image in application server and that image has been referred in mail html. After sending mail, image will be deleted in application server. When i open the mail , image is not getting display in the mail.
The reason i guess is , my code is deleting the image before it copied to mail server. I ha...
I want the eclipse Java Compiler Warnings available as an ant task (ie without eclipse) - ideally as ant plugins - but I want the cruise control ant task to fail if an eclipse warning shows up. For the following warnings
Non-static access to static member
Method with a constructor name
Serializable class without serialVersionUID
Assign...
How can I create a Timestamp with the date 23/09/2007?
...
I want to authenticate my web service in Spring with an Active Directory lookup at both the producer and the consumer - under the Principal that that each are executing under (ie Service Accounts).
I'm assuming I have to use
JaasPlainTextPasswordValidationCallbackHandler
and
JaasCertificateValidationCallbackHandler
and set up my ...
Given that the Google Contacts java API has not exposed all the fields
http://groups.google.com/group/google-contacts-api/browse_thread/thread/a2dbc7d052fa318b/f704527adc6c6597?lnk=gst&q=exposed#f704527adc6c6597
How would you workaround the problem of accessing the 'Mr' or 'Company' fields on the Google Contacts api?
...
I need to create one of these as the interface requires it...can someone please let me know how to create one, as there doesnt seem to be a c'tor defined?
...
Suppose I have a class
and I want to use it somewhere as a generic type:
class MyList<T>
{
T[] list=T[10];
public void add(T element)
{
list[0]=element;
}
}
After compilation, does it remove its type information like it is the case for generic collections?
I don't need to use this code anywhere, so please do...
hi
why cant we have static method in an inner class
and if i make inner class static it works why so
...