2d
answered Forcing a Java tooltip to appear?
Jul
25
comment Exclude only some files with the same name when copying using robocopy
@Dennis-Williamson, Thanks for this right answer. A pity that is doesn't work with wildcards: robocopy folder1 destination /E /XF "c:\somedir\another dir\folder1\help.txt*" leads to an error.
Jul
8
comment How do I build a single bundled JAR with all the needed classes to run a Java application?
This will include the complete content of the library jar into the destination, not only the .class files the main program really needs.
Jul
7
comment How use property expansion in a Launch4j config file
I will actually not check this change as it introduces some undesirable dependance of ConfigPersiser with ant. The better will be the comment of @halfbit
Jul
3
comment How to update a table column with random values within a range in Oracle?
And for integers between 1 and 4 (inclusive): ceil(dbms_random.value() * 4)
Jun
24
comment vim editor full screen in putty
After removing set lines=68 from my .vimrc, no problem anymore with the display in PuTTY.
Apr
24
comment How to wait for all threads to finish, using ExecutorService?
Not a good idea, see stackoverflow.com/a/7271685/1166992 and the javadoc: "Returns the approximate number of threads that are actively executing tasks."
Apr
17
awarded Caucus
Apr
8
comment Convert InputStream to byte array in Java
Interesting thing, but you must know the exact length of the (part of the) stream to read. Moreover, the class DataInputStream is primary used to read primary types (Longs, Shorts, Chars...) from a stream, so we can see this usage as a misuse of the class.
Apr
8
answered Set VIM to open files in "read-only" mode by default?
Mar
31
comment Is possible to setting a color into JTree?
setBackground sets the background color of the tree, but not the one of the cells. The text of the node therefore still appears whith a white background.
Mar
24
awarded Supporter
Mar
23
answered Java shutdown hook call on windows shut down
Mar
22
revised java.exe does not end - only one OS-thread remains
deleted 300 characters in body
Mar
22
comment java.exe does not end - only one OS-thread remains
Even your application has several threads and one of them indefinitely waits on a condition, it doesn't mean that two threads (or more) blocks one other. Please take the time to read what a deadlock is before critizing all other developers for what they know, and not allege.
Mar
20
accepted Split SQL-INSERT into a Map columnames > values
Mar
20
comment Processing all exceptions in multiple streams
Do you really have a good reason to log all the exceptions - as well the catches ones as the other ones? Thousands ones occur in the background and you surely not want to know about them (just take the {{InterruptedException}} as example...
Mar
20
revised java.exe does not end - only one OS-thread remains
Edit about the response "one no-deamon thread is still running"
Mar
19
comment java.exe does not end - only one OS-thread remains
I don't think so, as the java.exe process only have one OS-thread (see above). I've already checked my code (I'm the java application developer and know what a watchdog is.)
Mar
19
comment java.exe does not end - only one OS-thread remains
I've already tried to debug the process. But it is not possible. Jstack could not attach to the application. It is logical, as the windows process only have a thread (instead of several for "still running" applications). The java.exe is in my case something like a zombie...
1 2 3 4 5