Original Post
Hi everybody, I tried getting code that works as a regular Java project to work as a Tomcat project with servlets. Now a lot of things change when you do that, right? First thing I had to struggle with was the root path. Why does it change at all? Can I change it back somehow? For example this used to work:
... new File("./properties.xml") ... And I had to change it to: ... new File("\\D:/EclipseWS/Italienisch/properties.xml") ... The next problem that I have not fixed yet is that dynamically loading classes doesn't work any more. There is no error when I import it in the java file directly ... but when I use the exact code in Class.forName(...) a ClassNotFoundException is thrown. It did work in the regular Java project. And I did not forget to add the external library (obviously). Any ideas? Maybe some ideas where I can start researching? Didn't really find anything in google.