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.


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

Results 1 to 2 of 2

Thread: Localhost

  1. #1
    Junior Member
    Join Date
    Dec 2017
    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.
    I am using Windows 10 operating system.

  2. #2
    Join Date
    Dec 2013
    Thanked 4 Times in 2 Posts

    Default Re: Localhost

    That is a good question. If you plan on using a JavaServlet jsp, as in Apache Tomcat application, you are in luck. This is an open source code for all developers of Java programs. It handles and manages request of URL and produces an object of the JavaServlet class which is an extension of a web container or website account. The apache tomcat was developed in 1999 and will give you answers you may have when you decide to develope your own Java EE edition of a application, as the Apache Tomcat. Look this up, it gives you much information on your concerns, including storage and memory use.

Similar Threads

  1. Localhost
    By runciman in forum What's Wrong With My Code?
    Replies: 2
    Last Post: December 18th, 2017, 08:19 AM
  2. Java DB - Embedded or localhost?
    By Chaotic in forum Java Theory & Questions
    Replies: 1
    Last Post: September 15th, 2014, 11:49 AM
  3. Mail Sender Application from Localhost
    By srinivasgoudn in forum Web Frameworks
    Replies: 11
    Last Post: January 12th, 2012, 01: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, 06:53 PM