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

Thread: Get .jar file running in browser

  1. #1
    Junior Member
    Join Date
    Mar 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Get .jar file running in browser

    I've an java application .jar file and I want to run that application in a browser. What are possibilities to do that?

    I've ZERO knowledge with java programming. According to my knowledge I can achieve that using following options:

    Option 1: Java Applets: I heard that applets are de facto dead for years, and officially dead now. Browsers don't run them anymore. Java doesn't run in browsers anymore. Is that correct? And if it's not correct then how I can actually convert java application to web applets to run in browser using HTML APPLET tag? Please suggest?

    Option 2: Convert java application code to Javascript: Is there any good online tool available which can convert Java Application code to Javascript and I can use that easily? And that tool also have support to help us out with this?

    We need an expert opinion anyone help out and suggest what are best way of doing this.

    Thanks.
    Last edited by ar1983; March 15th, 2019 at 09:12 AM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Get .jar file running in browser

    run that application in a browser.
    What does that mean? What does the java program (the jar file's contents) do that could relate to a browser showing an html page in its window?
    Why the interest in using a browser instead of the java command as a standalone app?

    Yes, applets are dead. However I am able to run them in Win10 with Internet Explorer with some Java security settings.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Get .jar file running in browser

    We don't have any info related to .jar file we got that file from our client and he's asking to run that .jar in a browser. And we're just looking for best options how we can actually run that .jar in a browser. Can you assist how we can actually achieve that?

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Get .jar file running in browser

    he's asking to run that .jar in a browser.
    Can you provide some more information on what "run in browser" means?
    Applets are one example of java code that can run in a browser, but they are mostly gone now. The code needs to be specially to run.
    I don't know of other java programs that "run in a browser".

    Can you look inside the jar file to see what files it contains? Rename it to a .zip file and use a zip utility to extract its contents.

    If you have the source code, get a java programmer to look at it to see what it does.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Running jar with libraries from a jar file in linux
    By Bingo90 in forum What's Wrong With My Code?
    Replies: 5
    Last Post: May 25th, 2014, 07:04 PM
  2. Running .JAR file issue.
    By JosPhantasmE in forum What's Wrong With My Code?
    Replies: 12
    Last Post: January 27th, 2013, 07:07 AM
  3. Running an Applet With JAR file
    By rameshiit19 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: July 20th, 2011, 07:10 AM
  4. [SOLVED] jar file Built(clean and build) perfectly, but not running as jar
    By chronoz13 in forum What's Wrong With My Code?
    Replies: 18
    Last Post: July 11th, 2011, 11:41 AM
  5. Replies: 10
    Last Post: January 12th, 2011, 05:48 AM

Tags for this Thread