SRL Archive - Research & Development Lounge

How load a .jar in Smart?


adsa

2012-05-12 23:16:08

Thread says it.

Harry

2012-05-12 23:27:14

Short answer: not possible.

You'll have to modify a lot of core SMART functions. Check out https://github.com/BenLand100/SMART for the source code, if you want to attempt anything. It won't be easy.

Brandon

2012-05-12 23:48:02


bool DllMain(HINSTANCE instance, int reason, void* checks) {
switch (reason) {
case DLL_PROCESS_ATTACH:
dllinst = instance;
cout << "Running SMART Constructor\n";
internalConstructor();
cout << "SMART Initialized!\n";
system("java filename.jar"); //Modify this line to run a System Call to the VM.
return true;
If you actually want to integrate it into smart then use the Java Native Interface (JNI).

Ohh and with the method I posted above, you have to compile Smart yourself. Curious why you want to do such a thing..

Olly

2012-05-13 06:37:54

Why do you want to do this lol

xtrapsp

2012-05-13 07:21:04

Maybe he wants to bot another game?

ericrootbeer

2012-05-13 07:27:49

no sorry. not possible

laakerules

2012-05-13 20:14:15

MAybe he wants to package a script…