Results 1 to 2 of 2
  1. #1
    Pretender is offline Member
    Join Date
    Apr 2012
    Rep Power

    Default Need help [Not sure what to make as title for this...]

    Hey there everyone!
    I'm not going to go too in-detail at the start, read my introduction for prior knowledge of me and my experience.

    I was just wondering, I am using Eclipse at the moment. Once I have created all my classes, how do I compile to a jar?

    After this, how do I upload it to a website to be shown?


    P.S - I am not great at Java... I would just like to learn to upload them for future knowledge.
    Java Code:
    import java.util.Scanner;
    class apples{
    	public static void main(String args[]){
    		Scanner input = new Scanner(;
    		double fnum, snum, ans;
    		System.out.println("Enter your first number: ");
    		fnum = input.nextDouble();
    		System.out.println("Enter your second number: ");
    		snum = input.nextDouble();
    		System.out.println("Here is your answer: ");
    		ans = fnum + snum;
    I haven't learned how to make the actual applet yet, like the border it goes in. But, how would I upload this to a website?

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: Need help [Not sure what to make as title for this...]

    Your code is not an applet, it looks like a application because of the main() method and it does not extend the applet class.
    Have you read the tutorial about applets?
    Lesson: Java Applets (The Java™ Tutorials > Deployment)
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Help:P i don't even have a title
    By Ophelia in forum New To Java
    Replies: 32
    Last Post: 10-01-2011, 11:40 PM
  2. Replies: 19
    Last Post: 06-10-2011, 07:58 PM
  3. set * at tab title
    By keffie91 in forum Advanced Java
    Replies: 7
    Last Post: 10-06-2008, 07:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts