具有java.lang.ClassNotFoundException的CorDapp:具有IBM JDK 8的sun.security.x509.X509CertImpl

时间:2019-03-18 10:49:10

标签: corda

当我尝试构建CorDapp示例时收到以下错误消息。如果是由于证书缺少页眉和页脚行引起的,如何获得正确的证书?

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         bootstrap="vendor/autoload.php"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="Unit">
            <directory suffix="Test.php">./tests/Unit</directory>
        </testsuite>

        <testsuite name="Feature">
            <directory suffix="Test.php">./tests/Feature</directory>
        </testsuite>
    </testsuites>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./app</directory>
        </whitelist>
    </filter>
    <php>
        <env name="APP_ENV" value="testing"/>
        <env name="BCRYPT_ROUNDS" value="4"/>
        <env name="CACHE_DRIVER" value="array"/>
        <env name="MAIL_DRIVER" value="array"/>
        <env name="QUEUE_CONNECTION" value="sync"/>
        <env name="SESSION_DRIVER" value="array"/>
    </php>
</phpunit>

1 个答案:

答案 0 :(得分:0)

看看Corda入门指南here

需要Java 8,并且已经测试了以下JDK

  • Oracle JDK
  • Amazon Corretto
  • Red Hat的OpenJDK

注意:OpenJDK构建通常不包含Corda的GUI工具所需的JavaFX。