Results 1 to 3 of 3
- 05-09-2013, 07:04 PM #1
Member
- Join Date
- Apr 2013
- Location
- Dallas, Texas, USA
- Posts
- 2
- Rep Power
- 0
Compiler error on constructor for thread class
I am using
Windows 7/64
NetBeans 7.2
I am getting a IDE identified coding error message of
"invalid method declaration; return type required" on the public SAGESplashScreen () constructor.
I need the constructor as I will be passing in arguments to the class to be used by the thread.
I have reduced the code to the minimum that shows the error so as to not cloud the issue.
I have no other SAGESplashScreeen class in my classpath.
This code is based on several examples that I have found on the internet.
It is my opinion that there is an issue with NetBeans (not neccessarily that NetBeans is broken rather I am not using it correctly).
I have examined the properties for both the project and file but find not option in NetBeans that needs to be set to specify multithreaded program development.
package sage;
public class SAGESplashScreeen implements Runnable
{
public SAGESplashScreen ()
{
} // public SAGESplashScreen ()
@Override
public void run()
{
} // public void run()
} // public class SAGESplashScreeen implements RunnableLast edited by ireland94; 05-09-2013 at 07:07 PM. Reason: spelling correction
- 05-09-2013, 07:19 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 13,541
- Rep Power
- 27
Re: Compiler error on constructor for thread class
Your class is called SAGESplashScreeen.
Your constructor is called SAGESplashScreen.
Count the "e"'s.Please do not ask for code as refusal often offends.
** This space for rent **
- 05-09-2013, 07:57 PM #3
Member
- Join Date
- Apr 2013
- Location
- Dallas, Texas, USA
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
compiler error Array of a custom class
By lenois in forum New To JavaReplies: 10Last Post: 03-10-2013, 05:52 PM -
error: Constructor 'X' in Class 'X' cannot be applied to given types
By FiasseKrystella in forum New To JavaReplies: 3Last Post: 10-01-2011, 10:29 PM -
Default constructor by compiler.
By manishdivs in forum New To JavaReplies: 2Last Post: 09-19-2011, 06:31 PM -
Diference Between compiler error Garbage collection and Runtime Error?
By makpandian in forum New To JavaReplies: 3Last Post: 01-23-2009, 09:53 AM -
Calling constructor of parent class from a constructor
By Java Tip in forum Java TipReplies: 0Last Post: 12-19-2007, 10:10 AM
Bookmarks