Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Page 1 of 2 12 LastLast
Results 1 to 25 of 26

Thread: learn java

  1. #1
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default learn java

    hello
    can anyone help me in telling how to make video chat possible in java web application??


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: learn java

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

  3. #3
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    Thanku
    I have gone through all the details.
    Can you please reply to my query.

    --- Update ---

    you there?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    One good source for learning java is the tutorial. This link indexes many topics:
    The Really Big Index
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    But I want to now about video chat in java

    --- Update ---

    can u please help me out of this?

    --- Update ---

    can u please help me out of this?

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    That is too complicated a project for someone that wants to learn java.
    Start with the basics and build your knowledge before trying something so complicated.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    Actually I m good with my basics
    I just want to learn how to do chatting using java..
    can u please help to guide is this possible with socket programming?

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    I think sockets can be used to send and receive data between internet sites.
    If you don't understand my answer, don't ignore it, ask a question.

  9. #9
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    So Is there any other option to make live chat?
    and how can we do live video chating?

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    Sockets are a basic class. Other classes build on them. I imagine that someone has written some higher level classes and methods that will help you. Those classes are not part of Java SE. You'll have to do a search on the internet to see what is available.
    If you don't understand my answer, don't ignore it, ask a question.

  11. #11
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    Are you saying that these classes are a part of the java EE

  12. #12
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    The Socket class is part of the Java SE. Not the others.
    If you don't understand my answer, don't ignore it, ask a question.

  13. #13
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    But we can do socket programming in advanced java like in jsp and servlet for the web development
    so i m asking that if we want to give a live audio video and text chat to the customers..how will we do that..Is this is possible by using Socket programing or can u give me a advice what should i do...please help its very urgent..

  14. #14
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    Sorry, video chat is too complicated. I don't know if I have seen code to do that.
    There are lots of text chat examples here on the forum and on the internet. Do a Search for them.
    If you don't understand my answer, don't ignore it, ask a question.

  15. #15
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    Yes I got to know that when we connect java code with any hardware ( Web cam) then it will create many complications

    --- Update ---

    Do you now how to do send message from one user to another in java?

  16. #16
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    One way is to use Sockets.
    If you don't understand my answer, don't ignore it, ask a question.

  17. #17
    Junior Member
    Join Date
    Mar 2014
    Posts
    21
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    After a quick google, I found that it is very possible for video chat and that many people have done this. Eether Java is really the best language... probably not, but i cant say. Try looking there for more info, but here is something particularly helpful ^.^

    videochat - how to build a video chat program in java without jmf? - Stack Overflow

  18. #18
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    Can you send me the code of text chat using sockets?

  19. #19
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    Do a Search on this forum (or on the internet) for sample code.
    If you don't understand my answer, don't ignore it, ask a question.

  20. #20
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    I have searched but the code is not working..

  21. #21
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    the code is not working
    Can you explain what "not working" means?
    If there are error messages, copy the full text and paste it here.
    If you don't understand my answer, don't ignore it, ask a question.

  22. #22
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    my server is not allowing connections

  23. #23
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: learn java

    Sorry, I don't know anything about your server.
    If you don't understand my answer, don't ignore it, ask a question.

  24. #24
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    Thanks No problem
    I will try...

  25. #25
    Junior Member
    Join Date
    Mar 2014
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: learn java

    Can you plz help me to run this code

    Conversation started today
    Neha Dhingra
    17:47
    Neha Dhingra

    TcpClient.java

    package tcpserver;

    import java.io.*; import java.net.*;

    public class TCPClient {

    public static void main(String argv[]) throws Exception { String sentence; String modifiedSentence; BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in)); Socket clientSocket = new Socket("localhost", 6789); DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream()); BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); sentence = inFromUser.readLine(); outToServer.writeBytes(sentence + '\n'); modifiedSentence = inFromServer.readLine(); System.out.println("FROM SERVER: " + modifiedSentence); clientSocket.close(); } }

    TcpServer.java

    import java.io.*; import java.net.*; public class TCPServer {

    /** * @param args the command line arguments */ public static void main(String argv[]) throws Exception { String clientSentence; String capitalizedSentence; ServerSocket welcomeSocket = new ServerSocket(6789);

    while(true) { Socket connectionSocket = welcomeSocket.accept(); BufferedReader inFromClient = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream( ))); DataOutputStream outToClient = new DataOutputStream(connectionSocket.getOutputStream( )); clientSentence = inFromClient.readLine(); System.out.println("Received: " + clientSentence); //capitalizedSentence = clientSentence.toUpperCase() + ":from server\n"; capitalizedSentence= "im grt\n"; // String sentence; BufferedReader inFromUser = new BufferedReader(new InputStreamReader(System.in)); // capitalizedSentence=inFromUser.readLine(); outToClient.writeBytes(capitalizedSentence); } } }

Page 1 of 2 12 LastLast

Similar Threads

  1. Help me to learn java
    By leecher in forum Member Introductions
    Replies: 2
    Last Post: March 17th, 2022, 03:42 AM
  2. should I learn JAVA or C++ ?
    By MyNora in forum Member Introductions
    Replies: 6
    Last Post: December 20th, 2012, 10:55 PM
  3. Replies: 1
    Last Post: November 1st, 2012, 07:54 AM
  4. Hello, Why i want to learn Java
    By seal308 in forum Member Introductions
    Replies: 1
    Last Post: May 15th, 2012, 06:32 PM
  5. Trying to learn Java programming
    By rhaupert in forum What's Wrong With My Code?
    Replies: 7
    Last Post: February 12th, 2012, 10:13 AM