I have a folder with more than 2000 files and I need to index their file names on a database(MySQL) using Java, but how could I do this?
PS: The MySQL connection part I already know.
Guys;
How are you doing today? I have to create a dll project on Eclipse Ganymede and I don´t know where to start... (I am a C# guy with VS).
Can you please indicate me what type of project should I create to make a dll on Eclipse Ganymede so I can call the DLL from other Java Project?
Thanks in advanced :D
I want to use Oracle stored procedure or function via 'iBATIS 3 for Java' with annotation.
But I can't find any sample codes.
Can anyone help me? I need a simple sample code.
I've spent the last year learning and using Java in university but we didn't do much (read: anything) in terms of Threading.
We do some next year but I'm hopeful I'll be able to get a head start over the summer.
What are the best resources for learning about and getting to grips with Threading?
I want to create a simple chat application that supports voice and video (something like Skype or Google Talk). I don't want to write everything from scratch, so my question is do you know some good libraries for that?
I stumbled over libjingle (c++) and Smash (Java), both implementing the XMPP extension Jingle. Would you recommend one of those?
Hello pip`s,
I have a JTable in Java that has a custom dataMOdel and custom renderer. Now when i select some cell it has a dark blue border around it. I want the selected row to be all highlighted in some colour. How to do that?
Hi,
I need to instantiate a Spring bean in the same manner as this Java code:
MyClass foo = Mockito.mock(MyClass.class);
The XML I need will look something like:
<bean id="foo" class="Mockito" factory-method="mock">
<constructor-arg value="MyClass"/>
</bean>
I can't seem to find the correct syntax for passing a Class object as a parameter to the factory method.
Thanks,
Don
Hi,
I'd like to find out a way to enumerate all available wifi networks using Java 6.0 and any third-party API.
Unfortunately, I'm not able to find a solution to this problem, all I got is a library that I can't use because I don't have any example.
I'll be very pleased if someone could help me.
The target platform is Win XP/7.
Edit: the library I found is named jwlanscan
Rob
How does one convert an empty string to an int using Struts2. When the application encounters this parameter with no value, like from an empty text field, it throws the following exception.
java.lang.NoSuchMethodException:
com.XXXXXXXXXXXX.setID([Ljava.lang.String;)
Where ID is an integer, and the URL is:
Something.action?ID=&other=rawr
Is there a way to do this without using an Integer (class)? Do I have to write a type converter?
I m consuming java based web service with c#.net app.
I m sending soap message in xml format.
But Im receving this error message:
ns1:Client.NoSOAPAction no SOAPAction header
I'm running in to an error when I try to run my server application from Eclipse. The error is java.net.BindException: Permission denied. I think this is because I am using port 443 to set up an SSL connection. I can get around this problem if I run my code on the command line using javac and sudo. Is there a way to set up Eclipse so that when I hit the run button, my application is executed with sudo?
I'm getting the Cannot find symbol error from my code. Does anyone know what can cause this problem?
// Register JDBC driver Class.forName("net.sourceforge.jtds.jdbc.Driver"); method forName(java.Lang.String)
Class.forName("net.sourceforge.jtds.jdbc.Driver);
^
Hello.
I have a task to write a web service with use of Hessian and Spring.
Unfortunately there is not enough information so i can't make it work myself...
Please can anyone write a simple Hello World for me?
My version always shows 404 when accesing with browser... I'm new to java so if smb knows how to help tell me what files of my project to share.
Thanks a lot!
Can someone please write to me source code in Java? I have a task: create a program, that contains two dimensional array (with numbers) and the programm needs to sum zeros in each column and then get out the number of column in which the zeros are least.. thanks!
From what I understand, the object state is just stored (values for fields, etc.), however, the execution context is anyways going to be lost.
What's the point of this? What bad can happen if so?
Note* this was taken from Effective Java By Joshua Bloch
I am working on eclipse java using swt jface with rcp.
How can i limit the characters in my text box. Like if i want only 4 characters in my text box then what should i do? and what if i want alphanumeric combination . again in certain limit?
For a while I have been struggling to integrate scala with java methods that might return null. I came up with the following utility which helps a lot:
// produce an Option, nulls become None
object Maybe {
def apply[T](t:T) = if (t==null) None else Some(t)
}
Maybe(javaClass.getResultCouldBeNull()).map( result => doSomeWork(result) )
I have a few questions about this solution:
Is there a better or more standard pattern to use?
Am I duplicating something that already exists?
Does this functionality have hidden gotchas?
Is there any free Java library for extracting text from PDF, that is compatible with Google Application Engine?
I've read about PDFJet, but it can't read PDF, can it?
Is there perhaps other way how to extract text from PDF? I tried http://www.pdfdownload.org/, unfortunately they don't handle non-English characters correctly.
In VB6 there are local static variables that keep their values after the exit of procedure. It's like using public vars but on local block. For example:
sub count()
static x as integer
x = x + 1
end sub
After 10 calls, x will be 10. I tried to search the same thing in .NET (and even Java) but there was none. Why? Does it break the OOP model in some way, and is there a way to emulate that.
Hi,
We have an issue where a Database table has to be updated on the status for a particular entity. Presently, its all Java code with a lot of if conditions and an update to the status. I was thinking along lines of using a Workflow engine since there can be multiple flows in future. Is it an overkill to use a Workflow Engine here... where do you draw the line ?
Hello All,
I want to connect to MS SQl server 2005 using hibernate in java. i am unable to find the jars and the hibernate.cfg.xml file for the same. can someone help me with the same
Thanks in Advance
Regards,
Rima
I'm writing a test engine for a Java application that has some of the code written in C. This application uses JNI to access it's native part.
In the engine I'm writing, I use Fest to control de UI and perform the tests. However, I,m blind when dealing with the part that is written in C. I wonder if I can use JNA or JNI to access the native part of the app. I believe that the fact that the application is already running is huge issue here.
I'm building a web app with custom components. I need a way to route requests to class / methods, is there any standalone java library that can achieve that (in a sexy manner [1]) ?
[1] read : no xml!
Hi all,
In my code I am updating two table, one after the other.
update(table1_details);
update(table2_details);
So if the update fails in table1 , table2 should not be updated or should be rolled back.
How to handle this situation. I know I have to use transaction. Can some one help with code !!!
I am using Java with spring and hibernate .