Click here to Skip to main content
15,908,112 members
Home / Discussions / Java
   

Java

 
GeneralRe: Java GUI programming Pin
Richard MacCutchan16-Jun-14 23:05
mveRichard MacCutchan16-Jun-14 23:05 
QuestionOpening pdf files using Java Pin
Member 1088342114-Jun-14 4:11
Member 1088342114-Jun-14 4:11 
AnswerRe: Opening pdf files using Java Pin
Peter Leow14-Jun-14 4:53
professionalPeter Leow14-Jun-14 4:53 
GeneralRe: Opening pdf files using Java Pin
Member 1089404118-Jun-14 22:50
Member 1089404118-Jun-14 22:50 
QuestionOne To many mapping in spring mvc and hibernate . Pin
praveenxyz5-Jun-14 3:20
professionalpraveenxyz5-Jun-14 3:20 
AnswerRe: One To many mapping in spring mvc and hibernate . Pin
Richard MacCutchan5-Jun-14 6:08
mveRichard MacCutchan5-Jun-14 6:08 
AnswerRe: One To many mapping in spring mvc and hibernate . Pin
jschell8-Jun-14 9:22
jschell8-Jun-14 9:22 
QuestionHandling Biometric Fingerprint Attendance Machine Pin
Maheera Jazi3-Jun-14 21:27
Maheera Jazi3-Jun-14 21:27 
anyone can help me here please Frown | :( :

Handling Biometric Fingerprint Attendance Device by using Socket (JAVA) Is that possible?! I try with Socket, BUT it does not executed with me!

Me Code is:
Java
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.Socket;
import java.net.UnknownHostException;

public class Requester {
Socket requestSocket;
ObjectOutputStream out;
ObjectInputStream in;
String message;

Requester() {
}

void run() throws IOException {
    try {
        // 1. creating a socket to connect to the server
        requestSocket = new Socket("192.168.0.19", 4370);
        System.out.println("Connected to given host in port 4370");
        // 2. get Input and Output streams
        in = new ObjectInputStream(requestSocket.getInputStream());
        // 3: Communicating with the server
        String line;
        while (true) {
            line = in.readLine();
            if (line != null) {
                System.out.println(line);
            }
        }
    } catch (UnknownHostException unknownHost) {
        System.err.println("You are trying to connect to an unknown host!");

    } catch (IOException ioException) {
        ioException.printStackTrace();

    } catch (Exception Exception) {
        Exception.printStackTrace();

    } finally {
        in.close();
        requestSocket.close();
    }
}

void sendMessage(String msg) {
    try {
        out.writeObject(msg);
        out.flush();
        System.out.println("client: " + msg);

    } catch (IOException ioException) {
        ioException.printStackTrace();
    }
}

public static void main(String args[]) throws IOException {
    Requester client = new Requester();
    client.run();
}
}



f anyone could help me to communicate with the finger print device I will be grateful.

modified 4-Jun-14 3:55am.

AnswerRe: Handling Biometric Fingerprint Attendance Machine Pin
Peter_in_27803-Jun-14 21:49
professionalPeter_in_27803-Jun-14 21:49 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Maheera Jazi3-Jun-14 21:56
Maheera Jazi3-Jun-14 21:56 
QuestionRe: Handling Biometric Fingerprint Attendance Machine Pin
Richard MacCutchan3-Jun-14 22:01
mveRichard MacCutchan3-Jun-14 22:01 
AnswerRe: Handling Biometric Fingerprint Attendance Machine Pin
Maheera Jazi3-Jun-14 22:05
Maheera Jazi3-Jun-14 22:05 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Richard MacCutchan3-Jun-14 22:32
mveRichard MacCutchan3-Jun-14 22:32 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Maheera Jazi3-Jun-14 22:35
Maheera Jazi3-Jun-14 22:35 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Richard MacCutchan3-Jun-14 22:40
mveRichard MacCutchan3-Jun-14 22:40 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Maheera Jazi3-Jun-14 22:44
Maheera Jazi3-Jun-14 22:44 
GeneralRe: Handling Biometric Fingerprint Attendance Machine Pin
Richard MacCutchan3-Jun-14 23:24
mveRichard MacCutchan3-Jun-14 23:24 
QuestionAccessing public methods of child thread from parent class Pin
krishna_m29-May-14 1:27
professionalkrishna_m29-May-14 1:27 
AnswerRe: Accessing public methods of child thread from parent class Pin
TorstenH.3-Jun-14 1:15
TorstenH.3-Jun-14 1:15 
AnswerRe: Accessing public methods of child thread from parent class Pin
jschell3-Jun-14 10:02
jschell3-Jun-14 10:02 
Questionjava code for converting pdf to excel file Pin
Bhupathirao26-May-14 19:32
Bhupathirao26-May-14 19:32 
AnswerRe: java code for converting pdf to excel file Pin
Richard MacCutchan26-May-14 21:36
mveRichard MacCutchan26-May-14 21:36 
AnswerRe: java code for converting pdf to excel file Pin
jschell28-May-14 8:49
jschell28-May-14 8:49 
AnswerMessage Closed Pin
10-Jun-14 19:50
professionalvJay Yadav10-Jun-14 19:50 
QuestionRe: java code for converting pdf to excel file Pin
Richard MacCutchan10-Jun-14 21:43
mveRichard MacCutchan10-Jun-14 21:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.