mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
add the compiler self to the library path
This commit is contained in:
parent
aba8052de0
commit
0d92b32162
@ -24,6 +24,7 @@ import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.net.MalformedURLException;
|
||||
import java.net.URL;
|
||||
import java.security.ProtectionDomain;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@ -122,6 +123,10 @@ public class JWebAssembly {
|
||||
* Create a instance.
|
||||
*/
|
||||
public JWebAssembly() {
|
||||
ProtectionDomain protectionDomain = getClass().getProtectionDomain();
|
||||
if( protectionDomain != null ) {
|
||||
libraries.add( protectionDomain.getCodeSource().getLocation() ); // add the compiler self to the library path
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user