Gradle运行无错误,但Java .jar文件记录错误

时间:2019-10-30 18:47:52

标签: java gradle netbeans

im使用简单的Java应用程序并使用netbeans ide在google drive api上工作。 因此,起初我建立了一个(gradle)项目,其中包含所有必要的依赖项,我的应用程序运行良好,但是我试图制作一个可执行的jar文件

{
    "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
     ....
     "projects": {
          .....
          "architect": {
                "build": {
                     ....
                     "options": {
                         ....
                         "scripts": [
                              "src/scripts/myScript1.js,
                              "src/scripts/myScript2.js,
                              "node_modules/jquery/dist/jquery.js",
                              "node_modules/bootstrap/dist/js/bootstrap.bundle.js"
                         ]
    ....

这是我的错误日志(尝试运行java -jar myapp时):

| src
   |- app
        |- component1.html
        |- component1.ts   
   | scripts
        | myScript1.js
        | myScript1.d.ts
        | myScript2.js
        | myScript2.d.ts

myScript1.d.ts
    export function myFunc1(s: String) : String

myScript2.d.ts

    export function myFunc1(s: String) : String
    export function myFunc2(s: String) : String
    export function myFunc3(s: String) : String

还请记住,当我在netbeans中使用运行按钮时,我导入了com google apiclient json JsonFactory,并且应用程序运行正常

0 个答案:

没有答案