Search:

Type: Posts; User: Programming_Hobbyist

Page 1 of 2 1 2

Search: Search took 0.08 seconds.

  1. Re: javax.jnlp.UnavailableServiceException: uninitialized (PROBLEM AT RUNTIME)

    Here's your problem, lines 62-63:

    FileOpenService fileOpenService = (FileOpenService) ServiceManager.lookup("javax.jnlp.FileOpenService");

    javax.jnlp

    I'm guessing you imported it correctly. ...
  2. Replies
    8
    Views
    1,377

    Re: Help with collision!

    You haven't provided enough information for someone to extrapolate the answer to your problem. You didn't even state what type of error you're getting. Is the comparison not working? For instance...
  3. Re: Inheritence and problems with static methods.

    Wow you guys are over-shooting the mark. The solution is far more simple:

    1. Static fields and methods are not associated with objects. Thus - using them is out of the question, if you want to...
  4. Re: Newbie, treating two inputs in a method and returning them?

    The answer is there:
    Returning a Value from a Method (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

    public Bicycle seeWhosFastest(Bicycle myBike, Bicycle yourBike,
    ...
  5. Re: Newbie, treating two inputs in a method and returning them?

    Well I don't know how other people would do it, but personally, I'd put those two values in a separate object, and then, return the object.
  6. Replies
    6
    Views
    1,501

    Re: Why won't this image display?

    "If you eliminate all logical solutions to a problem, the illogical, no matter how improbable, must invariably be true."

    We know your code works. We know it works with the initial image - but not...
  7. Please compile this program and see if it gives you an error

    https://rapidshare.com/files/3279493034/person_manager.java

    True you have no incentive to compile it - but at least you'll get a rudimentary database program out of it. I created this using JDK...
  8. Re: I'm getting a random, stringindexoutofbounds exception

    One day it just stopped working. Perhaps there is something wrong with the compiler.
  9. Re: I'm getting a random, stringindexoutofbounds exception

    That never happens. All the lines in the file have 7 characters or more.
  10. I'm getting a random, stringindexoutofbounds exception

    This seems like some java error. I see no error with this code - in fact, it was working perfectly just a while before that. The line before the last line gives me this error:...
  11. The Collectivizer - the ultimate online directory

    I've just got an idea for another project - far more realistic then my last though, about The World Simulation Project. That one would take 10 years to fully realize - this one, only a week. The...
  12. I'm planning on creating the largest computer program ever devised

    I want to simulate the entire planet. I plan to make this an open-source, not-for-profit, anybody-can-join project. A basic 3D engine for displaying massive terrain. It will need tons of people,...
  13. Re: Java giving me anomalous results again

    A 6 hour break aughta do it.
  14. Re: Java giving me anomalous results again

    A simple error. Too many hours of continuous programming.
  15. Re: Java giving me anomalous results again

    Oh - figured it out:

    while ((temp1 = reader1.readLine()) != null) {
    people_array[count] = new person();
    people_array[count].name = temp1;


    I create a new object for each line - and set its...
  16. Re: Java giving me anomalous results again

    Already did that, it gets lost at the savefile() method. I reckon it has something to do with objects and arrays. Some sort of java unrefinement. It saves the line of the file to the .name...
  17. Java giving me anomalous results again

    Greetings. Now this is a serious error, but it can probably be fixed by doing something simple. I read the contents of the saved file, with all the person and other information. I save the...
  18. Replies
    32
    Views
    3,109

    Re: Java error discovered?

    You people seem to be obsessed with proving me wrong. In fact, you pointed out the error yourself. The write bytes was only writing 1 line of the code - it shouldn't have been. Since I wasn't...
  19. Replies
    32
    Views
    3,109

    Re: Java error discovered?

    Yes but not of the other error, the writing bytes one, the one HelloWorld mentioned. Obviously there's an error with java with THAT one.
  20. Replies
    32
    Views
    3,109

    Re: Java error discovered?

    I disagree. I think you just have not tested it for yourself. Given that that helloworld already noticed the error with java as well. He didn't call it an error though. I was wrong about...
  21. Replies
    32
    Views
    3,109

    Re: Java error discovered?

    Well thanks everyone for the help. Why do you people even post on this forum? Is it the social aspect? It must be the social aspect. Anyway - this is part of my larger project. Now that I can...
  22. Replies
    32
    Views
    3,109

    Re: Java error discovered?

    Helloworld992 helped me figure it out - there's something wrong with .write. There's something call the scientific method. If something is obviously wrong - you tend to accept that as fact.
  23. Replies
    32
    Views
    3,109

    Re: Java error discovered?

    It's entirely possible that with my latest attempt at making the printstream with my main program - that I might've compiled a different, earlier version of these programs (possibly the brief example...
  24. Replies
    32
    Views
    3,109

    Re: Java error discovered?

    There's was a ghost in my machine. I tried that printstream before, and several others, and none worked. Would simply not write anything to the file. I've met this phenomenon before - with...
  25. Replies
    32
    Views
    3,109

    Re: Java error discovered?

    Yes the problem is the Try/Catch statement. Throws solves it. Problem solved - but it's still an error.
Results 1 to 25 of 36
Page 1 of 2 1 2