How to Include JARs in Application's resources?

So I’m trying to include a Java App in my AppleScript Studio program’s resources. I need to install it when the program is first run. However, when I try to do this, I get:

Does anyone know why this is happening? Or, even better, how can I stop/fix it?

I thought about putting it into a ZIP and installing that after unarchiving it, but I get the same warning, except it’s ‘’.


Well, I found a solution here:

It works, although, looking at the XCode window, you can’t tell it’s there, which is a bit of a pain, and a bit weird, but if it ain’t broke don’t fix it, right?