tagged [java]
Formatting Timestamps in Java
Formatting Timestamps in Java Is there a way to format a UTC time into any arbitrary string format I want in java? Basically I was thinking of having some class take the timestamp and I pass it is str...
Picking a random element from a set
Picking a random element from a set How do I pick a random element from a set? I'm particularly interested in picking a random element from a HashSet or a LinkedHashSet, in Java. Solutions for other l...
- Modified
- 24 Sep at 19:40
How to call Java code from C#?
How to call Java code from C#? We've developed a Java application and would like to use this application from a C# client. The application has dependencies on Spring, Log4j, ... What would be the most...
Can a web service return a stream?
Can a web service return a stream? I've been writing a little application that will let people upload & download files to me. I've added a web service to this applciation to provide the upload/downloa...
- Modified
- 25 Sep at 10:57
java.net.SocketException: Software caused connection abort: recv failed
java.net.SocketException: Software caused connection abort: recv failed I haven't been able to find an adequate answer to what exactly the following error means: `java.net.SocketException: Software ca...
Why aren't variables declared in "try" in scope in "catch" or "finally"?
Why aren't variables declared in "try" in scope in "catch" or "finally"? In C# and in Java (and possibly other languages as well), variables declared in a "try" block are not in scope in the correspon...
- Modified
- 26 Sep at 01:51
Calling .NET assembly from Java: JVM crashes
Calling .NET assembly from Java: JVM crashes I have a third party .NET Assembly and a large Java application. I need to call mothods provided by the .NET class library from the Java application. The a...
- Modified
- 26 Sep at 09:37
Best way to compare 2 XML documents in Java
Best way to compare 2 XML documents in Java I'm trying to write an automated test of an application that basically translates a custom message format into an XML message and sends it out the other end...
- Modified
- 26 Sep at 21:10
How do I locate resources on the classpath in java? Specifically stuff that ends in .hbm.xml
How do I locate resources on the classpath in java? Specifically stuff that ends in .hbm.xml How do I locate resources on the classpath in java? Specifically stuff that ends in .hbm.xml. My goal is to...
- Modified
- 26 Sep at 21:44
OCSP libraries for python / java / c?
OCSP libraries for python / java / c? Going back to my previous question on OCSP, does anybody know of "reliable" OCSP libraries for Python, Java and C? I need "client" OCSP functionality, as I'll be ...
Unloading classes in java?
Unloading classes in java? I have a custom class loader so that a desktop application can dynamically start loading classes from an AppServer I need to talk to. We did this since the amount of jars th...
- Modified
- 29 Sep at 14:17
Naming conventions for threads?
Naming conventions for threads? It's helpful to name threads so one can sort out which threads are doing what for diagnostic and debugging purposes. Is there a particular naming convention for threads...
- Modified
- 29 Sep at 18:35
Hibernate SessionFactoryBean for multiple locations of mapping files
Hibernate SessionFactoryBean for multiple locations of mapping files We have a project consisting of multiple subprojects. With each subproject we potentially have some hibernate mapping files but in ...
How do I avoid page breaks inside tables and groups in BIRT?
How do I avoid page breaks inside tables and groups in BIRT? When creating reports using BIRT 2.3.1, I don't want page breaks inside tables or groups; if the table doesn't fit in the space available a...
Varying Colors in Processing
Varying Colors in Processing I've been working on porting some of my Processing code over to regular Java in NetBeans. So far so well, most everything works great, except for when I go to use non-gray...
- Modified
- 3 Oct at 01:33
Differences between JDK and Java SDK
Differences between JDK and Java SDK Is there any substantial difference between those two terms?. I understand that JDK stands for Java Development Kit that is a subset of SDK (Software Development K...
Can I connect to SQL Server using Windows Authentication from Java EE webapp?
Can I connect to SQL Server using Windows Authentication from Java EE webapp? I am currently investigating how to make a connection to a SQL Server database from my Java EE web application using Windo...
- Modified
- 3 Oct at 18:36
Design of inheritance for Validate interfaces
Design of inheritance for Validate interfaces I've never been so good at design because there are so many different possibilities and they all have pros and cons and I'm never sure which to go with. A...
- Modified
- 8 Oct at 10:56
Classpath including JAR within a JAR
Classpath including JAR within a JAR Is it possible to specify a Java `classpath` that includes a JAR file contained within another JAR file?
Workaround for Spring/Hibernate due to non-standard behaviour of UNIQUE constraint in MS SQL
Workaround for Spring/Hibernate due to non-standard behaviour of UNIQUE constraint in MS SQL There is a UNIQUE database constraint on an index which doesn't allow more than one record having identical...
- Modified
- 8 Oct at 15:47
Monitoring Windows directory size
Monitoring Windows directory size I'm looking for something that will monitor Windows directories for size and file count over time. I'm talking about a handful of servers and a few thousand folders (...
- Modified
- 8 Oct at 19:4
Setting a log file name to include current date in Log4j
Setting a log file name to include current date in Log4j I would like to set the log file name for a log4j and log4net appender to have the current date. We are doing Daily rollovers but the current l...
How do you compare two version Strings in Java?
How do you compare two version Strings in Java? Is there a standard idiom for comparing version numbers? I can't just use a straight String compareTo because I don't know yet what the maximum number o...
- Modified
- 13 Oct at 21:16
C# equivalent to java's wait and notify?
C# equivalent to java's wait and notify? I am aware that you can lock an object in c# using lock but can you give up the lock and wait for something else to notify you that it's changed like you can i...
- Modified
- 16 Oct at 16:22
What reason is there for C# or Java having lambdas?
What reason is there for C# or Java having lambdas? What reason is there for C# or java having lambdas? Neither language is based around them, it appears to be another coding method to do the same thi...