I am getting below error message while compiling the program.
java.lang.Error: Unresolved compilation problems:
Syntax error on token "<", ( expected
Syntax error, insert ")" to comple...
Hi,
I want to execute 2 commands in one go, in unix this works like this:
ll ; cd ..
But when I call unix from out of java :
Process p = Runtime.getRuntime().exec("ll ; cd ..");
I...
I have seen a lot of articles on running java applications as windows service. However, I have a different requirement.
I would like to start a Windows service from a java class. Would appr...
How can I get my DefaultTableModel in java into a Vector?
I'm getting the error when casting it...:
javax.swing.table.DefaultTableModel cannot be cast to java.util.Vector
im have been trying to find out how to specific the page range when sending a file to the printer but cant.
any idea's?
i want to send a pdf file btw...
Hi guys,
I have just been asked to help modifying the applet for my company. The applet was developed around 3-4 years back (I am not so sure). I compiled this using jdk 1.4. However, I rec...
Hello Experts,
I've a great problem with the game -code below
It doesn't let the player to make any move or any other functions of the game [graphically only] cuz on terminal it works fin...
I need to create a custom class/data structure, probably a hashmap..
Normally one puts to a hashmap like so:
myMap.put(myKey, myThing);
This doesn't quite suite my needs, What I need is...
hello there,
i have 3 tab pane in which i want to display different data.in the 1st and 2nd tab pane the data is displaying.but in the 3rd pane i am adding a table but it is not displaying....
I keep getting these error messages when I try to compile this program (simple Bayesian spam filter): spamsort.java:103: variable hamzProb might not have been initialized
hamzProb[y] = ...
I have an assignment for creating a mortgage calculater with a GUI, that allows a user to input the loan amount in, and then select the length of the loan. The program then is to calculate the...
Hello Experts,
Please advice me on this one. I have a fairly big object that is populated on the client side, with input from a <form>. We want to transmit it over the network to be receive...
Hello Experts,
I strongly need your assistance how can this code be placed as a applyFunction() in the code in the code sippet:
interface Function {
intfun(intn);
}
class Sqrimplements ...
Dear Experts,
I'm new to Hibernate. The legacy db I'm working with is missing foreign keys. (I guess that's not uncommon!) I'd like to tell Hibernate to treat various tables as though th...
I need to develop secure chat application in java .I need to use DES for making it secure.If there is any source code also that would be appreciated too
Hello Experts,
I need your assistance how this code should be completed in order to get right connection to that online NumberToWords method which is described at :
http://www.dataacces...
Hi,
I cant find a API call which will return me the size of the File as I am constructing one.
I want to roll to a new file once the size of the file is 1MB.
Can any help me to figure...
Hello Experts,
I need your assistance about this error:
The client doesn't let the user to send more than one messages and sends continually to the server the first message
Thanks in ad...
Hello Experts,
I need your assistance about this program
The client connects to the server and sends a LOOK message to the server and the LOOKREPLY which gets back to be printed graphical...
Hello Experts,
I need your assistance about the following problem of the client:
When im trying to send a message to server it always send an empty "" string
[from line 251]
Thanks in ...
I need a class that would express numbers such as
1, 3, 16, 32, etc
as
00000001
00000011
00010000
00100000
etc
Does Java have any class like, I tried java.util.BitSet but no lu...
Got a few issues converting dates etc.
I am trying to populate 3 date fields (a String, 2 Calendars), the inputs come from java.sql.Timestamp and need to be formatted.
// I need a Strin...
Hi,
I have the following two classes defined in separate files:
public abstract class Barn<TAnimal extends Animal>
{
public abstract TAnimal createNewAnimal();
}
public class...
Hi, I am using java1.3 and when trying to modify dateformat from 2004-12-07T17:00:00-05:00 to Fri, 17 Dec 2004 17:00:00 -0500, it is changing to Fri, 17 Dec 2004 17:00:00 EST" instead of "Fri,...
In my web application, I use struts and hibernate .., some times, the null pointer exceptions are occuring and it displays the error something like this, see the attached image ...
i want t...