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.

Results 1 to 3 of 3

Thread: Localhost

  1. #1
    Junior Member
    Join Date
    Dec 2017
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Localhost

    Hello. This is my first time on this forum. I am asking for some help. Hopefully its a simple matter.

    I am currently trying to get some Lewis and Loftus code to work for me. I believe that it does work, if only I new where to store the .wav file.

    The line of code
    [code = java] url1 = new URL ("file", "localhost", "beat.wav"); [/code]

    My question is where do I need to put the beat.wav file.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,400
    Thanks
    53
    Thanked 2,399 Times in 2,352 Posts

    Default Re: Localhost

    What program or class and method is handling the URL? Where does it look to find files?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Dec 2017
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Localhost

    Hi Norm
    That was the only mention of the URL.
    I have however since re-read the authors References and it seems that the program is only to demonstrate the use of combo boxes, which includes a representation of a juke box control panel. So I think that the program is not meant to be fully functional.
    Although it seems to be a large program just to have a two button and one combo box program

Similar Threads

  1. Java DB - Embedded or localhost?
    By Chaotic in forum Java Theory & Questions
    Replies: 1
    Last Post: September 15th, 2014, 11:49 AM
  2. Client / Server connection not working except localhost
    By Bingo90 in forum Java Networking
    Replies: 3
    Last Post: March 6th, 2014, 09:05 AM
  3. Mail Sender Application from Localhost
    By srinivasgoudn in forum Web Frameworks
    Replies: 11
    Last Post: January 12th, 2012, 12:44 AM
  4. Mysql url pointer to server instead of localhost
    By kurt-hardy in forum JDBC & Databases
    Replies: 3
    Last Post: April 12th, 2011, 04:32 AM
  5. JNLP webstart application in localhost
    By Jhovarie in forum Threads
    Replies: 2
    Last Post: February 14th, 2011, 05:53 PM