ipfs-shipyard / java-ipfs-http-client

A Java implementation of the HTTP IPFS API
MIT License
539 stars 243 forks source link

cant instantiate IPFS ipfs = new IPFS("/ip4/127.0.0.0/tcp/5001") #120

Closed amrouchk closed 5 years ago

amrouchk commented 5 years ago

sorry if this is too basic but I couldnt run the example shown in readme. I tried this IPFS ipfs = new IPFS("/ip4/127.0.0.1/tcp/5001"); with this ipfs.refs.local(); but it doesnt work also this one doesnt work with me @Test public void connection() throws IOException { IPFS ipfs = new IPFS("/dnsaddr/ipfs.infura.io/tcp/5001/https"); System.out.println("connected"); System.out.println("id: " + ipfs.id()); } I installed ipfs-go and the daemon is running so everything seems good Any helps?? appreciates 1 2 screenshot from 2018-11-29 00-22-26

Originally posted by @amrouchk in https://github.com/ipfs/java-ipfs-api/issues/115#issuecomment-442507207

amrouchk commented 5 years ago

The problem has solved by importing the libraries, multiaddress, multibase, multihash regards

RISHABHAGRAWALZRA commented 3 years ago

I am also facing the same issue. Pls help Actually i added the dependency ('implementation group: 'com.github.ipfs', name: 'java-ipfs-http-client', version: 'v1.3.3'') in app.gradle file and synced properly. but when i try to use any method in app its not recognising it and also the import statements Screenshot from 2021-08-02 11-59-06 Screenshot from 2021-08-02 12-02-08

Thanks