 |
 |
Index ‹ java-programmer
|
- Previous
- 1
- How to build a class w/ return value?I apologize for a newbie question, but I'm just starting with Java.
I'm trying to write a program which includes a class for checking if a
given text field has a value.
My basic logic would run something like:
A button is pressed
On that event, check if a text field has a value
if it does, return true, else return false.
So, I want to say in the action listener event for that button something
like:
if ( checkValue( txtFieldName ) == true)
do something
else
do something else
I'd then have a public funciton for checking the value
public checkValue( String txtFieldName )
{
if ( txtFieldName == "" )
return false;
else
return true;
}
This keeps giving me an error that a return code is needed for a public
class. If i put void in the class, I can run it but then nothing gets
returned.
Now, a bit of background - I've been doing VB for 12 years, so maybe my
thinking is flawed. If so, is there another way of going about this? I've
googled for the past hour and am very frustrated.
--
kai - email***@***.com - www.perfectreign.com
kai:/> format a:
Error: The DOS concept of formatting disk media is screwed.
To format a floppy, use "fdformat /dev/fd0"
and then "mkfs.minix /dev/fd0".
- 1
- java long in an Access databaseHi,
Perhaps this is more of an Access question. I'm discovering that
Access' "Long Integer" cannot store a java Long. So I'm resorting to
string the numbers as strings. I'm I doing the right thing (other than
using Access :) ) or missing someting?
Many thanks in advance!
Aaron Fude
- 3
- Switching Locale intermittent geometry position bugHi,
I'm working on a 3D visualization of the Mars Exploration Rover
Mission.
Please refer to my webpage:
http://home.comcast.net/~meralizer/
Everything appears to be working well, except I'm still haunted with
what appears to be a Locale/HiResCoord bug.
What makes it more difficult to debug is that it's intermittent!
Sometimes when I switch to a Locale, geometry in the scene/heirarchy
jumps to the wrong position and orientation. However, when I switch to
another Locale and back again, this "fixes" the problem.
So it appears that some information in the transformation heirarchy is
temporarily corrupted. Then when I toggle the Locales, it's is
restored/updated/recalculated to the correct values.
I'm trying to finish this project, but this one remaining bug is
driving me nuts.I'm getting the same bug on two different platforms,
so it's not a platform/grapics card-specific bug.
Any ideas?
thanks
- 4
- Add a computer language to NetbeansHello
This may be a simple question. I searched in Google but I think I am
using inapropiate words for the query and I don't get what I want.
How can I add a syntax highlight for a new language, in my case X3D,
to Netbeans?
Any general tutorial?
Thanks
Jordi
Note: Does someone already have done this with VRML or X3D?
- 4
- Parallel PortHello,
I want to drive a device using the parallel port data output.
I want to use preferably an applet to do that. Is that possible?
I heard that javax.comm is not very reliable, does anyone have experience
with it?
thanks,
anwar
- 5
- considering a job as an ATG dynamo server adapter to j2ee enviormenthi...
i've been offered a job which involves getting a large content based
java application based on ATG dynamo server version 4.5.0, they
considering a move to a j2ee enviorment system (a rewrite of the
entire application is in order) and need a person who will study the
current application and who willl provide insight for writing the
existing one.
i have no actuall expirience in j2ee ejb etc.. and as such, would
like what is the learning curve for this server
- 6
- CLOB problem in JAVAHi :
I am getting a casting exception (java.lang.ClassCastException:
com.ibm.ws.rsadapter.jdbc.WSJdbcConnection) when invoking the
CLOB.createTemporary metehod. Extract of relevant lines shown below:
Any
ideas how I can resolve this?
Versions:
Oracle 9i
WebSphere Ver 5.1
Cheers
Lig
import java.io.Writer;
import java.sql.Clob;
import java.sql.Connection;
import java.sql.CallableStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Blob;
import javax.sql.DataSource;
import javax.naming.InitialContext;
import javax.naming.Context;
import javax.naming.NamingException;
import java.util.List;
import java.util.ArrayList;
import java.sql.Types;
import oracle.jdbc.OracleConnection;
import oracle.jdbc.driver.*;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import oracle.sql.CLOB;
.
.
.
Context jndiContext = new InitialContext();
DataSource ds = (DataSource)jndiContext.lookup("java:comp/env/"
+s_dataSource);
Connection conn = ds.getConnection();
tempClob = CLOB.createTemporary(conn, true, CLOB.DURATION_SESSION );
Error Encountered: -
java.lang.ClassCastException:
com.ibm.ws.rsadapter.jdbc.WSJdbcConnection
- 8
- subclass DeflaterOutputStream just to get bytes written?I am using a deflater output stream, GZIPOutputStream specifically. I
need to know the number of bytes written out by the stream. Obviously
this is not the same number as the number of bytes I have given the
stream. It looks like the only way to get this information is through
the 'def' field, calling getBytesWritten(), or getTotalOut(), depending
on whether I want a long or an int. The problem is that the 'def' field
is protected. So to get this information, I have to subclass
GZIPOutputstream.
Surely, it is fairly common to need this information. Is this a design
flaw, or am I just too stupid to see an easier way to get this information?
Thanks,
~Shea M.
- 9
- Designing presentation-tier for occasionally connected applications.Folks
We are in the process of developing a web-based app that needs to be
functional when the user is on the road where the Internet connection
to the server is not available. There are 3 basic requirements:
1. Must be web-based, not a fat client app.
2. The UI for the offline mode and on-line should be identical.
3. In the off-line mode some basic functionality to enter data (fill
forms) should be available, that do not need to be reentered when the
connectivity is available.
Can some one think of a solution on how one would design this app. To
me disconnect from the network mean no web application, but some one
here insisted that we can put a web-server/appserver on each client
machine (about 200 of these).
Swing based solutions are ruled out because that is not a web-based
architecture.
Any ideas?
Thanks in advance.
Vijay
- 10
- Strange problem with Bluetooth and RFCOMMHi,
I have programmed an application that sends data from a PC to a mobile
phone. This application uses the Bluecove library and a RFCOMM
connection.
When I establish a connection between these two devices and send from
the server (PC) a float number (e.g. 3.12) to the client (mobile
phone), the number is displayed correctly and everything is fine. But
when I want to send 20 float values the following reaches the phone:
3.12
3.12
3.12
3.1199999,
-2.12422343E14
9.707659E-27
9.707659E-27
...
0.0
0.0
...
0.0
These values are changing when sending them multiple times. Sometimes
there are more correct numbers (3.12), sometimes less. And sometimes
the mobile application just crashes without an error.
Probably the reason for that is the data which is not transferred
properly. I tested different ways to transfer the data, e.g. partioning
the data into smaller packets or using DataOutputStream but nothing was
a success.
Snippets of one of my source codes:
/* SERVER */
OutputStream out = null;
ByteArrayOutputStream baos = new ByteArrayOutputStream();
DataOutputStream dos = new DataOutputStream(baos);
for (int i = 0; i < 20; i++) {
float f = 3.12f;
dos.writeFloat(f);
}
byte[] rawData = baos.toByteArray();
dos.close();
baos.close();
out = connection.openOutputStream();
out.write(rawData.length >> 8);
out.write(rawData.length & 0xff);
out.write(rawData);
out.flush();
out.close();
connection.close();
/*CLIENT*/
in = connection.openInputStream();
int length = in.read() << 8;
length |= in.read();
byte[] data = new byte[length];
length = 0;
while (length != data.length) {
int n = in.read(data, length, data.length - length);
if (n == -1) {
throw new IOException("Can't read data");
}
length += n;
}
ByteArrayInputStream bais = new ByteArrayInputStream(data);
DataInputStream dis = new DataInputStream(bais);
for (int i = 0; i < 20; i++) {
Log.out(dis.readFloat() + " ");
}
Has anyone an idea how to solve this problem?
Peter Vermeer
- 11
- the iPhone Widget List!wow, already many apps / widgets for the iPhone and the thing doesn't
ship for 55ish hours! expect 1000's of these in a few months... they
really make apps on any other mobile phone obsolete!
http://www.iphonewidgetlist.com/
Those guys are sooooo screwed!
Learn how to make them fast, here:
http://webkit.org/blog/?p=87
Check the left side for the tools...
-
- 11
- Networked version of Swing (X windows style)?Hello,
I was wondering if something like that exists or if someone has ever
thought about it:
Instead of Swing updating the local screen and obtaining events from
the local mouse & keyboard, it may be useful in some cases to have a
networked version of Swing, just like XWindows.
Imagine a workstation connecting to a remote JVM that starts a typical
swing application. But this JVM/Classpath/etc is configured so that all
Swing calls are serialized to the remote workstation, where all the
screen updates are made. And viceversa for the mouse and keyboard.
Probably Swing is not well designed for this kind of "pluggability"...
in any case it would be an interesting thing to have.
The key requirement here is that preexisting AWT/Swing applications can
be remotely executed without modification.
Is there any project or product that does this?
If not, any ideas on how to implement it?
Thanks,
Luis.
- 11
- cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com )cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
cheap jeans,jersey ( paypal accept ) ( www.world-wholesaler.com
)
- 13
- Can you write to a file from a vector??How do I write to a file (using a FileWriter) from a filled vector??
I.E. Why can't I do this??
for (i = 0; i < myVector.size(); i++){
myWriter.write(myVector.elementAt(i));
myWriter.flush();
myWriter.close();
}
Thanks,
Steve
- 15
- JSP and response object sizeIs there any way to know the size of a JSP (amount of bytes sent in the
response object)?
We need to know the size of the generated JSP when they are sent to the
client. I can only ask for the buffer size... but no the real amount of
bytes sent in the response object.
Any idea???
Thanks in advance
|
| Author |
Message |
aidy

|
Posted: 2005-12-1 22:03:00 |
Top |
java-programmer, delete all jvm's
I think I have a corrupt JVM on my machine. I would like to delete all
JVM's and just install the sun JVM. Could anyone tell me how to delete
all JVM's.
Aidy
|
| |
|
| |
 |
darrell

|
Posted: 2005-12-1 22:59:00 |
Top |
java-programmer >> delete all jvm's
On Thu, 1 Dec 2005, aidy wrote:
> I think I have a corrupt JVM on my machine. I would like to delete all
> JVM's and just install the sun JVM. Could anyone tell me how to delete
> all JVM's.
It depends on a few things. 1) Which operating system are you using? 2)
How did you install the JVMs in the first place?
I'm going to guess that you are using Windows. I'm going to guess you are
not fully aware of how the JVMs where installed. If my assumptions are
wrong then disregard this message.
IMPORTANT: deleting files from your computer could make your computer
malfunction. I take no responsibility for any damage that might occur to
your computer. This should remove all Java from your computer.
NOTE: if some software installed its own JRE doing this might disable that
application. For example, if I installed WebLogic Application Server I
will find it installed a Sun and JRockit JDK. I never remove them.
- Find all occurances of jvm.dll, java.dll and java.exe.
- Note the directory path, e.g. C:\Program Files\Java\jre1.5.0_03. Ignore
files in the system directories, e.g. C:\WINNT\ and C:\WINNT\system32.
- Go to Add/Remove Programs and remove all occurances of Java.
- Edit your environment variables. Remove all reference to Java in the
PATH and remove the CLASSPATH.
- Go to the directories containing Java binaries, as noted above, and
delete all the files and folders. EXCEPTION: do not delete the system
directories.
- Go to C:\Documents and Settings\<login>\Application Data\Sun, where
<login> is your Windows login, and delete the Java folder
- Go to C:\WINNT and delete the Java folder
- Go to C:\WINNT\system32, find and delete all files starting with Java.
- Go to the Start menu and using Run... run regedit.exe. NOTE: deleting
things in regedit.exe gives no ability to undelete. It does not use the
trashcan. Be VERY careful in there.
- Use Find... to find all occurances of the directory paths noted above.
For example, if you had a JDK installed in C:\jdk_1.4.2_08 then search
for C:\jdk_1.4.2_08.
- Remove the relevent data. Sometimes it will be what you found. Sometimes
it will be the parent folder. You'll have to figure that out on your
own.
- Reboot your computer.
I have never cleaned someone's computer without finding some exception to
the above set of instructions. They server as a guide but generally I have
to delete more or less than what I have described.
Good luck.
--
Send e-mail to: darrell dot grainger at utoronto dot ca
|
| |
|
| |
 |
Roedy Green

|
Posted: 2005-12-2 2:25:00 |
Top |
java-programmer >> delete all jvm's
On 1 Dec 2005 06:03:01 -0800, "aidy" <email***@***.com> wrote,
quoted or indirectly quoted someone who said :
>I think I have a corrupt JVM on my machine. I would like to delete all
>JVM's and just install the sun JVM. Could anyone tell me how to delete
>all JVM's.
Go into the control panel and select add/remove software.
Then when done delete all files in the corresponding JRE and JDK
directories.
If you really want to be thorough, remove some registry entries as
well see http://mindprod.com/jgloss/registry.html
When you install your new JRE test it. See
http://mindprod.com/jgloss/jre.html#TESTING
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- 2
- Spring MVC Data Binding and user-friendly error messagesDear Spring MVC experts!
I am using a controller of type AbstractWizardFormController to
implement a multi-page form entry workflow. This controller operates
on a session-scoped command object which has a property of type
java.util.Date. On page 3 of the wizard, the user enters a date into a
textbox which will be bound to a java.util.Date property of the command
object.
In my controller, I am registering a custom editor as follows:
protected void initBinder(HttpServletRequest request,
ServletRequestDataBinder binder) throws Exception {
DateFormat df = new SimpleDateFormat("MM/dd/yyyy");
CustomDateEditor editor = new CustomDateEditor(df, false);
binder.registerCustomEditor(Date.class, editor);
}
The data binding process is behaving as I would expect. If the user
types an invalid date into the textbox, then the field cannot be bound
and the framework adds a FieldError to the Errors object with code
"typeMismatch". Unfortunately, this FieldError results in a very
un-user-friendly error message being put on the screen. The text of
the message is:
"Failed to convert property value of type [java.lang.String] to
required type [java.util.Date] for property billDate; nested exception
is java.lang.IllegalArgumentException: Could not parse date:
Unparseable date: "xyz" "
It is not at all clear to me how to transform this ugly error message
to a user-friendly message. I can think of a number of possible ways
of doing this, but all seem overly-complex. Is there a standard way to
map data-binding errors to user-friendly messages? Thanks in advance
for your help.
Regards,
Craig
- 3
- Tomcat - Invalid Direct Reference To Login Page ( Workaround help )Hi,
I'm really happy that the "Invalid Direct Reference To Login Page" has
finally been fixed. However I am stuck using Tomcat 4.0.x ( and I
cannot recompile the app-server as it is a managed resource ) , and
the requirement to have a login box included in each page via a panel
is still there.
I've been looking for a workaround. According to the FormAuthenicator
Tomcat code, if the requestURI in the request is NULL, then the
"Invalid Direct Reference To Login Page" error is thrown.
I've written a proxy servlet called LoginProxy. Its job was to alter
the requestURI in the request object before posting to the
j_security_check target.
My login form would post to something like:
LoginProxy?j_username=my&j_password=test&j_forward_uri=/index.jsp
Great, apart from one small problem - HttpServletRequest is READ ONLY.
Damn. I had a look at the actual class heirarchy, and found that
HttpServletRequestFacade was the class that implemented
HttpServletRequest for Tomcat ( I am prepared write Tomcat specific
code, as long as it doesn't involve changing Tomcat itself. ).
HttpServletRequestFacade extends HttpServletRequestImpl, which
implements HttpRequest. HttpRequest does have write access, however
the code:
( ( HttpRequest ) a_Request ).setRequestURI( sForward )
gives a ClassCastException.
My other thought, was - if I just do a sendRedirect ( I was using
forward before ), won't the requestURI be the url of the LoginConfig
servlet.... I could cope with tomcat forwarding me back to the
servlet, I'd just have to add some extra logic. Alas, the request
still retains the null indicating to requestURI.
Can someone tell me how I can modify the request object, or even
create a new one?
Thanks
Ben
- 4
- Jan 8, 2006 session bean questionI have a design issue. I am working on making a J2EE application as
training/practice. I will have a GUI client as a that allows users to
login, register, deposit etc for a bank. At the back end I have a
database with currently 3 tables and above that 3 Entity EJBs to
represent the tables (trying to keep this simple). The Entity EJBs are
customer, checking, savings.
Now in between the GUI client and the Entity EJBs I plan on having
session EJB(s).
My Q is should I have (a) session beans for each type of business
transaction such as "register", "deposit", "withdraw" or should I have
(b) one session bean with methods such as "register", "deposit",
"withdraw"? Does it make a difference?
Thanks for all advice.
- 5
- How come DefaultTreeCellRenderer's behaviour changes when called from different directories ?!?Hi,
I use the following lines in a TreePanel class I've written:
> DefaultTreeCellRenderer rend = new DefaultTreeCellRenderer();
> rend.setLeafIcon(null); rend.setClosedIcon(null); rend.setOpenIcon(null);
> tree.setCellRenderer(rend);
to see to it that when displayed, my tree will be as plain as can
be (no icon at all, no default small picture on the line where you
click to expand the node etc.).
When I use this class with a certain app., it works, I get what I
want, the tree appears in a thin black dotted line, with a little
squares containing a '+' sign when the nodes are closed, and a '-'
when they're expanded; but in another app. (I use THE VERY SAME
CLASS, the same .class file) instead of the small square with '+'/'-'
I have the Sun default small picture of a node you see ?, a tiny
circle with a dot in its middle and a little hyphen, and the line
is blue pale.
Anyone can explain me this behaviour ??
Thanks...
Regards,
Spendius
- 6
- vector.containsIf I write a class and have a vector containing various instantiations of it,
and I want to see if the vector contains another,i.e.
theVector.contains(theClass)
What do I need to overload/write/tweak to make sure "contains" finds the
vector element if it is equal to the "theClass"?
Is there some method I add to myClass to make the contains work?
Thanks
Jeff Kish
- 7
- JACOB: ComFailExceptionHi!
I am using JACOB to automate Ms-Word. but when i am adding/opening a
document it shows an exception.
MS-Word get opened and visualized but no document has been opened
there.
Plz help me to sort out this problem.
<b>Code:</b>
ActiveXComponent dc = new ActiveXComponent ("Word.Application");
try
{
dc.setProperty("Visible", new Variant(true));
//I've tried this way also, but in vain
//Dispatch documents = Dispatch.get(dc,
"Documents").toDispatch();
//This line generates exception.
Dispatch documents =
dc.getProperty("Documents").toDispatch();
Dispatch document = Dispatch.call(documents,
"Add" ).toDispatch();
}
catch (Exception e) {
e.printStackTrace();
}
<b>Exception:</b>
com.jacob.com.ComFailException: Invoke Failed: Documents
at com.jacob.com.Dispatch.invokev(Native Method)
at
com.jacob.activeX.ActiveXComponent.getProperty(ActiveXComponent.java)
at Word.getDocuments(Word.java:17)
at WordDoc.main(WordDoc.java:20)
- 8
- Meaning of Java Open Source??I have heard that Sun may open source Java. I don't quite understand
what does it mean
because when we install Java SDK, we get the source code of library
too. I tried
to search more info. on Sun's site, but unsuccessful.
Please advise, and share some related pointers. thanks!!
- 9
- Proper use of CharsetDecoder?I have some text originating from XML which does not
contain tags anymore but character references like "@" .
I thought about writing my own java.nio.charset.CharsetDecoder only
to find that this more or less forces me to also supply a my
own java.nio.charset.Charset class ... and probably a CharsetProvider ...
Since all I want is the conversion of "&64;" and the like
to a Java char I don't see the point of defining a Charset. The
CharsetDecoder alone would suit me well passed right into
a new InputStreamReader(InputStream, CharsetDecoder).
Certainly I misunderstand the importance of the connection between
CharsetDecoder and Charset and should choose a different route.
Should I implement my own Reader having the converions built in? This seems
equally odd.
Any other ideas?
Harald.
- 10
- OpenMapHello to all, I have a GREAT problem: I am using OpenMap in order to
realize one application GIS. I must implement the analysis function
spaces them "buffering" similar to that one of Arcview GIS. Who
knows to say me as I make to trace a polygon around to the cities as an
example? how I can find the coordinates just in order to make this?
Thanks.
- 11
- Jar: protocol questionI've been using the Jar: protocol a bit in the last few days and I'd like to
know if this is a valid use of that protocol:
jar:file:!/Images/foo.gif
Basically, I'm trying to describe the location of a GIF that a program
should be able to find in one of the various jars that are on the classpath
used by the program.
Since 'this.getClass().getResource()' will search EVERY jar in the classpath
for the desired file, it shouldn't be necessary to specify the jar name.
Therefore, it seems to me that this should be valid notation for indicating
that the jar name isn't necessary in this case: the bang ('!') in the name
following the 'file:' suggests to me that the default jar(s), namely all of
the jars found in the classpath, will be searched for an Images directory
and a file named foo.gif within that directory.
Does that seem reasonable? If not, can anyone suggest a better notation to
use for my situation?
I can't find any discussion of this "special case" in the articles I've seen
about the Jar: protocol.
--
Rhino
---
rhino1 AT sympatico DOT ca
"There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies." - C.A.R.
Hoare
- 12
- jstl does not work with foreachI am testing jstl, here is my jsp:
<%@ page language="java" contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<body>
<table border=1>
<tr>
<th>Value</th>
<th>Square</th>
</tr>
<c:forEach var="x" begin="0" end="4" step="2">
<tr>
<td><c:out value="${x}"/></td>
<td><c:out value="${x * x}"/></td>
</tr>
</c:forEach>
</table>
</body>
</html>
But the output in web broswer is :
Value Square
${x} ${x * x}
${x} ${x * x}
${x} ${x * x}
Why?
Thanks,
qq
- 13
- Thread.sleep(10000)Is that true Thread.sleep(10000) will make current thread to sleep for
10 seconds?
I cannot use Thread.currentThread().sleep(10000) since sleep is a
static method of Thread. Right? Thread.currentThread() will return a
reference to the currently executing thread object.
- 14
- Sound/Midi questionHi,
I need to extract the outgoing pcm audio data while playing midi.
With the getData() method of a SoundbankResource object,
I can only catch sampled audio data stored in a soundbank.
Is there any way I could catch (well, in real time more or less)
the actual sampled data produced by the synth (channels mixed
or unmixed) ?
Any indications or links welcome. Tx !
Ben
- 15
- Help with web services client codeI think I have successfully deployed a web service with Axis, but I can't
figure out how to test it.
Here's the WSDL document:
http://www.public.asu.edu/~wsmoak/xml/webauth.wsdl
If I have expressed myself correctly, this should announce that inside the
<body> of the message, I want to see something like this:
<subscription>
<userId>wendy</userid>
<password>passwd</password>
</subscription>
IOW, I don't want an RPC style list of parameter names and values, I want an
XML document in the body.
The client code I'm playing with is here:
http://www.public.asu.edu/~wsmoak/xml/SubscriptionClient.java
Either the client code or Axis is still uncooperative... if I manually
construct the XML above in the body, Axis insists there is No such operation
'subscription'. So maybe I haven't deployed it correctly yet. :(
Can't say I'm having much fun yet! This reminds me of getting started with
Struts... sparse documentation, very few examples that matched what I was
trying to do. Give it a few months and I'll know what I'm doing, right now,
I'm LOST!
--
Wendy in Chandler, AZ
|
|
|