Hi Experts,
I need to have a timer that fires up an event when the specified time is elapsed. How can I do this. Please provide a simple example.
Thanks,
When I run a test case I am getting the following error.
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in...
URL yahooURL = new URL("http://www.yahoo.com");
URLConnection yahooConnection = yahoo.openConnection();
I am under companies' firewall. But if chnage URL to an internal webpage, this code ...
How do I get the difference (int value) of two java.util.Date dates?
Like difference between 2007-05-31 and 2007-05-29 is 2.
Thanks.
_Esam
We are getting the below error every once in a while with our Tomcat server.. Earlier the value for MaxPermSize was 64Mb, which was increased to 128MB. Even then we are receiving this error.
...
How can we set a path permanently using .BAT file.
I wanted to add a folder bin directory to the existing PATH in my system variables, how can I do this using BATCH(.BAT) file ?
I do...
Here is the code: What is the issue with the "target line" ? Why Java does not allow the initialization of a final static variable in a constructor?
Thanks,
R
public class class1 {
p...
Hello,
I need to convert an image into a byte array. I have noticed that there are different types of "byte arrays", I need the type that I can drop straight into a file and hit save as......
Hi experts,
Java newbie here. Trying to do a POST to a https://
I get:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBu...
Hi! is there a way in java to implement a file change listener without using TimerTask class?
Here is my problem: I have a web-app that has few config files. For one of them, we have the requ...
How can I sort the following set in ascending order by the keys in the hashmaps m and m1 ?
bth the keys in the hashmaps are date strings.
Set all = new HashSet();
all.addAll(m.keySet());
...
When I execute this line :
title2 = title2.replaceAll("-", " ").replaceAll("_", " ").replaceAll("+", " ");
I have this exception :
java.util.regex.PatternSyntaxException: Dangling met...
Hi,
I have a web (jsp) application that works fine except for one small part that has stopped working. The part that doesn't work is the upload of jpeg files. This used to work on a previous ...
Hi,
I have a web project.
Now I just received an .wsdl file that is at /WEB-INF/wsdl/SendEmail.wsdl
I need to know how do I crete the client stub from this wsdl ?
I will need a littl...
We have recently rolled out Java 1.6.10 which "broke" one of our third party apps. It works when the "Enable the Next Generation JAVA plugin" is disabled, and I normally roll out through activ...
Hi guys
I have a while loop in which I am trying to replace "${"+key+"}" with a value in a String. But somehow it throws a parsing exception. Would anyone know if there is another way to re...
Hi,
I am getting java.net.UnknownHostException while connecting to a url using java.net. URL class.The error is occuring when the compiler encounters the following line of my program:
Syste...
WTObject extends Object class
LCSObject extends WTObject class
LCSObject implements FlexTyped interface
In FlexTyped interface:
java.lang.Object getValue(java.lang.String key)...
Hi,
is there some magic shortcut to indent all the code correctly in a block of code ?
Thank u.
C:\>dir
Volume in drive C has no label.
Volume Serial Number is 1832-5062
Directory of C:\
10/05/2008 10:00 AM 0 AUTOEXEC.BAT
11/17/2008 09:55 PM <DIR> ...
Cannot set environment variable PATH and TEST by passing the value through .bat file or through Runtime.exec(command, String[] env). I have java 1.4
I have :
String PATH = "\""+ "C:\\Progr...
Hi,
I am working on Java Application using Oracle JDeveloper 10g
How can I make the Executable file for my project
Please Help
I have 2 classes.
1. DataModel.java - this contains public getter methods and private fields like this:
public class DataModel {
/* private fields */
private double temperature;
private...
Hi,
I'm trying to write an application to run on app startup to lad values from XML file to
static java members. When I try to invoke a static java method with a primitive boolean
as par...
I am getting a Java Generics unchecked cast warning and I can't get rid of it.
The warning text is:
found : java.util.List
required: java.util.List<javax.measure.unit.Unit>
Lis...