Add sample applet build file.

This commit is contained in:
James Roseborough
2014-01-14 07:15:26 +00:00
parent 1b6be3c99f
commit 1bc4acdb89
3 changed files with 157 additions and 3 deletions

View File

@@ -81,8 +81,13 @@ public class PackageLib extends TwoArgFunction {
/** The default value to use for package.path. This can be set with the system property
* <code>"luaj.package.path"</code>, and is <code>"?.lua"</code> by default. */
public static String DEFAULT_LUA_PATH = System.getProperty("luaj.package.path");
public static String DEFAULT_LUA_PATH;
static {
try {
DEFAULT_LUA_PATH = System.getProperty("luaj.package.path");
} catch (Exception e) {
System.out.println(e.toString());
}
if (DEFAULT_LUA_PATH == null)
DEFAULT_LUA_PATH = "?.lua";
}