janiko Posted February 18, 2015 Posted February 18, 2015 (edited) Hello guys i am trying to setup russian sources, the problem is that it stucks on loading scripts Here is the picture:http://prntscr.com/66vqo0Hope someone will help me, its first time i am trying to setup ru pack p.s i can run without any problem from eclipse luncher Edited February 18, 2015 by janiko
0 janiko Posted February 18, 2015 Author Posted February 18, 2015 Isnt the lib missing? nope, lib is loaded but in lib default package is Util.class, appears that class loader cant load it .
0 vampir Posted February 19, 2015 Posted February 19, 2015 Did you recompile core + scripts? What's in Scripts:77?
0 janiko Posted February 19, 2015 Author Posted February 19, 2015 (edited) Did you recompile core + scripts? What's in Scripts:77? 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 Edited February 19, 2015 by janiko
Question
janiko
Hello guys i am trying to setup russian sources,
the problem is that it stucks on loading scripts
Here is the picture:
http://prntscr.com/66vqo0
Hope someone will help me, its first time i am trying to setup ru pack
p.s i can run without any problem from eclipse luncher
Edited by janiko4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now