yes i compiled core + scripts,
File f = new File("data/scripts/L2J_Scripts.jar");
if (f.exists())
{
_log.info(getClass().getSimpleName() + ": File found. Loading server scripts...");
try (JarInputStream stream = new JarInputStream(new FileInputStream(f)))
{
JarEntry entry = null;
while ((entry = stream.getNextJarEntry()) != null)
{
if (entry.getName().contains(ClassUtils.INNER_CLASS_SEPARATOR) || !entry.getName().endsWith(".class"))
{
continue;
}
String name = entry.getName().replace(".class", "").replace("/", ".");
Class<?> clazz;
clazz = getClass().getClassLoader().loadClass(name);
if (Modifier.isAbstract(clazz.getModifiers()))
{
continue;
}
jarClasses.add(clazz);
}
result = true;
}
catch (ClassNotFoundException | IOException e)
{
_log.error(getClass().getSimpleName() + ": Failed loading L2J_Scripts.jar.", e);
jarClasses.clear();
}
}
line 77 but i dont think that error can be there
String name = entry.getName().replace(".class", "").replace("/", ".");
i think that problem is in JarEntry as the jar is loaded but JarEntry cant find classes