Daml on Fabric quickstart example: package com.daml.ledger.rxjava does not exist

I started with a new clean Linux environment on AWS EC2 and reinstalled. I am currently facing this particular issue

[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:7:1: package com.daml.ledger.rxjava does not exist

Any suggestions ?

Full error log

[ec2-user@ip-172-31-18-252 quickstart]$ sbt "run --port 6865 --role provision,time,ledger,explorer ../quickstart/.daml/dist/quickstart-0.0.1.dar"
[info] welcome to sbt 1.4.9 (Red Hat, Inc. Java 11.0.9)
[info] loading project definition from /DAML-HLF/my-app/quickstart/project
[info] set current project to quickstart (in build file:/DAML-HLF/my-app/quickstart/)
[info] compiling 1 Java source to /DAML-HLF/my-app/quickstart/target/scala-2.12/classes ...
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:7:1: package com.daml.ledger.rxjava does not exist
[error] com.daml.ledger.rxjava.DamlLedgerClient
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:8:1: package com.daml.ledger.rxjava does not exist
[error] com.daml.ledger.rxjava.LedgerClient
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:9:1: package com.daml.quickstart.model.iou does not exist
[error] com.daml.quickstart.model.iou.Iou
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:10:1: package com.google.common.collect does not exist
[error] com.google.common.collect.BiMap
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:11:1: package com.google.common.collect does not exist
[error] com.google.common.collect.HashBiMap
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:12:1: package com.google.common.collect does not exist
[error] com.google.common.collect.Maps
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:13:1: package com.google.gson does not exist
[error] com.google.gson.Gson
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:14:1: package com.google.protobuf does not exist
[error] com.google.protobuf.Empty
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:15:1: package io.reactivex.disposables does not exist
[error] io.reactivex.disposables.Disposable
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:20:1: package org.slf4j does not exist
[error] org.slf4j.Logger
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:21:1: package org.slf4j does not exist
[error] org.slf4j.LoggerFactory
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:22:1: package spark does not exist
[error] spark.Spark
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:26:1: cannot find symbol
[error]   symbol:   class Logger
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Logger
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:140:1: cannot find symbol
[error]   symbol:   class LedgerClient
[error]   location: class com.daml.quickstart.iou.IouMain
[error] LedgerClient
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:140:1: cannot find symbol
[error]   symbol:   class Command
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Command
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:140:1: cannot find symbol
[error]   symbol:   class Empty
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Empty
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:155:1: cannot find symbol
[error]   symbol:   class Identifier
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Identifier
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:155:1: cannot find symbol
[error]   symbol:   class TransactionFilter
[error]   location: class com.daml.quickstart.iou.IouMain
[error] TransactionFilter
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:6:1: package com.daml.ledger.javaapi.data does not exist
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:26:1: cannot find symbol
[error]   symbol:   variable LoggerFactory
[error]   location: class com.daml.quickstart.iou.IouMain
[error] LoggerFactory
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:43:1: cannot find symbol
[error]   symbol:   class DamlLedgerClient
[error]   location: class com.daml.quickstart.iou.IouMain
[error] DamlLedgerClient
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:44:1: cannot find symbol
[error]   symbol:   variable DamlLedgerClient
[error]   location: class com.daml.quickstart.iou.IouMain
[error] DamlLedgerClient
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:53:1: cannot find symbol
[error]   symbol:   class TransactionFilter
[error]   location: class com.daml.quickstart.iou.IouMain
[error] TransactionFilter
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:53:1: cannot find symbol
[error]   symbol:   variable Iou
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Iou
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:56:1: cannot find symbol
[error]   symbol:   class Iou
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Iou
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:57:1: cannot find symbol
[error]   symbol:   class BiMap
[error]   location: class com.daml.quickstart.iou.IouMain
[error] BiMap
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:57:1: package Iou does not exist
[error] Iou.ContractId
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:57:1: cannot find symbol
[error]   symbol:   variable Maps
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Maps
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:57:1: cannot find symbol
[error]   symbol:   variable HashBiMap
[error]   location: class com.daml.quickstart.iou.IouMain
[error] HashBiMap
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:58:1: cannot find symbol
[error]   symbol:   class LedgerOffset
[error]   location: class com.daml.quickstart.iou.IouMain
[error] LedgerOffset
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:59:1: package LedgerOffset does not exist
[error] LedgerOffset.LedgerBegin
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:68:1: package LedgerOffset does not exist
[error] LedgerOffset.Absolute
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:70:1: package Iou does not exist
[error] Iou.Contract
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:79:1: cannot find symbol
[error]   symbol:   class Disposable
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Disposable
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:85:1: cannot find symbol
[error]   symbol:   class Event
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Event
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:86:1: cannot find symbol
[error]   symbol:   class CreatedEvent
[error]   location: class com.daml.quickstart.iou.IouMain
[error] CreatedEvent
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:87:1: cannot find symbol
[error]   symbol:   class CreatedEvent
[error]   location: class com.daml.quickstart.iou.IouMain
[error] CreatedEvent
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:87:1: cannot find symbol
[error]   symbol:   class CreatedEvent
[error]   location: class com.daml.quickstart.iou.IouMain
[error] CreatedEvent
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:89:1: package Iou does not exist
[error] Iou.Contract
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:89:1: package Iou does not exist
[error] Iou.Contract
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:92:1: cannot find symbol
[error]   symbol:   class ArchivedEvent
[error]   location: class com.daml.quickstart.iou.IouMain
[error] ArchivedEvent
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:93:1: cannot find symbol
[error]   symbol:   class ArchivedEvent
[error]   location: class com.daml.quickstart.iou.IouMain
[error] ArchivedEvent
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:93:1: cannot find symbol
[error]   symbol:   class ArchivedEvent
[error]   location: class com.daml.quickstart.iou.IouMain
[error] ArchivedEvent
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:95:1: package Iou does not exist
[error] Iou.ContractId
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:102:1: cannot find symbol
[error]   symbol:   class Gson
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Gson
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:102:1: cannot find symbol
[error]   symbol:   class Gson
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Gson
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:103:1: cannot find symbol
[error]   symbol:   variable Spark
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Spark
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:104:1: cannot find symbol
[error]   symbol:   variable Spark
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Spark
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:105:1: cannot find symbol
[error]   symbol:   variable Spark
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Spark
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:109:1: cannot find symbol
[error]   symbol:   variable Spark
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Spark
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:112:1: cannot find symbol
[error]   symbol:   class Iou
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Iou
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:112:1: cannot find symbol
[error]   symbol:   class Iou
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Iou
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:113:1: cannot find symbol
[error]   symbol:   class CreateCommand
[error]   location: class com.daml.quickstart.iou.IouMain
[error] CreateCommand
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:118:1: cannot find symbol
[error]   symbol:   variable Spark
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Spark
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:123:1: package Iou does not exist
[error] Iou.ContractId
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:124:1: cannot find symbol
[error]   symbol:   class ExerciseCommand
[error]   location: class com.daml.quickstart.iou.IouMain
[error] ExerciseCommand
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:156:1: cannot find symbol
[error]   symbol:   class InclusiveFilter
[error]   location: class com.daml.quickstart.iou.IouMain
[error] InclusiveFilter
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:156:1: cannot find symbol
[error]   symbol:   class InclusiveFilter
[error]   location: class com.daml.quickstart.iou.IouMain
[error] InclusiveFilter
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:157:1: cannot find symbol
[error]   symbol:   class Filter
[error]   location: class com.daml.quickstart.iou.IouMain
[error] Filter
[error] /DAML-HLF/my-app/quickstart/src/main/java/com/daml/quickstart/iou/IouMain.java:158:1: cannot find symbol
[error]   symbol:   class FiltersByParty
[error]   location: class com.daml.quickstart.iou.IouMain
[error] FiltersByParty
[error] (Compile / compileIncremental) javac returned non-zero exit code
[error] Total time: 3 s, completed Apr 1, 2021, 4:38:45 PM
1 Like

Hi @bartcant,
based on the error and the output it looks like you are running the sbt command from the quickstart directory which will result in this error. Instead, you should run it from your clone of the daml-on-fabric repository, probably something like /DAML-HLF/my-app/daml-on-fabric or something similar depending on where you cloned it to. If you look at the instructions there is a cd command included to get you back to that after you’ve run daml build in the quickstart directory.

1 Like

Solved the problem :slight_smile:

Thank YOU

2 Likes