导入项目
File->Import->General->Existing Projects into Workspace->Select root directory
右击项目
Export->Java->JAR file->选择打包的项目->next->选择MANIFEST.MF文件
在MANIFIST.MF中指定启动函数Main函数所在的主类,导入需要的jar包。将需要的jar包和打包的项目放在同一个目录下。
Manifest-Version: 1.0
Rsrc-Class-Path: ./ args4j-2.0.16.jar cglib-nodep-2.2.2.jar concurrent
linkedhashmap-lru-1.2.jar derby-10.9.1.0.jar findbugs-annotations-2.0
.1.jar findbugs-jsr305-2.0.1.jar guava-13.0.1.jar hamcrest-core-1.3.j
ar hamcrest-integration-1.3.jar hamcrest-library-1.3.jar j3dutils.jar
jackson-annotations-2.4.4.jar jackson-core-2.4.4.jar jackson-databin
d-2.4.4.jar jackson-dataformat-cbor-2.4.4.jar jackson-dataformat-csv-
2.4.4.jar jackson-dataformat-smile-2.4.4.jar jackson-dataformat-xml-2
.4.4.jar jackson-dataformat-yaml-2.4.4.jar junit-4.8.2.jar jython-2.5
.2.jar libthrift-0.9.0.jar logback-classic-1.0.0.jar logback-core-1.0
.0.jar netty-3.10.0.Final.jar objenesis-1.2.jar openflowj-0.9.0-SNAPS
HOT-javadoc.jar openflowj-0.9.0-SNAPSHOT.jar org.easymock-3.1.jar org
.jsslutils.jar org.restlet.ext.jackson.jar org.restlet.ext.jsslutils.
jar org.restlet.ext.simple.jar org.restlet.ext.slf4j.jar org.restlet.
jar org.simpleframework.jar slf4j-api-1.6.4.jar
Class-Path: ./ args4j-2.0.16.jar cglib-nodep-2.2.2.jar concurrent
linkedhashmap-lru-1.2.jar derby-10.9.1.0.jar findbugs-annotations-2.0
.1.jar findbugs-jsr305-2.0.1.jar guava-13.0.1.jar hamcrest-core-1.3.j
ar hamcrest-integration-1.3.jar hamcrest-library-1.3.jar j3dutils.jar
jackson-annotations-2.4.4.jar jackson-core-2.4.4.jar jackson-databin
d-2.4.4.jar jackson-dataformat-cbor-2.4.4.jar jackson-dataformat-csv-
2.4.4.jar jackson-dataformat-smile-2.4.4.jar jackson-dataformat-xml-2
.4.4.jar jackson-dataformat-yaml-2.4.4.jar junit-4.8.2.jar jython-2.5
.2.jar libthrift-0.9.0.jar logback-classic-1.0.0.jar logback-core-1.0
.0.jar netty-3.10.0.Final.jar objenesis-1.2.jar openflowj-0.9.0-SNAPS
HOT-javadoc.jar openflowj-0.9.0-SNAPSHOT.jar org.easymock-3.1.jar org
.jsslutils.jar org.restlet.ext.jackson.jar org.restlet.ext.jsslutils.
jar org.restlet.ext.simple.jar org.restlet.ext.slf4j.jar org.restlet.
jar org.simpleframework.jar slf4j-api-1.6.4.jar
Rsrc-Main-Class: net.floodlightcontroller.core.Main
Main-Class: net.floodlightcontroller.core.Main
命令行启动
java -jar controller.jar
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。