创建AIR文件时出错:无法生成时间戳:握手期间远程主机关闭连接

时间:2016-10-09 05:31:08

标签: actionscript-3 flex air flash-builder

我一直在尝试从Flash Builder导出发布版本,我收到错误:

enter image description here

错误消息是:

  

创建AIR文件时出错:无法生成时间戳:远程主机   握手期间关闭连接

更新
我发现了这个post,它说它使用https://timestamp.geotrust.com/tsa来获取时间戳。我在浏览器中访问了此URL并收到了404 - 未找到的页面。

更新2:
看起来时间戳site已经停止了几天。

更新3:
它看起来像geotrust切换到TLS 1.2,它破坏了Flash Builder。以下是Adobe的回复here

  

感谢您报告此问题。我们调查并发现了   timestamp.geotrust.com最近禁用了TLS 1.0(请参阅评论   http://downornotworking.com/timestamp.geotrust.com/),因此请   尝试在你的机器上升级到Java 1.8,其中ADT是一个组件   发生基于Java的AIR SDK包装。

行。我已阅读here,其中存在与Flash Builder和Java 1.8的兼容性问题。我是否安装了Java 1.8?如何使用Flash Builder完成此操作?

我在Mac OS X 10.11上运行Flash Builder 4.7

4 个答案:

答案 0 :(得分:2)

有一篇关于如何设置Flash Builder for Java 7/8的好文章

Running Adobe Flash Builder on Mac with Java 7/8

我正在重新创建此处的步骤以防链接脱机

  

要遵循的步骤

Set your JAVA_HOME to Java 7 or Java 8 as per the correct paths on your machine.

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home

Open JVM’s Info.plist at $JAVA_HOME/../Info.plist and add the highlighted lines to JVMCapabilities array:arrays
Create a symlink for libjvm.dylib as follows:

sudo mkdir –p /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bundle/Libraries
sudo ln -s /Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/jre/lib/server/libjvm.dylib
     

/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bundle/Libraries/libserver.dylib

Note: Correct the version number (in jdk1.7.0_79.jdk) path in the above example to make it point to the correct path on your machine.
Set java.library.path by adding the following lines at the end of “/Applications/Adobe Flash Builder 4.7/Adobe Flash Builder
     

4.7.app/Contents/MacOS/Adobe Flash Builder 4.7.ini“。

     

-Djava.library.path = .. / .. / .. /日蚀/插件/ com.adobe.flexide.nativelibs_4.7.0.349722 / OS / MacOSX的/:../../../蚀/plugins/com.adobe.flexide.amt_4.7.0.349722/os/macosx/:../../../eclipse/plugins/com.adobe.flexbuilder.utils.osnative_4.7.0.349722/os/macosx /

     

重新启动计算机并启动Flash Builder。可能的错误

     

如果您尝试在Mac OS 10.12上启动Flash Builder,您会看到   错误如:

     

java.lang.RuntimeException:Application   " com.adobe.flexbuilder.standalone.FlashBuilderApplication"不能   在注册表中找到。可用的应用程序是:   org.eclipse.ant.core.antRunner,org.eclipse.ant.ui.antRunner,   org.eclipse.equinox.app.error,org.eclipse.equinox.p2.director,   org.eclipse.equinox.p2.garbagecollector.application,   org.eclipse.equinox.p2.publisher.InstallPublisher,   org.eclipse.equinox.p2.publisher.EclipseGenerator,   org.eclipse.equinox.p2.publisher.ProductPublisher,   org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher,   org.eclipse.equinox.p2.reconciler.application,   org.eclipse.equinox.p2.repository.repo2runnable,   org.eclipse.equinox.p2.repository.metadataverifier,   org.eclipse.equinox.p2.artifact.repository.mirrorApplication,   org.eclipse.equinox.p2.metadata.repository.mirrorApplication,   org.eclipse.equinox.p2.updatesite.UpdateSitePublisher,   org.eclipse.equinox.p2.publisher.UpdateSitePublisher,   org.eclipse.equinox.p2.publisher.CategoryPublisher,   org.eclipse.help.base.infocenterApplication,   org.eclipse.help.base.helpApplication,   org.eclipse.help.base.indexTool,org.eclipse.jdt.apt.core.aptBuild,   org.eclipse.jdt.core.JavaCodeFormatter,org.eclipse.ui.ide.workbench,   org.eclipse.update.core.standaloneUpdate,   org.eclipse.update.core.siteOptimizer。在   org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)   在   org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)   在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)   在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)   在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)   在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)   在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)   在java.lang.reflect.Method.invoke(Method.java:597)at   org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)at at   org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)at at   org.eclipse.equinox.launcher.Main.run(Main.java:1410)

     

在/ Applications / Adob​​e Flash Builder中找到名为“p2”的目录   4.7 /并删除它。 Flash Builder现在应该启动。

答案 1 :(得分:1)

此修复程序适用于Windows上的FlashBuilder 4.7。

确保正常安装JDK 1.8。

删除(重命名)FlashBuilder附带的JDK1.6文件夹:

C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\jre

我将其重命名为jre-removed-to-force-java1.8,但无论如何。

答案 2 :(得分:1)

对我来说,这个解决方案在Phendrax的这个页面上起作用:https://forums.adobe.com/thread/2218793

安装Java 1.8后, 转到" C:\ Program Files \ Adob​​e \ Adob​​e Flash Builder 4.7(64位)" (或您的Flash Builder安装目录)并重命名文件夹" jre"别的东西(比如" _jre"), 然后转到Java 1.8安装目录(对我来说" C:\ Program Files \ Java \ jdk1.8.0_101"), 并复制" jre"从Java 1.8目录到Flash Builder目录的文件夹

答案 3 :(得分:1)

对于任何有兴趣的人,我通过在adt java任务中添加“-tsa”arg,使用我们的ant build.xml解决了这个问题

<!-- Load properties -->
<property file="${basedir}${file.separator}build${file.separator}build.properties" />

<!-- ADT launch -->
<java jar="${flexsdk.adt}" fork="true" failonerror="true" maxmemory="1024m">
    <arg line="-package" />
    <arg line="-keystore ${project.certificate}" />
    <arg line="-storetype pkcs12" />
    <arg line="-storepass ${project.storepass}" />
    <arg line="-tsa ${adt.tsa}" />
    <arg line="-target bundle" />
    <arg line="${buildconfig.path}" />
    <arg line="${buildconfig.path}/${project.name}-app.xml" />
    <arg line="-C ${buildconfig.path} ${project.name}.swf" />
</java>

使用我们的build.properties文件使用以下adt.tsa值

adt.tsa = http://sha256timestamp.ws.symantec.com/sha256/timestamp