I've been googling a lot for this and it seems easy, but it just doesn't work for me.
I want to include Twitter4j in my JAR in IntelliJ IDEA. I have put the twitter4j JAR into my /lib
folder , specified it in Libraries,
specified it to compile in dependencies:
Dependencies
and specified to include it in artifacts.
In the final JAR, both twitter4j-stream and twitter4j-core are included: Final JAR
Still, Java throws a NoClassDefFoundError
when run.
(This is not Maven.)