java

What is the single best free Eclipse plugin for a Java developer

Some Eclipse plugins are mandated by your environment. The appropriate source code management plugin, for example - and I'm not interested in those. Some provide useful enhancements, but in a specific niche. I'm not interested in those. Some are great, but cost money. I'm not interested in those. Some were really useful on older versi...

Usable JSP/Servlet Hosting

Has anyone found a usable JSP/Servlet hosting provider? Lunarpages offers JSP as an option, but the server they use (Resin 2.1) is poorly implemented, out of date, cantankerous, and is always running out of memory. There's javaservlethosting.com, but they apparently have a rather negative reputation for poor service. Myjavaserver.com is ...

Using P4Package (Java) from Java app to validate Perforce directory

In a web-app I'm writing, the user is supposed to enter the path in the Perforce repository for the node they're entering. The application is supposed to validate that the entered directory exists in the repo. I've got the P4Package (p4.jar) lib, and I'm configuring it correctly enough that it works for almost everything, EXCEPT this d...

Editable JTable Tutorial

Are there any good books or website that go over creating a JTable? I want to make one column editable. I would like to actually put a inherited JCheckBox component (that we created here) into one of the table columns instead of just having the table put JCheckBox in based on it being an editable boolean field. I have the JFC Swing Tut...

Pass by reference not returning in RMI for ArrayList

I've got an RMI call defined as: public void remoteGetCustomerNameNumbers(ArrayList<String> customerNumberList, ArrayList<String> customerNameList) throws java.rmi.RemoteException; The function does a database lookup and populates the two ArrayLists. The calling function gets nothing. I believe this works with Vector types. Do I nee...

What criteria should be used to judge and compare Java applications?

I have to support a Java Programming Challenge for students and we have to come up with some technical criteria to judge their java application. What is the best way to compare and judge an application, based on the code and the documentation? Edit to give more details about the challenge: The students are supposed to develop an applica...

How does the Java for each loop work?

List<String> someList = new ArrayList<String>() // add "monkey", "donkey", "skeleton key" to someList for(String item : someList ){ System.out.println(item); } What would the equivalent for loop look like without using the for each syntax? ...

Most common cause of "java.lang.NullPointerException" when dealing with XMLs?

My strongest lead is that the code who deals with the incoming XMLs is actually receiving an invalid/incomplete file hence failing the DOM parsing. Any suggestions? ...

What is stopping you from using static analysis tools?

I'm trying to understand why some Java projects do not use static analysis tools like PMD, FindBugs, and Checkstyle. Lack of support from the powers-that-be in your organization? Perceived lack of value in the feedback provided by these tools? (signal-to-noise ratio too low? too many false positives?) Lack of time to configure and ...

How to make Swing scroll with "ensureIndexIsVisible"?

When I run this code the selected item is not visible. I've already tried to run it in a separate thread with no luck. import javax.swing.JFrame; import java.awt.Container; import javax.swing.JList; import javax.swing.ListSelectionModel; import javax.swing.JScrollPane; import java.awt.Dimension; public class ScrollList extends JFrame ...

Can anyone recommend a simple Java logging framework?

I've evaluated Log4j and Commons Logging, along with Java's built-in logging, however frankly all of these frameworks seem over-engineered, and over-complicated, requiring excessive configuration just to achieve basic functionality. Is anyone aware of a simple, yet flexible open source Java logging framework? Update: In response to a q...

Best way to extract TimeZone object from a String?

I have a database field that contains a raw date field (stored as character data), such as Friday, September 26, 2008 8:30 PM Eastern Daylight Time I can parse this as a Date easily, with SimpleDateFormat DateFormat dbFormatter = new SimpleDateFormat("EEEE, MMMM dd, yyyy hh:mm aa zzzz"); Date scheduledDate = dbFormatter.parse(raw...

Measure Total Network Transfer Time from Servlets

How do i measure how long a client has to wait for a request. On the server side it is easy, through a filter for example. But if we want to take into accout the total time including latency and data transfer, it gets diffcult. is it possible to access the underlying socket to see when the request is finished? or is it neccessary to d...

Any good recommendations for MP3/Sound libraries for java?

Hello all! I am writing my masters thesis which is closely related to processing sound files (mp3 and alternative formats such as ogg, aac, ...) and sound in Java. Because Java has so much open source support, I didn't think I would have any problems in finding everything I need already coded, but so far results are very sparse. I want...

Books and tutorials for beginners in Java and PHP

hi mi name is Carlos i'm from guatemala, i need help, I am a beginner in the programming and I need good books to be able to associate with the programming. you could help me, the language that strikes me is php and java for connections to DB ...

Books for an ASP.NET Developer moving to Java

Similar to this question http://stackoverflow.com/questions/72719/good-book-for-a-c-developer-going-over-to-java I'd like to know what books mainly targeting web development people would recommend. I'm currently developing large applications with ASP.NET MVC using TDD/DDD (persistence provided by NHibernate, IoC/Application Framework by...

Internationalised labels in JSF/Facelets

Does Facelets have any features for neater or more readable internationalised user interface text labels that what you can otherwise do using JSF? For example, with plain JSF, using h:outputFormat is a very verbose way to interpolate variables in messages. Clarification: I know that I can add a message file entry that looks like: labe...

best Java GUI Editor

I know there is nothing called the best Java IDE (eclipse, netbean,...) each one has its own speciality but when it comes the GUI Editor (visual Editor) there are some interesting items out there i would love to know which one is the most recomanded thanks I am not asking for a full IDE, i am sking about any GUI editor or plugin for a...

What is the best documentation for snapshots and flow repositories in Spring Web Flow?

I'm looking for more and better documentation about snapshots, flow repositories, and flow state serialization in Spring Web Flow. Available docs I've found seem pretty sparse. "Spring in Action" doesn't talk about this. The Spring Web Flow Reference Manual does mention a couple flags here: http://static.springframework.org/spring-we...

What is the best Java numerical method package?

I am looking for a Java-based numerical method package that provides functionality including: Solving systems of equations using different numerical analysis algorithms. Matrix methods (e.g., inversion). Spline approximations. Probability distributions and statistical methods. In this case, "best" is defined as a package with a matur...