I have switched to JUnit4.4 from JUnit3.8. I run my tests using ant, all my tests run successfully but test utility classes fail with "No runnable methods" error. The pattern I am using is to include all classes with name *Test* under test folder.
I understand that the runner can't find any method annotated with @Test attribute. But the...
Dears,
how can I let an SWF file to retrieve values immediately from Java application that does live calculations (Speed is a necessity).
question in other form : how can I
give my website browser immediate data
- that are bean calculated now - as fast as i
can ?
...
The situation:
Lets say we are implementing a blog engine based on JCR with support for localization.
The content structure looks something like this /blogname/content/[node name]
The problem:
What is the best way to name the content nodes (/blogname/content/[nodename]) to satisfy the following requirements:
The node name must be us...
Hey,
I need to write a compiler. It's homework at the univ. The teacher told us that we can use any API we want to do the parsing of the code, as long as it is a good one. That way we can focus more on the JVM we will generate.
So yes, I'll write a compiler in Java to generate Java.
Do you know any good API for this? Should I use reg...
Hi!
I'm really tired of using the Google Web Toolkit for accessing Google Maps in Java using Netbeans... Does anybody know of a good alternative providing a simple(r) API?
Any help would really be appreciated!
...
I had a really huge problem recently which took me a lot of time to debug. I have an update statement which updates 32 columns in table. I did that with PreparedStatement. Accidentaly I deleted one setParameter() call so update could not be finished successfully.
I got exception from JDBC (Apache Derby) telling: "At leas one parameter ...
Our project group is working on a Java language extension and we have been trying to figure out what tool we should use for this purpose. The extension will primarily consist of a modification of the concurrency model used in Java. We have been looking at two tools so far: Polyglot and Javacc. Javacc seems to be a bit more easy to use, b...
What Java WebDAV client side library could you recommend?
...
Is it possible to lazily instantiate a final field?
The following code does not compile:
public class Test{
private final Connection conn;
public Connection getConnection(){
if(conn==null){
conn = new Connection();
}
return conn;
}
}
Is there an alternative?
...
I need a java library to read vcard files (vcf).
...
My entity has a named query which looks like this:
@NamedQuery(name = "Person.find", query = "select p from Organization p where p.name=:NAME")
In my code I want to set the query cache hint:
query.setHint("eclipselink.cache-usage", "CheckCacheThenDatabase");
If I try to get whole result list:
List<Person> result = query.getResultL...
I'm a somewhat advanced C++/Java Developer who recently became interested in Python and I enjoy its dynamic typing and efficient coding style very much. I currently use it on my small programming needs like solving programming riddles and scripting, but I'm curious if anyone out there has successfully used Python in an enterprise-quality...
Hi people!
I'm having a little problem in Java.
How to do this: I want to search in a HTML file for the tags href and src, and then I want to get the URL associated with that tags.
What is the best way to do it?
Thanks for the help.
Best regards.
...
I need to downgrade Java in Ubuntu. Current version is 1.6.0, I have to use JDK 1.5.0 for my Android platform.
How to do it? Remove it and reinstall?
...
I get a list of names and need to validate them. Some examples:
Elizabeth T. Bang
Elizabeth Bang
Zaki M. F. El-Adawy
joseph m. pastore, jr.
Zaki M. F. El-Adawy
How can I use regular expressions in Java to validate them?
...
is python slower than java/C#?
performance-comparison-c-java-python-ruby-jython-jruby-groovy
Here is a project that optimizes CPython unladen-swallow
...
Is there any other way beside using imageIO.read to get image height and width?
Because I encounter some issue that will lockup the thread.
at com.sun.medialib.codec.jpeg.Decoder.njpeg_decode(Native Method)
at com.sun.medialib.codec.jpeg.Decoder.decode(Decoder.java:87)
at com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImage...
I have this code. And basically this returns the correct data without the town qualities. When I add the town qualities the method returns nothing, not even the orginal data that it has been and I dont know why. Can anyone see a problem?
protected void listRecords() {
mListForm.deleteAll(); // clear the form
try {
Recor...
Hi,
I'm reading some data that has already been converted to html style υ code.
I now need to convert this back to UTF-8 characters for viewing. Unfortunately I can't use a browser to view the string.
I've read around about conversion in java and it seems if you have a string of \uxxxx then the compiler will convert for you; Howeve...
Is there a simple way to get driving instructions?
Something like: I call "http://someservice/?start=NYC&target=Washington" and then the service returns a XML file containing routing information?
Has anybody ever tried to access such a web-based service from a standalone desktop application?
Any help would really be appreciated!
...