For a long time I kept putting Oracle Database related posts, but as one can see in my profile, I also love to dabble with Java programming..While developing a custom way of getting an alert for a specific purpose (OEM let me down and I decided to have one created completely customized to my environment and because I love to program in my spare (oh, trust me, it’s SPARE) time..
Long story short: I needed ssh access to a machine (with Java) and chose to use sshj instead of the jsch with I have more experience with. but is kind of…outdated? Don’t get me wrong, it still does what’s advertised, but it’s documentation is kind of sparse to say the least..
After adding sshj-0.15.0.jar (along with the supporting libs) to my build-path I gave my litte setup a spin..
– slf4j-api-1.7.14.jar- bcprov-jdk15on-154.jar (optional)
and she-bang it went….
[main] INFO net.schmizz.sshj.common.SecurityUtils – BouncyCastle registration succeeded
Exception in thread “main” java.lang.NoClassDefFoundError: net/i2p/crypto/eddsa/spec/EdDSAParameterSpec
Caused by: java.lang.ClassNotFoundException: net.i2p.crypto.eddsa.spec.EdDSAParameterSpec
… 7 more
I googled and googled, and although I did found the site with some java classes with the EDDSA encryption, and also found out, this was some encryption schema, I did not find the JAR file I could slam onto my project. Sure, I could download some source from a GITHUB site, and create a JAR myself, I would probably keep running in the missing ‘EdDSAParameterSpec’ file..since I couldn’t find this.
Until I found this site: I2P
On this site it is not really apparent, but, yes, the JAR file we (since you stumbled on this page) are looking for is hidden..
Download the package
i2pinstall_0.9.24.jar (based on the platform of choice, I choose linux since I develop on this platform) and follow the instructions to “install” this file. I choose the graphical version, and unpacked the goodies in my homedir in a tmp folder.
After the installation (unpacking is more apt) the folder <install_loc>/i2p is created, and within this the folder lib. Navigate to this folder, and lo and behold: there is a JAR file called: i2p.jar.
This file is the one we need/want: it contains the EDDSA classes, including the spec file. Copy this file into the classpath to build the app, and the pesky errorstack will be gone!
It took me some searching, and since Google didn’t help me out in the speedy way it normally does, I hope to contribute in some small way to help you out..