Can anyone help me? I am currently using eclipse java ide, and would like a plug-in that will automatically look at my classes and draw up a class diagram in UML.
any suggestions?
Hi,
I've switched my webserver from tomcat to jetty and encounter a "java.sql.SQLException: Io exception: Connection reset" when back from idle time (eg. i go out for a while) :(
This issue doesn't appear when i use tomcat. Does it come from jetty or i've done something wrong ?
Thank you!
Has anybody done any benchmarking/evaluation of the popular open-source embedded SQL DBs for performance, particularly write performance? I've some 1:1 comparisons for sqlite, Firebird Embedded, Derby and HSQLDB (others I am missing?) but no across the board comparisons... Also, I'd be interested in the overall developer experience for any of these (for a Java app).
I am busy working on a java app to run on blackberries but on some devices i am testing on, the code does not seem to be working and im having a hard time pinpointing where the problem lies.
My question is: Could the problem with some phones working and not working have t odo with the type of network they are running on such GSM vs CDMA and would the code that stops working on some devices be in one of the following areas:
1) Listeners - such as MessageListener and Phone Listener
2) UI Objects - simple test labels and buttons
3) Connection to a web service using ksoap2
I'm searching for a tool, which compiles a JSP file into a Java file without using a servletcontainer like Tomcat or something else. Can anyone help me out?
How can I run solr on a windows server, so it starts up automatically?
I run it with:
java -jar start.jar
but I need the server to do this automatically.
Hi,
In android, is it recommend to use static variable?
E.g, implement a Singleton pattern in Java, I usually do:
private static A the_instance;
public static A getInstance() {
if (the_instance == null) {
the_instance = new A();
}
return the_instance;
}
My question is when do that get free by android JVM?
Thank you.
I need to access the Serial Ports with Java in Windows Vista and FreebSD
is there any third party Solution to do that?
I understand Sun doesn't have a solution for that
I have an Android game that has an activity for the menu, and then another activity for the game that creates a SurfaceView and Thread to deal with canvas drawing and game logic. When you exit the game and start it up again too much or if you open and close the keyboard (thus restarting the activity), the game runs out of memory, usually when loading a bitmap:
java.lang.OutOfMemoryError: bitmap size exceeds VM budget
How can I keep all my images in memory without loading them again when the game changes state, or how can I release them from memory and let them reload when the game is restarted?
I'm having difficulties with some general OOP & Java approach. There are various ways to let classes/objects communicate with each other. To give a simple example:
I need object A to perform action X.
Object A needs P, Q and R to perform this action X.
Will then Object A retrieve P, Q and R by itself (within action X), or must these values be parameters for action X?
Given a database table with lots of data in it, what is the best practice to remove noise text? I want to detect and remove strings like:
fghfghfghfg
qsdqsdqsd
rtyrtyrty
I'm using Java.
I have a jar that runs forever (infinite loop with socket listening thread) and need it to run in the background at all times. An example would be: "java -jar test.jar" How do I do this? Thanks in advance!
Consider a private method which is called from JNI and not used otherwise, generating a compiler warning about an unused method:
private void someMethodCalledOnlyFromJNI() { // WARNING: method is never used
// ....
}
This is some legacy code in Java 1.4 - so no dice on @SuppressWarnings.
What hack would you use to suppress this compiler warning?
I was studying the legacy API's in the Java's Collection Framework and I learnt that classes such as Vector and HashTable have been superseded by ArrayList and HashMap.
However still they are NOT deprecated, and deemed as legacy when essentially, deprecation is applied to software features that are superseded and should be avoided, so, I am not sure when is a API deemed legacy and when it is deprecated.
Is there a way to annotate an anonymous inner class in Java?
In this example could you add a class level annotation to Class2?
public void method1() {
add(new Class2() {
public void method3() {}
});
}
I am running CentOS 5.5 x86_64 with JDK 1.6, Eclipse Galileo, and the 0.9.7 ADT is installed; however, after installation, the Android project type is not available. I have checked in the installed packages list and it is installed. Anybody encounter this problem before? Could it be due to my use of the 64-bit java VM that is installed on my system?
Hello..
I'm trying to use hibernate to fill my jsf selectonemenu in ApplicationBean (in Liferay). The problem is that I got Initial SessionFactory creation failed problem. Before putting my functions in the applicationbean I was setting them in sessionbean and I got no error.
For now the full error Initial SessionFactory creation failed.java.lang.ClassCastException: org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType
Thanks
I am a new user of Java swing. I need to be able to create a popup with row info when the user clicks on that row. I managed to incorporate the mouseClick event reaction in my table class, and I have the row info available. But I don't know how to notify the main window about the event so it can display the dialog box/popup box. Can you help me?
How to identify which server side script language was used with a web site?
Asp.Net? PHP? RoR? Java? or other?
For example, Which server side script language was used with stackoverflow.com?
Hello,
I'm currently having some issues with a Java application I'm developing. Namely the JVM is crashing with a segfault. I'm trying to locate the hs_err.log file which should contain some helpful info about the issue.
However, I can't find this file. I've used find, locate, etc, and nothing.
Any ideas on why the log file isn't being generated?
I’d like to know about the computer science. Is that a science or art ?Then what about the Information Technology ? What can be computed and What cannot be computed ? and I'd like to know about the Legal java code.
Could someone recommend a good and inexpensive software synthesizer which generates really good piano sound (sample-based); support for other instruments is not required. OS: Windows or MacOS. Java interface would be a great asset.
I am using Lucene with Java. In the index I have a single document with a single name:value-field
text:alabama oklahoma
When I search for
+alabama -oklahoma
it returns no results, as expected.
However, when I search for
-alabama +oklahoma
it returns the single document as a match to the query.
Has anyone else noticed this behaviour? Any ideas on why this happens?