Hello, i'm writing a client to client application with tcp. my app works fine if i just send some strings, but when i try to send/receive a file to the/from the other person i'm testing with, i get this exception, could it be that he can't receive files because his connection is behind a ...
This game is nice and small, but still quite fun. The object is to score as many points as possible by blowing enemy spacecraft to smithereens. You start in your species' home system, and you can fly to the other three species' systems by jumping through the ...
54 byte By
jjsmitha at 2007-11-26 12:22:08
what is the difference between float and Float?
680 byte By
Zyphona at 2007-11-26 12:22:10
[Sorry, this is a repeat from a different forum, this one seemed more appropriate so the other post can be deleted.]I'm trying to use JConsole to monitor the memory usage of a program. According to the Sun documentation on it, all you have to do is run it setting the ...
I can't seem to print or update the count value in this codeimport java.util.Random;import java.io.*;public class InputRandom{public static void main (String[]args)throws IOException{//int y = 6%3;//System.out.println(y);BufferedReader console = new BufferedReader(new ...
Hello....I have this code below which I want to run in an applet....however when i run the applet..the line won't draw after i enter the variables...any idea why?thx hwrdimport java.*;import javax.swing.*;import java.awt.*;public class LineDraw extends JApplet {String xonestring, ...
1365 byte By
Bjornna at 2007-11-26 12:22:13
Hi all,I'm writting a utilitary class to handle files using the java.nio package. I have a question about how to manipulate large files.The method bellow reads a binary content of a file. public byte[] readContent(File file) throws IOException, FileNotFoundException {FileChannel channel = new ...
504 byte By
pros599a at 2007-11-26 12:22:15
I am working on a program right now, and i need to know if there is a way to delete a directory that has files in it?or do i have to write another program that gets the list and deletes each file individually?if this is the solution, how do you do this? Right now, i would prefer some of the ...
hai,I implemented LoanProcessing (it is the Example of netbeans ide) .All are sucessful but In composite application it gives the error like An activated endpoint already has the same SOAP Address location : http://localhost:18181/LoanRequestor1Service/LoanRequestor1PortFailed to deploy: ...
Hi all,My company is using Netscape messaging server 4.15 sp6. I am planing to install Sun Java System Messaging Server 6 (A component of Java Enterprise System 2005Q4). How can I migrate NMS 4.15 to JMS 6?Thanks.
As part of my assignment I have had to write 4 different searching techniques and I am having trouble with my last one as it doesnt seem to be finding the target and so I think there is something wrong with my algorithm could someone please have a look and see if they can see where I am going ...
Hi. Does anyone know how to do just two more things?Write the extracted frames as PNG files and only grab 3 or 4 selected frames instead of the whole clip.Thanks in advance.I have gone through the forum and haven't found any ideas on PNG formats. Found some threads to grab frames using ...
196 byte By
priyapa at 2007-11-26 12:22:22
hianybody give me site name which give detail of deployment of ejb prog in sun java serveri know how to write ejb program and don't know how to run that...pls naybody help me
3432 byte By
seemapa at 2007-11-26 12:22:23
I am trying to ask user to input string using netbeansbeta versionbut it doesn't prompt me to enter the string unless i press enter 2 -3 times /** * * @author xyz */public class Main { public static void main(String[] args) {//Scanner input = new Scanner( System.in );try{String ...
130 byte By
Sarjaya at 2007-11-26 12:22:24
HI... does anyone know how can i know when the visible rectangle of a Jpanel is increased or decreased?Sarjay
Java Programming Third Edition Complete Concepts and Techniques/*Chapter 3 Debugging AssignmentProgrammer:Date:Program Name: Bert,javaPurpose:*/import java.io.*;public class Bert{public static void main(String[] args) throws IOException{BufferedReader dataIn = new BufferedReader (new ...
414 byte By
vonehlea at 2007-11-26 12:22:26
I added a ScrollBar to a TextArea. When I type beyond the horizontal limits, the box is expanding. How can I stop this? I want it to go to the next line and I only want a vertical ScrollBar.I declared it this way...JScrollPane scroll = new JScrollPane(messageText, ...
Hi,Im trying to run a java application from inside another one. After reading up about it on these forums, as well as some other places, I tried out example code from these forums. All I do at the moment is run a java class called Hello. This class just has a main method that Prints out "Hello ...
2217 byte By
fastmikea at 2007-11-26 12:22:28
hi. i am doing some exercise problems on this charlotte website. http://chortle.ccsu.edu/java5/cs151java.html#13Very good website for a newbie who wants to learn java. and hopefully i am confident That after working all the exercise problems and reading the chapters i will be good in java as a ...
140 byte By
XinHuaa at 2007-11-26 12:22:29
Now i have more learning about Jsp and Servlet...All senior in Java.May i know how to build a system with Jsp n do the voice calling?
Hi,Anybody know which version of java is canada DTS 2007 ready? Thanks,Angela
513 byte By
machmana at 2007-11-26 12:22:32
double invoiceTotal = subtotal + discountPercent;discountPercentTextField.setText("" + discountPercent);discountTextField.setText("" + discountAmount);invoiceTotal.setTextField("" + invoiceTotal);then i get the error messageC:\java1.5\ch15\InvoiceApp.java:90: double cannot be ...
how to use unsigned_short , unsigned_char, unsigned_int...in java...thank you
112 byte By
sudhinaa at 2007-11-26 12:22:34
hi,can anyone tell how to load the excel sheet data to oracle using jakarta POI?thanks.....
599 byte By
ms01a at 2007-11-26 12:22:35
HiI confuse on how to transform set difference query into java code to work in java program.how do you write a sql query in java that perform set difference.R - SR Except S (in oracle)I want to get all the elements in Set R that are not available in Set SI want to write following set difference ...
Hi,I am a beginner in Java. Can somebody tell me how to retrieve last element from java.util.collection without Iterating?
Hi,I've actually got two problems that might be connected. I'm new to the java.nio.* package. I wanted to try SocketChannel's to see if I could improve performance.If this isn't the appropriate place for java.nio questions, just let me know.My first problem is that I create a ByteBuffer by ...
guys i need help with activating a GPRS or opening a GPRS connection... im creating a GMAIL client for mobile phones... and i still dont know how to activate GPRS to connect to pop.gmail.com... do u have references or ebooks that could help? thanks in advance!
661 byte By
bencea at 2007-11-26 12:36:14
In my application I build up TCP connections with the clients. We are in the developing phase so I need to reload the server frequently. The Server runs under tomcat, and when I try to stop the server, the Socket connection managing threads freeze and I have to kill whole tomcat to stop them. ...
1029 byte By
rapakaa at 2007-11-26 12:42:31
HI friends...I dont know if this is the right place but.. i need help...I am trying to make a server with a logging facility...Let me explain the schema of the process...1. the server starts as a thread and listens on port 9999 for any client.2. when a client is accepted a PROCESS thread is ...
851 byte By
sebvena at 2007-11-26 12:42:44
Hello,under Linux and Windows, I got a strange and different behaviors when closing socket.Under Linux if i send in turn 1000 byte arrays over the socket and close the socket after that. the receiver will receive the 1000 packets and then -1. In addition the sender has finnished to send every ...
import com.sun.midp.io.Properties;import java.util.*;import javax.mail.internet.*;import javax.mail.*; public class TestMail {static Stringd_host = "smtp.gmail.com",d_port = "465",d_password = null,d_email = null;static int authorize = 1;static Transport bus;private class SMTPAuthenticator ...
1037 byte By
murtana at 2007-11-26 12:46:45
Hi!I'm writing a server - client (computer - mobile phone) application which need to be able to comunicate directly with each other. I need to send some kind of heartbeat to the client every few minutes to make sure it's still online. Also, it is crucial that traffic (in bytes) is ...
Im working on an application to retrieve information from a website.The website is www.kingsofchaos.com, a game.The following code doesn't work, but when I change the url to google, yahoo, or any other website, it works perfectly...import java.net.*;import java.io.*;public class URLReader ...
I created a server class with ServerSocket, and run it on Linux (in daemon), however, when the Linux is rebooted, the client side could not feel it. It is still pending at "read" method instead of -1 returned from the method. It works when it is not run in daemon. Why?
Is there any way to read from unix local socket . I'm developing application that has to read from /dev/log socket, but I can not find way to do this.
HiI want to communicate between linux and windows or other different windows using Socket programming. Is there any possibilities.
Here is my server side:import java.net.*;import java.io.*;public class server {private static ServerSocket serversocket = null;public static void main(String[] args) {//ServerSocket serversocket = null;try {serversocket = new ServerSocket(11116);} catch (IOException e) ...
I'm not sure if I'm posting in the right forum, but oh well..Does anybody know how to fill in a form on a webpage?Also, I need to make the program fill in this form whenever I visit the link.Example: Say I wanted to make a program that detected the website I was on, and if it was google to ...
621 byte By
nwa001a at 2007-11-26 13:34:07
Hi, all: I got a weired problem on my web site, after I restart the Tomcat server, the images are not accessible even though a user session existIf I put those jsp pages inside member only security-constrains, those pages are not accessble after server restart, right now the images inside those ...
1508 byte By
glovenya at 2007-11-26 13:41:25
Hi, I抦 making a client / server socket program and Im also using a lot of DHTML and JavaScript.Here is my problem:The user interacts with the JavaScript enabled widgets. These widgets talk to applets. The applets talk to the server via sockets. When the user is finished with each widget, they ...
3851 byte By
Ganbreea at 2007-11-26 13:44:47
Im trying to get a applet and server "read" their messages.Part of Server Source:byte[] buf = new byte[256];// receive requestDatagramPacket packet = new DatagramPacket(buf, buf.length);socket.receive(packet);String received = new String(packet.getData(), 0, packet.getLength());// figure out ...
I am using socket connecting server and client. My problem is how to keep the server always run to accept the connection from client, which can be closed and reconnect to the server later on.Thank youMessage was edited by: Rachel2006
826 byte By
vani_ha at 2007-11-26 14:03:32
I have an applet that's making HTTP requests to server by means of a HttpURLConnection object. I need to authenticate to the server, so I've subclassed Authenticator to do this, and made that class active by calling Authenticator.setDefault(). My class overrides getPasswordAuthentication, it ...
hey i m a student and i want to know how will i get information about capturing data from modem's buffer using java...plz send me reply at deep.ashar@hotmail.com
570 byte By
AnDYa at 2007-11-26 14:13:45
Im working on a Project for my MScIT on Distributed Computing...which involves socket programming(UDP)....im working on some algorithms like Token Ring, Message Passing interface, Byzantine, Clock Syncronisation...i hav almost finished working on these algorithms...but now i wanna give a good ...
604 byte By
Ksushaa at 2007-11-26 14:14:27
Hello everyone!!! I am trying to connect to aim thru TOC2. I am using Jeff Heatons program avalable on the web http://www.devx.com/Java/Article/30105the thing is when i sent a sign on command i am not getting a response (the weird thing is that yesterday i was getting some kind of answer, but ...
2903 byte By
schaeflia at 2007-11-26 14:14:33
Here is my server-code: for (int i=0; i<countGamesToDownload; i++){out.write(gamesToDownload.get(i) + ".zip\n");out.flush();filename=System.getProperty("user.dir")+"\\"+ gamesToDownload.get(i)+".zip";System.out.println("Filename: " + filename);bin = new BufferedInputStream(new ...
I think this may be trivial, but lets say for the sake of simplicity that I want to have a client & server in java. And it isn't going to do a task until the server says it can, lets say give a "Hello World" every 5 seconds. I want the client to connect and wait for the go ahead to start ...
Hi,M logging on ftp server. And can list all file on home directory.But my application requires that i need to save files on other directory.To elaborate the problem:My HOME Directory is : E:\EISi can upload files on the above location.but i m not able to upload files on D:\EIS.method ...