Hello, want to know how i can tell what lines a specific word appears on with all the words in a matrix.EX"I went andatepie becausei am a hungryperson and love pie"ok, now i have every single word in a seperate cell in a String matrix. Heres what i want to do.I - 1,4went - 1and - 1,5ate - ...
2415 byte By
sapidutaa at 2007-11-26 12:21:59
Hi Guys,I face 3DES decryption problem in Java where as encryption was done in C by using OpenSSL. Java 3DES method input is in byte[]. As we known, Java didn抰 support for unsigned data type. That抯 why my decryption result is different with the original value.Below is my Java ...
587 byte By
pros599a at 2007-11-26 12:22:00
i am writing a program. I want the program to search for all files that end with one extension, and i want it to rename it to another extension...exampletest.java -> test.dat(not to encode it.)ok... i have the actual rename done, but how do i get it to do all files that end with the ...
361 byte By
olaf77a at 2007-11-26 12:22:01
HiI was finally able to load the system when I disabled the ACPI in BIOS. However when it boots, it doesn't see the network card.Nexenta (livecd) was able to detect the network card and initialize the network without any changes to the BIOS.Is there a way to disable ACPI but without "missing" ...
181 byte By
n_dilaha at 2007-11-26 12:22:02
i just need to etract number from input user enter, how do i go on doing that? i try String st = new st.length().substring(); but always give me exception error
1548 byte By
aaron1uka at 2007-11-26 12:22:04
i have a program that reads data from a text file, i have one string in the file that needs to be read as seperate chars e.g fota as they both stand for something. here is how i did this.if(line.equals("m")){name = reader.readLine();surname = reader.readLine();enjoytime = ...
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 ...
1967 byte By
hughesm1a at 2007-11-26 13:33:15
I have been testing the patch install for J2SE on Solaris 9 and it isn't working. Before installing, I checked the version:forest:hughesm> java -versionjava version "1.4.0_00"Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_00-b05)Java HotSpot(TM) Client VM (build 1.4.0_00-b05, ...
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 ...
145 byte By
elich1a at 2007-11-26 13:42:11
Hi searching for a pure java api for exchange server (mainly for events and contacts)can someone recommend?Thanks.Eli
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 ...