After installing the last versions of Red5, Eclipse and Infrared5 plugin, I create a new Dynamic Web Project with Red5 server runtime. The generated code is :
package org.red5.core;
import org.red5.logging.Red5LoggerFactory;
import org.red5.server.adapter.MultiThreadedApplicationAdapter;
import org.red5.server.api.IConnection;
import org.red5.server.api.scope.IScope;
public class Application extends MultiThreadedApplicationAdapter {
//private static Logger log = Red5LoggerFactory.getLogger(Application.class);
/** {@inheritDoc} */
@Override
public boolean connect(IConnection conn, IScope scope, Object[] params) {
//log.info("appConnect");
return true;
}
/** {@inheritDoc} */
@Override
public void disconnect(IConnection conn, IScope scope) {
//log.info("disconnect");
super.disconnect(conn, scope);
}
}
The imports fail, I get the error :
Cannot find the class file for org.red5.server.api.IConnection.
The type org.red5.server.api.IConnection cannot be resolved.
It is indirectly referenced from required .class files
Same for org.red5.logging.Red5LoggerFactory
and org.red5.server.api.scope.IScope
I think maybe the plugin is out of date and it could be solved by changing the import locations... But I don't know the correct ones. Where can I get them for the last version of Red5 ?
IConnection
has never been moved to my knowledge and the other imports are in their correct locations.
Not being a Red5 Eclipse plugin expert, I would expect that your plugin is not pointing at the correct location for the red5 jars. If you just want to use Eclipse for your Red5 development, you can use these guides Eclipse Setup or First Red5 App to get going (they do not require Pro)