okay kind of explains it self i think
this is a guess but im thinking you need to declare that somewhere for it workCode:must be ca ught or declared to be thrown
because it says it must be declared to be thrown so it must be declared so it works
|
|
Please explain, would really be helpfulCode:src\server\Server.java:131: unreported exception java.lang.Exception; must be ca ught or declared to be thrown WalkingHandler.getSingleton().initialize(); ^ Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error Press any key to continue . . .![]()

okay kind of explains it self i think
this is a guess but im thinking you need to declare that somewhere for it workCode:must be ca ught or declared to be thrown
because it says it must be declared to be thrown so it must be declared so it works

The method initialize() in WalkingHandler.java is like this: (notice "throws Exception")
So you need to catch the exception it throws:Code:public WalkingHandler initialize() throws Exception { // .. return this; }
Code:try { WalkingHandler.getSingleton().initialize(); } catch(Exception ex){ ex.printStackTrace(); }

| « Logging and and banned? | how to dupe? » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |