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 8 of 8

Thread: Run a Java Program with image/audio files on a browser

  1. #1
    Junior Member
    Join Date
    Jan 2024
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Run a Java Program with image/audio files on a browser

    Hello,
    I have a Java program that uses image and audio files. I would like to run this program on a web browser. How should I do it?

    Thank you

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Run a Java Program with image/audio files on a browser

    Also posted here: https://www.coderanch.com/t/778604/j...am-image-audio

    Do you want it to run on a PC without any access to the internet
    or do you want it available to the world via a server on the internet?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Jan 2024
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Run a Java Program with image/audio files on a browser

    Hello,
    Run java programs that are linked on my webpage. So, a server on the internet. I used to be able to do it using applets, but they are no longer supported.
    I do not know any JavaScript.


    Any other recommendations?

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

    Default Re: Run a Java Program with image/audio files on a browser

    Have a link in a web page that downloads your java program to a user's PC where it can be executed.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Jan 2024
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Run a Java Program with image/audio files on a browser

    So now way for the user to run the program directly on their browser unless I use JavaScript?

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

    Default Re: Run a Java Program with image/audio files on a browser

    As Tim said, Applets are dead. You will need to redesign your app if you want it to run in a browser.
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Jan 2024
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Run a Java Program with image/audio files on a browser

    Thank you

  8. #8
    Member Helium c2's Avatar
    Join Date
    Nov 2023
    Location
    Kekaha, Kaua'i
    Posts
    117
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default Re: Run a Java Program with image/audio files on a browser

    This would be an engineering problem. Similar to facebook. They have a webcam setup now. The makers of facebook made it that way to support videos and webcams. The engineering behind this is java programs and containers. I have yet to set one up on facebook. But studying the pictures and layout of facebook, the engineering is in java and they use Java containers to do this.

    Article by Tom Donahue, editor of Twitter, LinkEdin. On the principles of Java in containers. Tutorialsworks. 14 best practices for containers. It's on google search.
    Last edited by Helium c2; February 9th, 2024 at 12:01 PM.

Similar Threads

  1. Managing Audio Files In Java
    By Nemesis89 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 19th, 2014, 07:11 AM
  2. Problem with Audio Files
    By haiderali in forum What's Wrong With My Code?
    Replies: 5
    Last Post: June 4th, 2013, 01:34 PM
  3. how to stop a looping audio clip when browser window is closed
    By code-challenged in forum Java Applets
    Replies: 16
    Last Post: August 11th, 2012, 08:40 PM
  4. Replies: 3
    Last Post: August 3rd, 2012, 10:40 AM
  5. (Javascript) Resize an image according to browser.
    By cybershadow in forum Other Programming Languages
    Replies: 3
    Last Post: October 13th, 2011, 11:24 AM