这是清单文件。
Manifest-Version: 1.0
Class-Path: .
Main-Class: ListMediaDevices
Name: library
URL: http://jspeex.sourceforge.net/
Library-Version: 0.9.7
Library-Name: JSpeex
Name: build
Build-Date: 10/05/2010 18:59
Built-With: Linux 2.6.32-21-generic amd64
Built-By: damencho
Bundle-NativeCode:
lib/jnawtrenderer.dll;
lib/jndirectshow.dll;
lib/jnffmpeg.dll;
lib/jng722.dll;
lib/jnopus.dll;
lib/jnportaudio.dll;
lib/jnscreencapture.dll;
lib/jnspeex.dll;
lib/jnwincoreaudio.dll;
osname=Win32;processor=x86根据规范,我确实使用了UTF8编码,并以新行结束文件。如何加载jar文件
java -jar pr.jar give "Error: An unexpected error occurred while trying to open file"为了重复这个问题,我删除了整个包头和lib参数,并添加了一个任意的头"xyz:“,它似乎给出了相同的错误,所以我得出结论,有些地方我的实现不能识别" bundle -NativeCode:”头。
其他信息
java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)正在使用的库是libjitsi.jar
发布于 2012-12-28 19:17:37
我认为您应该在Bundle-NativeCode标头中使用单个空格,而不是JAR File Specification, Name-Value pairs and Sections指定的制表符或多个空格:
header: name : value
name: alphanum *headerchar
value: SPACE *otherchar newline *continuation
continuation: SPACE *otherchar newline下面是一个适用于我的示例manifest.mf代码片段:
Created-By: Apache Maven Bundle Plugin
Bundle-NativeCode: aaaaaaaaaaa.dll, bbbbbbbbbbb.dll, cccccccccc.dll, d
ddddddddddddddd.dll, eeeeeeeeee.dll, ffffffff.dll, ggggggggggggggg.dl
l, hhhhhhhhhhhhhhhhhh.dll, iiiiii.dllhttps://stackoverflow.com/questions/14068000
复制相似问题