Hey Vhati!
I've been working on improving my program
on its thread, and updating
sourcecode on github.
Per KartoFlane's suggestion, I'm working on removing my dependancy on FTL Profile Editor by copying the libraries I need into my jar.
At this point I have your code packed into my jar and things work well. However, I'm having trouble with the apachi logger dependency. I have your source code working in eclipse as I managed to get Maven working. However, when I remove my dependency on your jar, I now need to make my code dependant on the apachi logger jars. When I run my program from inside eclipse, it runs but I get this error and no log info works:
Code: Select all
log4j:WARN No appenders could be found for logger (org.iceburg.ftl.homeworld.core.FTLHomeworld).
log4j:WARN Please initialize the log4j system properly.
Running it as a jar outside eclipse yeilds the following error:
Code: Select all
G:\Jar Exports>java -jar FTLHomeworld.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/LogM
anager
at org.iceburg.ftl.homeworld.core.FTLHomeworld.<clinit>(FTLHomeworld.jav
a:50)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.LogManager
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 1 more
I'm guessing that the secret lies in moving your log4j2.xmls over to my project, or doing some kind of maven transfer/transfusion.
Would you be willing/able to help me / point me in the right direction? I've been trying to manually install the apachi logger jar, but I can't seem to find the exact version you used / understand exactly what to do. Any pointing in the right direction would be greatly appreciated!
Thanks,
Ice
EDIT: I went ahead and commented out all of the log lines. Crude, barbaric, but it worked. I'd still love to know how to do this properly, but I can move on, so I don't want to pressure / nag you.
Thanks,
Ice