Classes failing to load in Windows
Closed this issue · 1 comments
martinml commented
When starting Micro in Windows this line appears in the logs:
[main] ERROR ca.simplegames.micro.utils.ClassUtils - Loading classes from: C:\dev\test-project\WEB-INF\C, failed.
Poking around the source I found this in Micro.java
(line 99)
StringUtils.split(cp.toString(), ",:"));
This will fail in Windows, since absolute paths include the :
character to indicate a drive letter. I just found about Micro and I'm not sure how this should be fixed but as a temporary workaround I just replaced the ,:
to ,
and it seems to be working. This is obviously wrong so please don't do that :)
florinpatrascu commented
Hi there - I changed the code to use the platform dependent classpath separator. This is the character returned by java.io.File.pathSeparatorChar
. Please let me know if you have other questions about Micro and I hope you'll find it useful.