lundi 13 novembre 2017

Load jars and execute code based on what is loaded

i made an application which is modular and supports “Signed” (i check at runtime the checksum and if it corresponds it loads)

Now, at the moment it supports only jars that i made it support, Though i would like to make this dynamic. The logic would be:

1) list all jars

2) check if jar is valid(checksum)

3)run some code for every jar

4) (and this is the part i have the most trouble) add to a jtabbedpane a jframe loaded precendently from the jar, (I know this sounds easy, and it is, though the thing is where do i retrieve the tab name? Where should i include it?)

At the moment I am not at home but later if needed i will edit with meaningful code.

By the way, the whole purpose of this is to make a sort of “launcher” that doesn’t need updates at all, it just needs to update the external jars (very useful as with this i can upload the jars on my server and update at runtime)





Aucun commentaire:

Enregistrer un commentaire