PX4 / jMAVSim

Simple multirotor simulator with MAVLink protocol support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile error with Mac (UDPMavLinkPort.java:107: cannot find symbol)

gcarmix opened this issue · comments

Hi, I'm trying to compile the project on my Macbook Pro (Mavericks) and I got this compilation error:

carmix$ ant
Buildfile: /Users/carmix/Documents/jMAVSim/build.xml

make_dirs:

compile:
[javac] Compiling 23 source files to /Users/carmix/Documents/jMAVSim/out/production/jMAVSim
[javac] /Users/carmix/Documents/jMAVSim/src/me/drton/jmavsim/UDPMavLinkPort.java:107: cannot find symbol
[javac] symbol : method getLoopbackAddress()
[javac] location: class java.net.InetAddress
[javac] possibleAddress = InetAddress.getLoopbackAddress();
[javac] ^
[javac] /Users/carmix/Documents/jMAVSim/src/me/drton/jmavsim/UDPMavLinkPort.java:137: cannot find symbol
[javac] symbol : method getRemoteAddress()
[javac] location: class java.nio.channels.DatagramChannel
[javac] SocketAddress remote = channel.getRemoteAddress();
[javac] ^
[javac] 2 errors

BUILD FAILED
/Users/carmix/Documents/jMAVSim/build.xml:20: Compile failed; see the compiler error output for details.

Could you help me?

The build failed because I had JDK 8 installed, with JDK 7 no problems!