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: help with distributing my applet

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    20
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default help with distributing my applet

    Sorry if this is in the wrong section, it was the only place where this really seemed to fit.

    So I was able to upload my very, very simple applet on to a webpage so that I would be able to show it to people easily. I opened the link on my computer and it was able to run perfectly. I then proceeded to test it on a friend's computer to make sure it worked. The applet wouldn't load. I checked the program files to make it sure it had java installed on it. It did have java installed, but NOT jdk. Just to be sure, I reinstalled java and tried again. Still no luck. Then I went in and downloaded JDK and installed it. After that, it started running.

    I could be completely wrong, but I thought that java applets/applications were supposed to run without the need of JDK being installed on the computer. Is there any way to make it so they can be run without JDK? Any help is greatly appreciated.


  2. #2
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: help with distributing my applet

    Quote Originally Posted by Jumbosize View Post
    Sorry if this is in the wrong section, it was the only place where this really seemed to fit.

    So I was able to upload my very, very simple applet on to a webpage so that I would be able to show it to people easily. I opened the link on my computer and it was able to run perfectly. I then proceeded to test it on a friend's computer to make sure it worked. The applet wouldn't load. I checked the program files to make it sure it had java installed on it. It did have java installed, but NOT jdk. Just to be sure, I reinstalled java and tried again. Still no luck. Then I went in and downloaded JDK and installed it. After that, it started running.

    I could be completely wrong, but I thought that java applets/applications were supposed to run without the need of JDK being installed on the computer. Is there any way to make it so they can be run without JDK? Any help is greatly appreciated.
    What needs to be installed is the Java plugin. That should be installed with the JRE (I think), but is a slightly different install proposition which may need to be repeated (and may be forgotten) when browsers are updated. Test for the plugin at this page:

    Verify Java Version

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    SW Missouri
    Posts
    20,100
    Thanks
    48
    Thanked 2,153 Times in 2,126 Posts

    Default Re: help with distributing my applet

    Also look at the browser's java console for error messages.
    Also check the versions of java. If your code was compiled with java 1.7 the code will not run on a 1.6 JRE.

Similar Threads

  1. Replies: 0
    Last Post: October 13th, 2011, 07:42 PM
  2. Help with this applet.
    By jasonxman in forum Java Applets
    Replies: 1
    Last Post: August 24th, 2011, 12:52 AM
  3. Can't Run my Applet! Please help!
    By JJoelTheMan in forum Java Applets
    Replies: 2
    Last Post: June 10th, 2011, 07:11 AM
  4. when i run applet
    By chonch in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 22nd, 2011, 03:56 PM
  5. [SOLVED] applet vs. gui app
    By rptech in forum AWT / Java Swing
    Replies: 3
    Last Post: August 27th, 2009, 09:13 AM