Is this a new bug? I got a new Mac computer and the checksum matches exactly but when I try to make a simple class, just for basic testing, I get the error mentioned in the headline I never complained about java Edit: I think if I type This problem occurs if your Properties / Code>. Example: what happens but in your case the Object () Constructor here is the square:
package com.my.ok; Public class first {}
execution environment to
javaSE- 1.7
JRE project
is not configured in the built path. <
Build Path - & gt; Select
Configure Build Path
Library tab
Add Library .
JRE System Library Click
Next
JRE Right click on the project and select
end
Java platform in the Library category according to your requirement
Source / Binary format and select your Choose JDK as per the requirement. The error was because you did not include the system library in your project and your class
object () was not able to find the constructor, which is said earlier in the hierarchy when you are creating a thing when you create an object.
package com.my.ok; Public class first {}
compiler by default your
first class to
object class Expands to
package com.my.ok; The public class extends first object {}
object class was not found and you are getting this error.
No comments:
Post a Comment