Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Need help with Java

  1. Jun 9, 2007 #1
    What I want to do is make a Voice chat room with administrative functions embedded in a website. i think the best way is to use Java, but I don't know anything about java.
    i can't start from scratch and learn the language, because this is really important and I have less time.
    i was hoping if any of you could help me and guide me in making one.
    Thanks a lot!
     
  2. jcsd
  3. Jun 9, 2007 #2
    You want to make a fairly complicated application in Java and you have no Java experience. That is obviously not a very good idea.

    Do you have experience in other languages and with similar applications?
     
  4. Jun 9, 2007 #3
    Well...
    nope. That's why I need help. But I don't know what to do.
     
  5. Jun 9, 2007 #4

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    What you seem to be asking is: can you guys either write my program for me, or give me several years of programming experience in a few posts on a forum? The answer, of course, is no.

    We can answer specific questions you might have, but it's too big a task for us to teach you everything you'd need to know.

    - Warren
     
  6. Jun 9, 2007 #5

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    You don't have the ability to write this program, then.

    - Warren
     
  7. Jun 9, 2007 #6
    Well you don't necessarily have to write it. Do you have any programming experience whatsoever?

    edit: the question's actually meant for apples.
     
    Last edited: Jun 10, 2007
  8. Jun 10, 2007 #7

    -Job-

    User Avatar
    Science Advisor

    You should look to use a third party's chat app because there are many challenges involved with doing a multiuser application.

    You need both a client component (in java or flash) and a server component (in java, flash, php, asp, c++, c or anything you want).

    Building a server component with Java is a very advanced task because you'll need multithreading, shared memory, socket management, etc. Building the client component with Java is also advanced because you'll need to spend some time learning about the java audio libraries, use sockets and sign the applet.

    Building the server with PHP or ASP is simpler because you don't need to explicitely use sockets and multithreading (the web server takes care of that). But, you'll still need to use shared memory and thread synchronization.
    The easiest approach is to use Flash at the client and at the server use flash again running under the Flash Media Server or the old Flash Communication server. This is easier to code but alot harder to host because most web hosts don't offer Flash Server hosting and those that do are really expensive. You'll either have to setup your own server or buy a dedicated server which is even more expensive than a flash server web host.

    For setting up your own server you need to be familiar with how to setup an iis or apache environment, setup the DNS for your domain, setup the Flash Media server in case you decide to go with Flash, and get a new box. You'll also want a business package from your ISP because you want a static IP, open ports (my ISP blocks port 80 for example) and a fair amount of bandwidth (since you're looking to do a voice chat).

    Notice that if you go with Java, C++, C at the server as well then you have the same hosting issues as if you went with the Flash Media Server because most hosts won't enable you to load up a custom built server listening on some port, unless you have a dedicated server.

    And FYI, even if you go with a pre-built chat app, unless the company you buy it from also hosts it, you'll also have issues hosting its server component, since it's probably not built with ASP or PHP.
     
  9. Jun 14, 2007 #8
    OK, I know it may have seemed idiotic when I asked those questions, because no, I don't have any programming experience. But you can also judge from this how important this is to me.
    Thank you - Job -, I've read your post once, but couldn't understand the whole thing. I'll try reading it again...
    But even with all those issues, and all that stuff, and considering my situation, what should I do?
     
  10. Jun 14, 2007 #9

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Hire someone else who knows how to program.

    - Warren
     
  11. Jun 14, 2007 #10

    -Job-

    User Avatar
    Science Advisor

    Really, unless you want to start a career in web development i would recommend going for a pre-built and hosted solution. I've met many advanced web programmers who would not know how to build a voice chat application from the ground up.
     
  12. Jun 14, 2007 #11

    ranger

    User Avatar
    Gold Member

    Go to the open source community and start the project. An example of such a community would be sourceforge. But this requires for it to be open source and it would of course take a lot of time to develop giving the scope of the task and helping is on a voluntary basis.
    If you don't want to build it from the ground up, mayb they can point you to existing open source projects that you can use.
    But given your lack of experience, you may find it hard to get the project started because these open source projects usually need a very strong initiative .
     
  13. Jun 16, 2007 #12
    Thanks a lot.

    I searched for open source communities. But I don't understand how to get started. Do i visit the forums or something and start a topic like this?
     
  14. Jun 16, 2007 #13
    I just registered for creating a project at sourceforge. The registration was really complicated and confusing.
    This is what I did

    -----------
    # License :: OSI-Approved Open Source :: MIT License
    # Intended Audience :: Other Audience
    # Development Status :: 1 - Planning
    # Topic :: Communications :: Chat
    # Programming Language :: ASP
    # Programming Language :: C
    # Programming Language :: C++
    # Programming Language :: Java
    # Programming Language :: JavaScript
    # Programming Language :: PHP
    # Operating System :: Grouping and Descriptive Categories :: All 32-bit MS Windows (95/98/NT/2000/XP)
    # User Interface :: Graphical :: Carbon (Mac OS X)
    # User Interface :: Graphical :: Handheld/Mobile/PDA
    # User Interface :: Graphical :: Win32 (MS Windows)
    # Translations :: English
    # Database Environment :: File-based DBMS :: Microsoft Access
    -----------
    Is this fine?
     
  15. Jun 17, 2007 #14

    ranger

    User Avatar
    Gold Member

    Once it suites your requirements, you should be good. Pay attention to licensing though. Whats the link to your project?
     
    Last edited: Jun 17, 2007
  16. Jun 17, 2007 #15
    I registered without reading any license. They were too long. I read the MIT license and chose it...
    I don't know what I did. Can I go to jail if something goes wrong because of this?

    My project hasn't been approved yet, so there is no link.
     
  17. Jun 17, 2007 #16
    Wait a minute, didn't I post this in the wrong section. this should have been in the Programming section.
     
  18. Jun 17, 2007 #17

    ranger

    User Avatar
    Gold Member

    You should have read the details of the MIT License first before you did anything. Personally I would have gone with GNU GPL or GNU LGPL. Please read the details of all of these licenses. I can't pick them for you.
     
    Last edited: Jun 17, 2007
  19. Jun 17, 2007 #18
    it hadn't been approved yet, so i change it do GNU General Public Liscence.
    it's been a few days. When are they going to approve it?
     
  20. Jun 17, 2007 #19
    Apples, I hope you did not get the false expectation that somehow, somebody, out of the blue, is going to write you this application.

    Unless this question is deemed personal, may I ask the reason why you need this application urgently?
     
    Last edited: Jun 17, 2007
  21. Jun 18, 2007 #20
    The answer is a bit personal so it may not seem really clear.
    But I need to get this done for some personal reason, and it's urgent because I'm going out of town soon.

    EDIT: are you saying I won't get any help in the open source community as well?
     
    Last edited: Jun 18, 2007
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Need help with Java
  1. Java help needed (Replies: 2)

  2. Java help (Replies: 7)

  3. Java Help (Replies: 7)

  4. Java help (Replies: 15)

Loading...