05-19-2012 07:31 PM
Hello,
I'm trying to compile a simple Web Works Extension to show a Dialog.alert(), just a simple code to start with WebWorks Extensions. The problem is that when I try to compile all my code with javac I'm getting a lot "illegal start of expression" errors on places that doesn't have any errors. Here is the console log:
Nathan-Camposs-MacBook-Pro:webworks Nathan$ javac -source 1.3 -target 1.3 -deprecation -classpath /Developer/Applications/Eclipse/plugins/net.rim.ejde.componentpack6.0.0_6.0.0.43/components/lib/net_ rim_api.jar -sourcepath /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/* /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:1 5: illegal start of expression public static final String FIELD_ALERT = "alert"; ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:1 5: illegal start of expression public static final String FIELD_ALERT = "alert"; ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:1 5: ';' expected public static final String FIELD_ALERT = "alert"; ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:1 6: illegal start of expression private Alert _callAlert; ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:1 8: illegal start of expression public AlertScriptable() { ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:1 8: ';' expected public AlertScriptable() { ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:2 2: illegal start of expression public Object getField(String name) throws Exception { ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:2 2: ';' expected public Object getField(String name) throws Exception { ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:2 2: ';' expected public Object getField(String name) throws Exception { ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:2 2: not a statement public Object getField(String name) throws Exception { ^ /Users/Nathan/BlackBerry/WebWorksTest/webworks/src /org/webworks/os/interation/AlertScriptable.java:2 2: ';' expected public Object getField(String name) throws Exception { ^ 11 errors
Any ideas?
Best Regards,
Nathan Campos
Solved! Go to Solution.
05-19-2012 07:41 PM