java

Debugging the JNI code in VisualStudio 2003

How to debug the JNI code in VisualStudio 2003 without using eclipse? ...

How do I write Java code in Windows and compile and run in Linux

Hi, I'm a new Java developer and would like to find out if it's possible to write Java code in Windows using Eclipse, and the code is actually compiled and run on Linux. I need to write java program for Linux (Ubuntu) environment, but I'm used to Windows for development. I'm thinking of using Samba for file sharing, so I can use Windows...

Why an Eclipse RCP product build can not find classes in org.eclipse.ui during headless build?

I have a product definition that includes one feature I wrote and the org.eclipse.feature. When I build this product from eclipse, it completes successfully. However, when I try to use the Headless build, the compilation process fails as it complains that it cannot find classes included in org.eclipse.ui. One of these classes, for exa...

Calling a remote Java program on iSeries from RPG

I'm looking to invoke a Java program from RPG running on Iseries V5r4. The remote program is a web service client (performing a postcode lookup), running in Websphere. Ideally I'd like to call it direct from RPG? is that possible? or do I have to create a java program to run on the iSeries and use RMI or something to call the remote j...

Bouncycastle Install Provider Programmatically

Is it possible to install Bouncycastle provider programmaticly without modifying security policy file? ...

Java Database Connectivity (JDBC) session handling?

I am using MySql 5 Hi I am using/start learing JDBC. Well I got stuck here: After an user authenticated, I would like to start/generate the session for the user. How do I do that? In php, I know, we can start by using the "start_session()" function. Is there any similar function in JDBC? If there is no such kind of functions, how do w...

log file is not getting created using JDK logging with Commons-logging

When I run the TestJcLLoggingService class log messages are coming to Console but no log file is created, please help me if you know the answer. two source files are pasted below. TestJcLLoggingService.java package com.amadeus.psp.pasd.logging; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; impo...

How to set Eclipse compiler level to 1.1

Hi I use Eclipse 3.4 Ganymade which uses JRE 1.4/1.5 alternatively. Now I have to use JDK1.1 for one of my application. As far as I know Eclipse uses JRE1.3 as the default level of compiler. Is there any way to work with JRE1.1. I had installed both JDK 1.1 and 1.4 as well. ...

Selectively running a war in Tomcat Web apps.

Hi all, Here is my problem statement- I have an application in webapps of tomcat. I want to run the application in the browser only after checking the licence of the software. Is it possible to stop the application from running, whereas allowing other wars to run in the browser. Thanks, Adi ...

What does it mean by putting dots into a struts forward tag?

As the example below, I came across this one when reading the source code of JAVA D.I.Y Forum. <forward name="feedback" path=".page.index.feedback"/> <forward name="group" path=".page.index.group"/> ...

web integrated mobile application

i want to built an application, using the netbeans mobile application software(ME), which gets data from a website and then display it on the screen may be in a text box. ...

Java 7 Date/Time API

I notice that a snapshot of the Java 7 API has been up on java.sun.com for some time, but I only just had a look through it just now, looking specifically for the promised JodaTime-inspired Date/Time API. Alas, I can find no mention of it in the published docs. Is this because it simply hasn't been done yet, and this published API is an...

.NET equivalent of Java's List.subList()?

Is there a .NET equivalent of Java's List.subList() that works on IList<T>? ...

Gridgain executor service

What are the advantages of using GridGain's GridExecutorService to execute jobs remotely vs using the @Gridify annotation? You can pass an instance of java.lang.concurrent.ExecutorService to your class and have no dependency on the grid framework but do you lose any functionality? ...

Sending mail from java

What is the easiest way to send and receive mails in java. ...

How do I send email over SMTP with SSL using Java client?

I need to send email over smtp with ssl using java client. I'm not sure how to do that. If I have my server certificate installed on my Windows machine, how do I use it? If I want it to work on a non-Windows machine, do I need to get the certificates in a different way? BTW: If the SMTP server that I use is using SSL, can I be sure t...

Speex encoding in Java

I have a .wav file and I am using JSpeex (latest version, i.e., 0.9.7) to encode it, but the encoding is not happening properly if anybody has worked on the file. ...

How to avoid messages like "Profiler Agent Warning: Failed to lookup cached class org/apache/derby/impl/services/locks/ActiveLock" when profiling a Java application with visualvm?

When trying to monitor a Java application using visualvm I can't obtain useful information, because a lot of my classes (but not only mine) can't be instrumented, displaying the following message: Profiler Agent Warning: Failed to lookup cached class org/apache/derby/impl/services/locks/ActiveLock Thus, the profiler doesn't show any in...

Filtering XML nodes in Java | XSLT or Parser

Hi All, I've a big XML data returned by SAP. Of this, I need only few nodes, may be 30% of the returned data. After googling, I got to know that I can filter the nodes in either of the ways: Apply XSLT templates - Have seen some nice solutions, which i want, in this site only. Using a parser - use JDOM or SAX parser. which is the e...

How can we reduce the unnecessary loading of objects?

In hibernate as well as simple ORM strategy,i am normally loading all the values for the objects.Is there any way to avoid this. Due to this my app running slowly.. ...