R3-Archive / cordapp-example

This repository is deprecated. The latest version of all the official CorDapp samples can be found in the official samples repository: https://github.com/corda/samples.
Other
77 stars 118 forks source link

Missing intellij modules and build fails #71

Closed IAMtheIAM closed 7 years ago

IAMtheIAM commented 7 years ago

I got the gradlew.bat depoloyNodes to succeed and the nodes running on my computer. I have never worked in java before.

However, the next step I got stuck. This was very complicated to get setup on IntelliJ for me. I use intellij for javascript all the time but this is new. I still can't get it to "Run Example Cordapp- Java". It was making me setup Modules and include SDK and output paths. Can you include your preconfigured intellij module.iml and idea.xml, etc?

Information:java: Errors occurred while compiling module 'App'
Information:javac 1.8.0_131 was used to compile java sources
Information:Some files were changed during the build. Additional compilation may be required.
Information:6/27/2017 4:16 PM - Compilation completed with 101 errors and 0 warnings in 19s 564ms
C:\Source\Corda\cordapp-tutorial\java-source\build\nodes\NodeC\persistence.mv.db
Error:resources: The process cannot access the file because another process has locked a portion of the file
C:\Source\Corda\cordapp-tutorial\java-source\src\main\java\com\example\api\ExampleApi.java
Error:(7, 33) java: package com.google.common.collect does not exist
Error:(8, 33) java: package com.google.common.collect does not exist
Error:(9, 14) java: package kotlin does not exist
Error:(10, 32) java: package net.corda.core.contracts does not exist
Error:(11, 32) java: package net.corda.core.contracts does not exist
Error:(12, 31) java: package net.corda.core.identity does not exist
Error:(13, 32) java: package net.corda.core.messaging does not exist
Error:(14, 32) java: package net.corda.core.messaging does not exist
Error:(15, 27) java: package net.corda.core.node does not exist
Error:(16, 36) java: package net.corda.core.node.services does not exist
Error:(17, 36) java: package net.corda.core.node.services does not exist
Error:(18, 35) java: package net.corda.core.transactions does not exist
Error:(19, 34) java: package org.bouncycastle.asn1.x500 does not exist
Error:(20, 17) java: package org.slf4j does not exist
Error:(21, 17) java: package org.slf4j does not exist
Error:(22, 10) java: package rx does not exist
Error:(24, 1) java: package javax.ws.rs does not exist
Error:(25, 24) java: package javax.ws.rs.core does not exist
Error:(26, 24) java: package javax.ws.rs.core does not exist
Error:(32, 35) java: package net.corda.client.rpc does not exist
Error:(32, 1) java: static import only from classes and interfaces
Error:(35, 2) java: cannot find symbol
  symbol: class Path
Error:(37, 19) java: cannot find symbol
  symbol:   class CordaRPCOps
  location: class com.example.api.ExampleApi
Error:(38, 19) java: cannot find symbol
  symbol:   class X500Name
  location: class com.example.api.ExampleApi
Error:(39, 24) java: cannot find symbol
  symbol:   class X500Name
  location: class com.example.api.ExampleApi
Error:(41, 26) java: cannot find symbol
  symbol:   class Logger
  location: class com.example.api.ExampleApi
Error:(43, 23) java: cannot find symbol
  symbol:   class CordaRPCOps
  location: class com.example.api.ExampleApi
Error:(54, 24) java: cannot find symbol
  symbol:   class X500Name
  location: class com.example.api.ExampleApi
Error:(63, 29) java: cannot find symbol
  symbol:   class X500Name
  location: class com.example.api.ExampleApi
Error:(81, 17) java: cannot find symbol
  symbol:   class StateAndRef
  location: class com.example.api.ExampleApi
Error:(81, 29) java: cannot find symbol
  symbol:   class ContractState
  location: class com.example.api.ExampleApi
Error:(100, 12) java: cannot find symbol
  symbol:   class Response
  location: class com.example.api.ExampleApi
C:\Source\Corda\cordapp-tutorial\java-source\src\main\java\com\example\model\IOU.java
Error:(3, 36) java: package net.corda.core.serialization does not exist
Error:(14, 2) java: cannot find symbol
  symbol: class CordaSerializable
C:\Source\Corda\cordapp-tutorial\java-source\src\test\java\com\example\contract\IOUTransactionTests.java
Error:(5, 31) java: package net.corda.core.identity does not exist
Error:(6, 17) java: package org.junit does not exist
Error:(7, 17) java: package org.junit does not exist
Error:(11, 32) java: package net.corda.testing does not exist
Error:(14, 26) java: cannot find symbol
  symbol:   class Party
  location: class com.example.contract.IOUTransactionTests
Error:(15, 26) java: cannot find symbol
  symbol:   class Party
  location: class com.example.contract.IOUTransactionTests
C:\Source\Corda\cordapp-tutorial\java-source\src\main\java\com\example\plugin\ExamplePlugin.java
Error:(6, 33) java: package com.google.common.collect does not exist
Error:(7, 33) java: package com.google.common.collect does not exist
Error:(8, 33) java: package com.google.common.collect does not exist
Error:(9, 31) java: package net.corda.core.identity does not exist
Error:(10, 32) java: package net.corda.core.messaging does not exist
Error:(11, 27) java: package net.corda.core.node does not exist
Error:(12, 27) java: package net.corda.core.node does not exist
Error:(20, 36) java: cannot find symbol
  symbol: class CordaPluginRegistry
Error:(24, 33) java: cannot find symbol
  symbol:   class CordaRPCOps
  location: class com.example.plugin.ExamplePlugin
Error:(34, 36) java: cannot find symbol
  symbol:   class CordaRPCOps
  location: class com.example.plugin.ExamplePlugin
C:\Source\Corda\cordapp-tutorial\java-source\src\main\java\com\example\state\IOUState.java
Error:(5, 32) java: package net.corda.core.contracts does not exist
Error:(6, 32) java: package net.corda.core.contracts does not exist
Error:(7, 36) java: package net.corda.core.crypto does not exist
Error:(7, 1) java: static import only from classes and interfaces
Error:(8, 31) java: package net.corda.core.identity does not exist
Error:(9, 31) java: package net.corda.core.identity does not exist
Error:(24, 34) java: cannot find symbol
  symbol: class LinearState
Error:(26, 19) java: cannot find symbol
  symbol:   class Party
  location: class com.example.state.IOUState
Error:(27, 19) java: cannot find symbol
  symbol:   class Party
  location: class com.example.state.IOUState
Error:(29, 19) java: cannot find symbol
  symbol:   class UniqueIdentifier
  location: class com.example.state.IOUState
Error:(38, 21) java: cannot find symbol
  symbol:   class Party
  location: class com.example.state.IOUState
Error:(39, 21) java: cannot find symbol
  symbol:   class Party
  location: class com.example.state.IOUState
Error:(50, 12) java: cannot find symbol
  symbol:   class Party
  location: class com.example.state.IOUState
Error:(51, 12) java: cannot find symbol
  symbol:   class Party
  location: class com.example.state.IOUState
Error:(53, 22) java: cannot find symbol
  symbol:   class UniqueIdentifier
  location: class com.example.state.IOUState
Error:(54, 27) java: cannot find symbol
  symbol:   class AbstractParty
  location: class com.example.state.IOUState
C:\Source\Corda\cordapp-tutorial\java-source\src\main\java\com\example\contract\IOUContract.java
Error:(4, 32) java: package net.corda.core.contracts does not exist
Error:(5, 32) java: package net.corda.core.contracts does not exist
Error:(6, 32) java: package net.corda.core.contracts does not exist
Error:(7, 32) java: package net.corda.core.contracts does not exist
Error:(8, 29) java: package net.corda.core.crypto does not exist
Error:(9, 31) java: package net.corda.core.identity does not exist
Error:(11, 39) java: package net.corda.core.contracts does not exist
Error:(11, 1) java: static import only from classes and interfaces
Error:(12, 39) java: package net.corda.core.contracts does not exist
Error:(12, 1) java: static import only from classes and interfaces
Error:(26, 37) java: cannot find symbol
  symbol: class Contract
Error:(32, 24) java: cannot find symbol
  symbol:   class TransactionForContract
  location: class com.example.contract.IOUContract
Error:(62, 19) java: cannot find symbol
  symbol:   class SecureHash
  location: class com.example.contract.IOUContract
Error:(63, 28) java: cannot find symbol
  symbol:   class SecureHash
  location: class com.example.contract.IOUContract
C:\Source\Corda\cordapp-tutorial\java-source\src\main\java\com\example\flow\ExampleFlow.java
Error:(3, 34) java: package co.paralleluniverse.fibers does not exist
Error:(6, 33) java: package com.google.common.collect does not exist
Error:(7, 32) java: package net.corda.core.contracts does not exist
Error:(8, 32) java: package net.corda.core.contracts does not exist
Error:(9, 29) java: package net.corda.core.crypto does not exist
Error:(10, 1) java: package net.corda.core.flows does not exist
Error:(11, 31) java: package net.corda.core.identity does not exist
Error:(12, 31) java: package net.corda.core.identity does not exist
Error:(13, 35) java: package net.corda.core.transactions does not exist
Error:(14, 35) java: package net.corda.core.transactions does not exist
Error:(15, 35) java: package net.corda.core.transactions does not exist
Error:(16, 32) java: package net.corda.core.utilities does not exist
Error:(17, 23) java: package net.corda.flows does not exist
Error:(37, 43) java: cannot find symbol
  symbol:   class FlowLogic
  location: class com.example.flow.ExampleFlow
Error:(37, 53) java: cannot find symbol
  symbol:   class SignedTransaction
  location: class com.example.flow.ExampleFlow
Error:(35, 6) java: cannot find symbol
  symbol:   class InitiatingFlow
  location: class com.example.flow.ExampleFlow
Error:(36, 6) java: cannot find symbol
  symbol:   class StartableByRPC
  location: class com.example.flow.ExampleFlow
Error:(40, 23) java: cannot find symbol
  symbol:   class Party
  location: class com.example.flow.ExampleFlow.Initiator
Error:(45, 23) java: cannot find symbol
  symbol:   class ProgressTracker
  location: class com.example.flow.ExampleFlow.Initiator
Error:(52, 45) java: package ProgressTracker does not exist
joeldudley commented 7 years ago

This sounds like an issue outside of the Example CorDapp. Can you raise it on https://stackoverflow.com/questions/tagged/corda is it is still an issue?