- 论坛徽章:
- 0
|
导出前项目目录如下:
test
--bin
--META-INF
--MANIFEST.MF
--DemoPanel.class
--DynamicDataDemo2$DemoPanel.class
--DynamicDataDemo2.class
--lib
--jcommon-1.0.0.jar
--jfreechart-1.0.1.jar
--log
--src
--META-INF
--MANIFEST.MF
--DemoPanel.java
--DynamicDataDemo2.java
.classpath
.project
src/META-INF/MANIFEST.MF内容如下:
Manifest-Version: 1.0
Class-Path: lib/jcommon-1.0.0.jar lib/jfreechart-1.0.1.jar
Main-Class: DynamicDataDemo2
(空行)
.classpath内容如下:
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/jcommon-1.0.0.jar"/>
<classpathentry kind="lib" path="lib/jfreechart-1.0.1.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
导出后jar包用winrar查看如下:
META-INF
--MANIFEST.MF
lib
--jcommon-1.0.0.jar
--jfreechart-1.0.1.jar
log
DemoPanel.class
DynamicDataDemo2$DemoPanel.class
DynamicDataDemo2.class
.classpath
.project
META-INF/MANIFEST.MF的内容如下:
Manifest-Version: 1.0
Class-Path: lib/jcommon-1.0.0.jar lib/jfreechart-1.0.1.jar
Main-Class: DynamicDataDemo2
(空行)
可是双击导出后的test.jar,总是提示:Could not find the main class,program will exit. |
|