« Return to Thread: [scala] minimized scala-library.jar for scala applets

[scala] minimized scala-library.jar for scala applets

by Jim McBeath-3 :: Rate this Message:

Reply to Author | View in Thread

I have written a small applet in Scala that I would like to make
available to anyone who has installed the standard Java plug-in
without requiring them to separately install scala-library.jar.
I am able to do that now by listing both my own jar file
and scala-library.jar in the archive attribute of the applet
element in my html file.  However, my jar file is about 150K and
scala-library.jar is about 3M.

I suspect that my applet does not need most of the classes in
scala-library.jar.  If I could easily extract from the latter only
the classes I need, I could create a smaller scala-my-app.jar file
with just those classes and improve download time.  Does anyone
know of a tool that I can use to recursively determine the set
of classes referenced by my code so that I can build such a jar
file automatically?

--
Jim

 « Return to Thread: [scala] minimized scala-library.jar for scala applets