sco0ter / precis

A Java implementation of the "PRECIS Framework: Preparation, Enforcement, and Comparison of Internationalized Strings in Application Protocols" and profiles thereof.
MIT License
2 stars 0 forks source link

Problems with xmpp.addr 0.8.1 - PrecisProfil / FullJID #2

Open sco0ter opened 5 years ago

sco0ter commented 5 years ago

Original report by Anonymous.


Hi,

I have implemented XMPP in my Eclipse IDE project, both the .class files (as jar) and the .javadocs (as jar). Files have been implemented in a /lib folder of the project, and with the build path I can see the javadocs within Eclipse. Also see all jar files are compiled within the main project jar.

After compiling project into jar (maven install), and running the project, I get error relating to rocks/xmpp/precis/PrecisProfile, and/or statement "Could not initialize class rocks.xmpp.addr.FullJid".

Overall problem: "java.lang.NoClassDefFoundError: Could not initialize class rocks.xmpp.addr.FullJid"

Any immediate thoughts what can be wrong? Note that I have limited programming skills... Project code has been implemented from a project using XMPP 0.6.2.

sco0ter commented 5 years ago

Original comment by Christian Schudt (Bitbucket: sco0ter, GitHub: sco0ter).


Hi,

if you use Maven, why do you use a lib folder?

The jar which contains the missing class is in this artifact: https://mvnrepository.com/artifact/rocks.xmpp/precis/1.0.0

Either put it into your lib folder, or better, use Maven to resolve dependencies.