Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

invalid method declaration; return type required??????????

843810Jun 12 2003 — edited Jun 24 2003
this is what I type in (the .java file is hello.java)(i put the .java file into my bin folder, but I am not sure I had to do that):

-------------------
cd C:\j2sdk\bin

C:\j2sdk\bin>java hello.java
hello.java:5: invalid method declaration; return type required
main(){
^
1 error
--------------------

that is it, help me plz
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2003
Added on Jun 12 2003
4 comments
231 views