Jump to content
Excelsior Forums

Build dll from resource only jar

Recommended Posts

If I have a jar file with ONLY resources (let's say they're images for argument sake), is there a way using jet to build a dll with this jar ... rather than getting a '#no class-files in the project' message.  Before anyone says it, yes I know it doesn't really make sense to have a jar file with no classes, what I'm trying to achieve is to seperate the resources from the exe because the resources can change without the exe changing.

Any help/advice would be greatly appreciated.

Share this post

Link to post
Share on other sites

Of course, you can add fake class (class Fake{}) to your jar and it will be possible to make DLL after that. However the better way IMHO, to leave the JAR separate from EXE.

To do this, simply do not pack your jar to exe: choose "none" for your jar in pack to exe combobox in the Classpath grid of the Page Classpath? of JET Control Panel if you use JET 4.5, or do the same on the Page Resources for the earlier JET versions. Doing this, you achieve the aim to change the resources without the exe changing.

For more details, read JET User's Guide (http://www.excelsior-usa.com/jetdoc.html), Chapter "Application Consideration", section "Resource packing".

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now