Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Cool project! Anyone trying to run it on *nix will need to open Main.java and replace all instances of the windows-specific file separator "\\" with "/".


It should be using the java.io.File.separator[0] constant for platform independence.

[0] http://docs.oracle.com/javase/6/docs/api/java/io/File.html#s...


For future reference, just using slash ("/") will work for both Windows and Unix systems (linux and OSX)


Yes, Windows treats both "/" and "\" as separators. Just make sure you handle the edge cases.

http://stackoverflow.com/questions/4845866/java-on-windows-p...




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: