Unable to remove this error, nothing is working although the same code is working fine on other systems.
"com.pariter.client.Button can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly."
Adding Button Class from Comment.
package com.pariter.client;
class Button extends com.google.gwt.user.client.ui.Button {
public Button(String s) {
super(s);
this.setPixelSize(100, 25);
this.addStyleName("button");
}
}
Adding Entry Point and Source Path Sections for .gwt.xml
from comment
...
<!-- Specify the app entry point class. -->
<entry-point class='com.pariter.client.LoginPage'/>
<!-- Specify the paths for translatable code -->
<source path='client'/>
<source path='shared'/>
</module>
If I recall correctly, this error would occur if the com.pariter.client.Button
is not in a package (or subpackage) defined in your .gwt.xml
.
Check your .gwt.xml
. i.e.
...
<entry-point class='com.pariter.AppEntryPoint'/>
<source path="client"/>
...
</module>
[Update]
You will either need to move your com.pariter.client.LoginPage
Entry Point to com.pariter.LoginPage
(and therefore update your .gwt.xml
) or move your Button class to the package com.pariter.client.client