Problem with interface implementation hi all, im following an excercise from the book "Sams teach yourself java in 21 days" i typed the exercise exactly as in the book but i get an error. below are the error and the full code of the program. thank you very much for your help. error: Caused by: java.lang.RuntimeException: Uncompilable source code -... 14 Feb 2010 15:09
What does volatile guarantee? Originally I thought volatile just suppressed caching a value in a register, so that other threads going to RAM would see the latest value. IIRC at least in some early JVM, you could not count on 64-bit loads and stores being atomic. But on reading the JLS, it seems to guarantee even more. It says all threads... 18 Feb 2010 15:05
64-bit JNI I have had some requests to provide 64-bit versions of my JNI. I wondered if anyone has any pearls to share about the process. One puzzle, what sort of naming convention do you use to keep track of the 32 and 64-bit version of a DLL? I would think you need to create a new extension for 64-bit DLLs, e.g. *.DLL6... 17 Feb 2010 00:03
JSF + XLS ? Let's say I want to create new XLS file with jxl (jexcel) in some controller. The function for this is createWorkbook(java.io.File file) , but it works when you put let's say c:\somedir\somefile.xls, but my problem is that this is web application, and I don't have any local directories. Any suggestions ? ... 10 Feb 2010 16:47
finite state machine with enum hi all i have a byte stream that has to be decoded in a list of simple containers - basically I do a translation from serial to parallel. The implementation I'm using now has this form: public class RawProtocol{ private long millis=/*some initialization procedure*/; public RawProtocol(InputStream inpu... 12 Feb 2010 19:05
Table pagination for about 40 rows per page I use the TableKit javascript library and JSP for displaying scientific data. The size of my data sets are about 100-25000 rows and 5 columns. I would like to display the data for about 40 rows per page. The user can click the "Next" and "Previous" button to go to the next and previous page respectively. The user... 9 Feb 2010 17:24
Java Lead with GUI & SWT | CA | 10+ months Role: Java Lead with GUI & SWT Location: CA Duration: 10+ Months Should be able to design, develop, debug programs independently and mentor others. SWT:Evolution, Features, Advantages and disadvantages, Overview of Architecture, Platform support, Set up, SWT controls, Events, Listeners, Some controls in... 9 Feb 2010 13:57
Statements before super() Eric Sosman wrote: On 2/9/2010 4:49 AM, Pitch wrote: Also, you cannot place any code before super(...) which I already new, and it also sucks. :) [...] Anyone knows why is that so? [...] If it were possible to run arbitrary code on a Sub instance before its Super-ness had been established and... 13 Feb 2010 08:11
What is the difference between Memory Usage and Heap Usage in my JVM Metrics ? On Mon, 8 Feb 2010 17:15:54 -0800 (PST), Krist <krislioe(a)gmail.com> wrote, quoted or indirectly quoted someone who said : How can I also tune the 'memory for internal stuff' usage ? see http://mindprod.com/jgloss/javaexe.html for some of the parameters you can tweak. Follow links to some even more esoteric on... 9 Feb 2010 11:41
What is the difference between Memory Usage and Heap Usage in my JVM Metrics ? On Mon, 8 Feb 2010 15:08:41 -0800 (PST), Krist <krislioe(a)gmail.com> wrote, quoted or indirectly quoted someone who said : (heap usage seems to be up and down, but memory usage is never going down, even when all user already loggout.) What are the difference between the two ? Your variables you allocat... 8 Feb 2010 20:13 |