I tried adding manifest.file=${src.dir}/manifest.mf to project.properties, but looking through the build-impl.xml I see that the manifest.available is usually accompanied by main.class condition, so it makes me believe that my manifest would be added only if the package has a main class, which mine, being a library, does not have. No mat...
Is there anyway to read the audio outputted by a program/the soundcard? Sort of like, reading the audio output of itunes, or firefox. I've searched around and I can't find any way to do this as it requires interfacing with the soundcard.
Any help is appreciated!
...
I'm creating a website which requires the images in the site's Gallery to be watermarked. I'd prefer the watermark to get added programatically when the image gets uploaded to the application (via it's web interface) than to manually add it before we do the upload.
Are there any simple ways (perhaps an image library?) that will allow me...
When trying to use the following settings:
<dependency org="net.sourceforge.artifact" name="artifact" rev="2.0"/>
and:
<artifact pattern="http://localhost/nexus/content/repositories/releases/[module]/[artifact]/[revision]/[artifact]-[revision].[ext]" />
Nexus expects
http:// ... net/sourceforge/artifact/artifact/revision/artifact....
I am using JDBC to retrieve data from a database. I understand that a Statement needs to be closed after it is used. However, I keep run into the same error telling me that no operation is allowed after the statement is closed. The structure of my code is like
public void foo() {
Statement;
try {
} catch{
}
Statement.close();
}
In my...
i want code to check whether the user in logged in or not. I get replied with context that to use HttpServletRequest.getUserPrincipal(). But i do not know how to set the username in servlet so that it is further called by getUserPrincipal()
Thank in advance
...
I am looking for a Java applet to read a file from client machine and creat a POST request for PHP server uploading.
PHP script on server should receive the file as normal file upload in FORM submit.
I am using the following code. The file contents are passed to PHP script
but they are not correctly converted to an image.
//uploadURL...
Hi All,
Our app sends the contents of the derby.log file to our server whenever Apache Derby throws a SQLException in our app.
In order to get detailed logs, we are setting the 'derby.infolog.append' property to true.
However, we are noticing enormously large logs files since the logs also contain bootup output each time a connection ...
i m developing a blackberry app in which i need to send a mssg to the wall of all my facebook friends, for this i need to have a session key. i have api key, secret key and obviously userid and password. how do i get the session key. i want to know about the api to do this.Any one please help me.
thanks in advance.
...
The only thing i know about phanom reference is,
if you use its get() method it will always return null, and not the object. [ then whats the use of it ]
By using phantom reference you make it sure that the object cannot be resurrected from finalize method;
But what is the use of this concept/class? Have you ever used this in any of...
Hello, i want to know how to extract candidate objects from xml document?
for example,
"titles" from a publication xml document.
"titles" objects are preprocessed and stored into database to detect duplicate MD5 algorithm.
Pls,give me any suggesstions.
...
Hi I have created a java application and created a jar file. Then I created a batch file eg-> startup.bat The contents of this file is java -jar MyApp.jar
Now if I double click the batch file then my java application works because both the jar file and batch file belong to same directory. Now I copied the batch file to desktop and run...
When I started OO programming many years ago I gained the impression that variables (if that is the right word) were either "primitives" (int, double, etc.) or first-class objects (String, JPane, etc.). This is reinforced by a recent answer on primitives in Java and C# (@Daniel Pryden: http://stackoverflow.com/questions/1597999/are-primi...
I am getting a number format exception when trying to do it
int temp = Integer.parseInt("C050005C",16);
if I reduce one of the digits in the hex number it converts but not otherwise. why and how to solve this problem?
...
Can we only have Start() and Stop() instead?
Any one know?
...
I am using SAAJ at the client side for sending a soap request. I am also attaching a random binary string as an attachment to the SOAP request, using this API.
soapMessage.addAttachment(attachment);
When I sniff this request through wireshark, I can see my attachment outside the <SoapEnv>,
but when this request reaches the client side...
Hi,
I have an issue.I need to run a query to get a data say test from a table t.The query currently runs in an action class.Its taking 20 seconds to run.Now my problem is not all times t is going to have value and the users will be annoyed if I make them wait to check whether t exists or not.
select t from table
if(t!=null&&!(.equal...
Hi !
I want to secure a webservice using Netbeans with mechansim : "Message Authentication over SSL" and I do everything that Netbeans documentation and
Sun WSIT tutorial told to do. I also import the generated SSL key in client jre but when I run the client code, I still got this error :
Failed to access the WSDL at: https://loca...
I would like to hold a ref of some other entity using its identifier.
The object model which I am working on is huge and related entities hold lot of data. Also few pieces are cyclic in nature and I suspect that holding objects directly will be a problem.
So consider following as an example say there are two entities A & B:
Class A
{...
java 1.4
Sql server 2000
i am taking input of sql query (for validation of field value against values retrieved by executing sql query) from admin user which will be stored in database and later i will executing sql query corresponding to field.Before inserting sql query in database i want to validate its syntax in java code.
Fields ...