JavaAceEditor: A code editor for editing Java source code. In addition to Ace’s Java syntax highlighting and indenting, JavaAceEditor contains Java error checking and automatic code suggestions.
This add-on contains a single-user JavaAceEditor and collaborative CollabJavaAceEditor. Additionally, VaadinAceEditor and CollabVaadinAceEditor contain a couple of Vaadin-specific code suggestions.
NOTE 1: Requires CollabAceEditor 0.3.x add-on and its dependencies. That is, all the following add-ons jars must be in WebContent/lib folder:
Alternatively, let Maven handle the dependencies automatically (recommended).
NOTE 2: Requires tools.jar from Java Development Kit (JDK) to be in the classpath when ran on a server. The tools.jar is used for parsing and compiling the edited Java code.
NOTE 3: There are some issues with this add-on related to class loading and tools.jar that I haven’t figured out. On Jetty for example, you may get ClassCastException when trying to run the app. Starting Jetty this way seemed to work for me:
java -Djava.ext.dirs=“/dir/that/contains/tools.jar/” -jar start.jar
Hopefully I some day find a proper solution…
This is an experimental add-on. Interfaces etc. are subject to change.