poidasmith / winrun4j

WinRun4J Java Application Launcher
http://winrun4j.sourceforge.net
212 stars 63 forks source link

Way to prevent registering Native #31

Closed Chrriis closed 11 years ago

Chrriis commented 11 years ago

When I run the exe, I see this in the console: [info] Registering natives for Native class [warn] Could not find Native class

I found that between the info and warn message I have to wait for about 2 seconds. Since I don't seem to need the Native class, is there a way to switch this lookup off in the ini file to not lose those 2 seconds and avoid this log warning?

gustf commented 11 years ago

I am not sure but I think the 2 sec could be because it is the first class that is (trying to be) loaded by the environment. In that case you will get the delay anyway later in loading the main-class.

poidasmith commented 11 years ago

Not sure why you are seeing 2 seconds but I will add an INI option to disable the native integration. Thanks.

poidasmith commented 11 years ago

In the latest release (0.4.5) you can set disable.native.methods=true in your INI to avoid the native registration.