I've been using the "Really easy way" to package Jython in Jar ( https://wiki.python.org/jython/JythonFaq/DistributingJythonScripts#A.22What.27s_a_really_easy_way_to_distribute_my_app_as_a_single_jar.3F.22 )

It works fine, the only thing is I get this error every time my application loads:

Exception in thread "main" Traceback (most recent call last):
  File "<string>", line 3, in <module>
  File "<string>", line 3, in <module>
AttributeError: 'module' object has no attribute 'main'


It doesn't seem like the traceback is informative enough for me to even tell where the error is coming from. This error also doesn't seem to matter -- everything loads and runs fine, as far as I can tell.
I was just curious whether anyone had any idea where this error was coming from?



On Sat, Dec 7, 2013 at 10:25 AM, M.Rule <mrule7404@gmail.com> wrote:
Well, I guess I'm going to press on with trying to build Jython for compatibility with earlier versions of Java. I'm on linux ( ubuntu ). I'm completely unfamiliar with these particular tools. So far,

I've downloaded the latest Jython source posted on http://www.jython.org/downloads.html

I've installed "ant" and "antlr3" using apt-get.
At first, I got a NoClassDefFoundError for org.antlr.Tool, which was solved by export CLASSPATH="$CLASSPATH:/usr/share/java/*"

So now, I can call
$ ant developer-build

and it at least tries to build, but I get a lot of errors like

package javax.servlet does not exist
package org.antlr.runtime does not exist
cannot find symbol
    [javac] symbol  : class ParserRuleReturnScope
...

So presumably $CLASSPATH is set up well enough for ANT to run, but not correctly, since these various libraries aren't found during compilation?
I'll keep working on this but it will probably take me a bit of time to learn all of the tools.