Results 1 to 8 of 8
- 08-21-2010, 08:14 AM #1
Member
- Join Date
- Aug 2010
- Posts
- 6
- Rep Power
- 0
The public type HelloWorldForm must be defined in its own file
I m trying a simple hello world Program using Struts 1
error line:
public class HelloWorldForm extends ActionForm {
(The public type HelloWorldForm must be defined in its own file) :rolleyes:Last edited by tushar_java; 08-22-2010 at 05:17 AM.
-
Do you have more than one public class in the same file? Are you spelling the class name the exact same as the file name? Do the capitalizations match up?
- 08-21-2010, 03:12 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes, seems you've define more than one public classes in the same file. Consider what Fubarable says too.
- 08-21-2010, 06:24 PM #4
Member
- Join Date
- Aug 2010
- Posts
- 6
- Rep Power
- 0
thanks alot my problem is solved before.. it was mistake in class name and file name..was diffrent..
- 08-22-2010, 01:50 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Could you please mark the thread solved then?
- 08-22-2010, 05:23 AM #6
Member
- Join Date
- Aug 2010
- Posts
- 6
- Rep Power
- 0
- 08-22-2010, 11:50 AM #7
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Firs of all don't change the quoted text, as you've done in your last post.
- 08-22-2010, 11:51 AM #8
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
On top the thread, actually on top of the first post (your question) on this thread, you can find a menu. Click on Thread Tools there, and you can find an option to mart the thread solved.
Similar Threads
-
Class is public, should be declared in a file
By goldhouse in forum New To JavaReplies: 7Last Post: 05-10-2012, 09:17 AM -
Err:java.io.IOException: public key ring doesn't start with public key tag
By Deepa in forum New To JavaReplies: 5Last Post: 06-26-2009, 03:03 AM -
"The public type AppletFrame must be defined in its own file" what is it?
By sivakumar_sakam in forum AWT / SwingReplies: 1Last Post: 05-20-2009, 08:46 PM -
Tip for System Defined line separator in a Batch File
By Java Tip in forum java.langReplies: 0Last Post: 04-04-2008, 02:48 PM -
mapping servlets in user defined xml file and invoking them
By praneeth in forum Advanced JavaReplies: 0Last Post: 07-16-2007, 08:45 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks