Open Eclipse -> Go to File -> Open Project From File System -> Show other specialised import wizard-> Gradle -> Existing Gradle -> sample-project-gradle-master
Open Eclipse -> Go to File -> Open Project From File System -> Show other specialised import wizard-> Gradle -> Existing Gradle -> sample-project-gradle-master
Import this project to Eclipse (I use Eclipse Oxygen 3A) as an existing grandle project.
Import this project to Eclipse (I use Eclipse Oxygen 3A) as an existing grandle project.
Our eclipse project uses the web3j library. Java library to interact with Ethereum blockchain and solidity smart contracts
Our eclipse project uses the web3j library. Java library to interact with Ethereum blockchain and solidity smart contracts
Web3jweb3j=Web3j.build(newHttpService("https://ropsten.infura.io/fIJ2SJzY4NaKGKA9Ryxp"));//Need to add you Infura token. Sent to you by email when you register. Use the one for Ropsten.
Web3jweb3j=Web3j.build(newHttpService("https://ropsten.infura.io/fIJ2SJzY4NaKGKA9Ryxp"));//Need to add you Infura token. Sent to you by email when you register. Use the one for Ropsten.
log.info("Connected to Ethereum client version: "+web3j.web3ClientVersion().send().getWeb3ClientVersion());
log.info("Connected to Ethereum client version: "+web3j.web3ClientVersion().send().getWeb3ClientVersion());
//Load your Credentials and Ethereum wallet
//Load your Credentials and Ethereum wallet file
Credentialscredentials=
Credentialscredentials=
WalletUtils.loadCredentials(
WalletUtils.loadCredentials(
"1234",//Need to add the password you have set for this wallet file
"1234",//Need to add the password you have set for this wallet file
"C:\\Users\\Marinos\\Desktop\\test_gitlab\\db-blockchain-privacy\\sample-project-gradle-master\\wallet\\UTC--2018-06-16T11-26-34.298000000Z--fc87f1c9459a4e15731d004ebd923821f89aa007.json");//Need to add the path of your generated Ethereum wallet file (.json).
"C:\\Users\\Marinos\\Desktop\\test_gitlab\\db-blockchain-privacy\\sample-project-gradle-master\\wallet\\UTC--2018-06-16T11-26-34.298000000Z--fc87f1c9459a4e15731d004ebd923821f89aa007.json");//Need to add the path of your generated Ethereum wallet file (.json).
log.info("Credentials loaded");//Check the folder wallet inside the project folder to find an existing wallet file.
log.info("Credentials loaded");//Check the folder wallet inside the project folder to find an existing wallet file.