User Profile

Collapse

Profile Sidebar

Collapse
indolent
indolent
Last Activity: Feb 19 '07, 11:23 PM
Joined: Sep 12 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • indolent
    replied to Runtime Error
    in Java
    Oh, about this.... I fixed it awhile back. The problem was that I was importing a .jar to my java files which had a predefined 'Location' class of its own. So when I ran my program, it was using the predefined class instead of mine and gave an error because I wasn't using the predefined Location's constructor properly. It was an easy fix when I just change my Location class name to something else not predefined. I hope this helps others who have...
    See more | Go to post

    Leave a comment:


  • indolent
    started a topic Runtime Error
    in Java

    Runtime Error

    this is my runtime error:
    java.lang.NoSuc hMethodError: Location: method <init>()V not found
    at driver.main(dri ver.java:5)

    this is my code for my first .java file:
    Code:
    public class driver
    {
        public static void main(String args[])
        {
            Location test = new Location();
            System.out.println(test.getX());
        }
    }
    this is my code for...
    See more | Go to post
No activity results to display
Show More
Working...