0
import com.aspose.words.License;
public void loadLicense() throws LicenseNotFoundException {
File licenseFile = new File("c:\Aspose.Total.Java.lic");
if (licenseFile.exists()) {
try {
License license = new License();
InputStream in = new FileInputStream(licenseFile);
license.setLicense(in);
in.close();
} catch (Exception e) {
e.printStackTrace();
throw new LicenseNotFoundException(licenseFile.getAbsolutePath() + " not loaded. " + e.getMessage());
}
} else {
throw new LicenseNotFoundException(licenseFile.getAbsolutePath() + " cannot be found.");
}
}
java.io.FileNotFoundException :! 파일에서 찾을 수 없습니다 META-INF/MANIFEST.MF : C/oc4j_101350/J2EE/홈/응용 프로그램/XXX/lib 디렉토리/Aspose.Words.jdk14.jar
META-INF/MANIFEST.MF 파일에서 찾을 수 없습니다! C/oc4j_101350/J2EE/홈/응용 프로그램/XX/lib 디렉토리/Aspose.Words.jdk14.jar
구성 :
,- JDK 1.5.06
- OC4J 독립 10.1.3
- Aspose.Words.jdk14.jar는