The workings of my program:
- Connect to server
- Get String
- Decrypt String
- Send it back
I'm decrypting with a class i downloaded from the server. The class changes everytime and should be downloaded everytime i start my program
It HAS! to be in package named etc/etc/client/file.class
It works flawless when i'm testing it INSIDE eclipse cause the package folder is then accesible
But what do i do when i want to export is as runnable .jar ? Then i can't write in the package folder?
The line that's loading the class: (The class extends Base64 which is already in the folder)
etc.sec.client.Base64 decode = (etc.sec.client.Base64)Class.forName("etc.sec.client." + handlerClass).newInstance();
// Handler class is the name of the class
The folder i'm downloading the class to before loading newInstance()
:
bin/etc/sec/client/"+filename+".class
Works perfect in eclipse but i do not know how to make it work when exporting to .jar