FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Launching jython scripts embedded in a jar file





mike_phi
Hi there all, I would like to emded my jython scripts in a jar file, I have written a java based jython script runner which runes the jython scripts no problem, however I would like to embed the scripts in a jar file and run my script runner which should find the jython scripts emdedded in the jar them run them but it does not seem to work any tips or any exaples of such a setup would be great.

cheers Mic
mike_phi
I am glad to announce that I managed to achieve this, the main catch is making the resoureces available to Java.

two important and trivial things to note

1. insert your jar containing the jython scripts in your application class path

2. when you creat the jar file be sure to insert the jython scripts in the same package name as the java script runner path.

thats it and you have managedto marry jython to java and maintain encapsulation with your scripts : )

cheers
Q5U8
thanks for the info, mike_phi Very Happy
vinx_18
Ey, I am just so curious. What's jython script anywway?
Related topics
JAva HELP
FTP Client
onlinestatus.org
Need some php help.
jar to exe
Load scripts from another file
Execute it using:java -jar
Iframe issues - Need help please.
Javascript problem...I think :S
Java vs. C++
launching shell scripts from jython/python
Launching Jython from an eclipse plugin
Maximum File Size
How java executable (or JAR) files are created?
Reply to topic    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.