Jython: exec a string

A

abcd

I have a single jython file, foo.py which contains multiple classes. I
read that into a string and try to exec it....but I get errors saying
something like unable to load class. It seems to work fine if foo.py
only contains a single class, any ideas?
 
E

Edward Elliott

iirc java doesn't like multiple classes in a single file (not counting
anonymous or inner classes). sounds like jython may have the same
restriction...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,294
Messages
2,571,508
Members
48,193
Latest member
DannyRober

Latest Threads

Top