Search:

Type: Posts; User: Norm

Search: Search took 0.17 seconds.

  1. Replies
    32
    Views
    2,852

    Re: putting java class online

    You need to find what variable has the null value. A way to do that is to print out the values of the variables in the statement where the error occurs and see which one has the null value. ...
  2. Replies
    32
    Views
    2,852

    Re: putting java class online

    Where is the line that your println() prints out BEFORE the statement with the error?
  3. Replies
    32
    Views
    2,852

    Re: putting java class online

    I don't understand what you are doing???

    To find the problem, you need to execute the code that has the problem, not some other version.

    Keep adding println() statements to show the variables...
  4. Replies
    32
    Views
    2,852

    Re: putting java class online

    That's good that you are not getting the exception any more. Strange that it only happened once.
  5. Replies
    32
    Views
    2,852

    Re: putting java class online

    Did the program get the exception immediately after those println()s were executed?

    Keep adding println() statements to show the variables used on each line until you see the variable that is...
  6. Replies
    32
    Views
    2,852

    Re: putting java class online

    Did the program get the exception immediately after those println()s were executed?

    Keep adding println() statements to show the variables used on each line until you see the variable that is null.
  7. Replies
    32
    Views
    2,852

    Re: putting java class online

    What variable has the null value? If you don't know, add a println() statement to print out the values of all the variables.

    Where is that variable assigned a value?
  8. Replies
    32
    Views
    2,852

    Re: putting java class online

    There is a variable with a null value when line 206 is executed. Look at line 206, find the variable with the null value and find out why it has a null value.
  9. Replies
    32
    Views
    2,852

    Re: putting java class online

    Try debugging the code by adding some println statements to print out messages showing execution flow and the values of variables as the code executes. The print out will help you see what the...
  10. Replies
    32
    Views
    2,852

    Re: putting java class online

    Are there any error messages?
    Locally executing a class from a jar file or from a disk file should not make any difference.
  11. Replies
    32
    Views
    2,852

    Re: putting java class online

    The java command requires that the class it starts executing have a main() method.
    Applets do not use a main() method.

    Read the tutorial that I have given you several links to. It's explained...
  12. Replies
    32
    Views
    2,852

    Re: putting java class online

    Put all the files used by the program into the jar file as said in post#2



    That says the class file was created by a newer version of java (1.7) than the version of java being used to execute...
  13. Replies
    32
    Views
    2,852

    Re: putting java class online

    You can put any files into a jar file.

    What is done with that jar file depends on what program is reading it.
  14. Replies
    32
    Views
    2,852

    Re: putting java class online

    No, you don't need to put the classes in packages.
  15. Replies
    32
    Views
    2,852

    Re: putting java class online

    Put the classes into a jar file and add an archive= attribute to the <applet tag in the html
Results 1 to 15 of 15