Talk:Marauroa on NetBeans

From Arianne
Revision as of 13:10, 3 March 2012 by imported>SimonSmall (Updated version info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Version Information

These instructions have been validated and have been built on:

For marauroa source file marauroa-3.9-src.tar.gz

  • Windows XP, NetBeans 7.1.1 and Java 1.7.0_02 (Oracle) SimonSmall 14:10, 3 March 2012 (CET)

For marauroa source file marauroa-3.8.7-src.tar.gz

  • Windows XP, NetBeans 7.0.1 and Java 1.7.0_02 (Oracle) SimonSmall 21:24, 15 January 2012 (CET)
  • Windows 7, NetBeans 7.1 and Java 1.6.0_29 (Sun) SimonSmall 21:24, 15 January 2012 (CET)

Java 7 and marauroa 3.8.7

Building marauroa 3.8.7 under Java 7 gives an error , as it does not override the abstract method getRemoteAddress() in java.nio.channels.SocketChannel for marauroa.tools.protocolanalyser.FakeSocketChannel. The red exclamation mark warning icon shows the location of this error. Expand the Project tree until this file is shown, double click it to show it in the editor pane then locate the class definition FakeSocketChannel in the code. Position the cursor in that line (left click) then press Alt-Enter and select the option Implement all abstract methods. This adds the following lines:

<source lang="Java"> import java.net.SocketOption; import java.util.Set;

 @Override
 public SocketChannel bind(SocketAddress local) throws IOException {
   throw new UnsupportedOperationException("Not supported yet.");
 }

 @Override
 public <T> SocketChannel setOption(SocketOption<T> name, T value) throws IOException {
   throw new UnsupportedOperationException("Not supported yet.");
 }

 @Override
 public SocketChannel shutdownInput() throws IOException {
   throw new UnsupportedOperationException("Not supported yet.");
 }

 @Override
 public SocketChannel shutdownOutput() throws IOException {
   throw new UnsupportedOperationException("Not supported yet.");
 }

 @Override
 public SocketAddress getRemoteAddress() throws IOException {
   throw new UnsupportedOperationException("Not supported yet.");
 }

 @Override
 public SocketAddress getLocalAddress() throws IOException {
   throw new UnsupportedOperationException("Not supported yet.");
 }

 @Override
 public <T> T getOption(SocketOption<T> name) throws IOException {
   throw new UnsupportedOperationException("Not supported yet.");
 }

 @Override
 public Set<SocketOption<?>> supportedOptions() {
   throw new UnsupportedOperationException("Not supported yet.");
 }

</source>