I have a Java app which uses a properties file.The application database is SQL server, I would like to move away from the hard coded userid and password in the properties file.
The properti...
I have a variable that I need to be able to set only once (not at declaration) and after that it needs to be a system constant for all intents and purposes.
The way I have this solved right ...
I am trying to search a hashmap key by its value, for example:
Map<String, Double> Task_Cost = new HashMap<String, Double>();
The values in this HashMap are as follows:
{AB=1.0, AX=1.5,BC...
I have migrate application java1.4 to 1.5 before migrating it the following code was working fine but after changing it that code it is returning an error "NullPointerException"
Before cha...
Dear EE members,
I have a brother who is not good in programming, although he has work as junior programmer for
past few years. To survive in the software industry, he forced to copy and p...
In Windows, when you say logoff it will say which user it needs to log off right.
So, In a Java Program how to get that username and print it?
I know how to get hostname with InetAddress but...
hi guys
I have a HashSet object like this
Set abcIds = new HashSet();
abcIds = [1, 10]
how do i check if abcIds contains a ','
if ( abcIds.indexOf (',') == 1 )
{
, exists
}
...
I am designing a program that calls for informtaion from a file line by line in a program called symitar somewhat like java, bit different though. Below i have listed the portion of code that ...
I would like a java application that would connect to a FTP/SSL server and download or upload a file.
I'm working on a project that uses Jasper Reports 2.0.4 to fill predefined .jrxml layouts with content provided by users. The content is applied to styled text textfields in the layouts via pa...
I want to check if a particular user exists in a particular group or not in Active Directory...
I am trying to execute a SQL Query from Java.
String c_Name="USA";
String strQuery = "select name from multiple_value where object_name = 'HUB_'\"+c_Name";
I want the value of c_Nam...
Dear experts,
I'm a Java newbie, and having a problem
I don't how to call the subversion of ant in code lines
any solutions for me?
Thanks
Heres my function to collect 2 strings from each line in a file in 2 arrays: _Resp AND _Score....for each line successively.
Each time in the loop, can i update the same file on the same li...
Hi, I'm little bit confusing about DSN,JNDI
1. can any body explain the difference between datasource,DSN(datasourcename) and JNDI?
2. can't we to interact with database using DSN?
3. can...
need sample code to convert sql server signature data to jpg with java
Are there any difference between the jar file created using ant tool and creating manually with the help of jar utility, available with jdk. Because there is a size difference when I modify a...
Hi,
I have a java application that was developed in Java 5 and is having problem running in Java 6.
In the Java Application I need to call a web service.
URLEndpoint endPoint = new URLEnd...
I am working on a Java web application that was developed 4 years ago. It is built using servlet api's/jar files from tomcat 5.0.
I need this simple Java web application to work on many v...
Hi Expert,
When i am trying to run my program it throwing me the error,
Aug 26, 2008 3:52:07 PM com.order.validation.OrderValidator run
SEVERE: null
java.lang.NullPointerException
...
Hi there,
This is the final installment of a problem I am trying to solve . So far two hurdles have been overcome. Here I have the final one.
I am trying to return a unicode character ba...
I'm using the IBM functional tester 7.0.1.2 for automated testing of our software. One of my tests involves running 149 test in parallel. I have threaded this portion to increase the test sp...
Hi,
When signing an applet, I've been taking the following steps:
1) Create a key:
keytool -genkey -alias MyApplet
2) Export the certificate:
keytool export -alias MyA...
I am writing a simple java desktop application to create a file on a system. I am using a Mac but am writing the code to work on either PC or Mac. The application is creating the file but "Hel...
Hi, experts, what do things like the following mean:
publish(V...)
process(V...) and even
protected void process(String... messages)
Is it a special form of multiple arguments that I m...