User Profile
Collapse
-
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... -
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:
this is my code for...Code:public class driver { public static void main(String args[]) { Location test = new Location(); System.out.println(test.getX()); } }
No activity results to display
Show More
Leave a comment: