Thanks for that. It's now building.
monroe wrote:Hmm, it looks like there is a missing custom version of the SystemGlobals class that was used to load the required SQL statements and other required properties. I.e., the SystemGlobals.properties and mysql_queries.properties files in the resource directory.
I've done a quick reverse engineering and re-created the modified class.
The attached zip file contains this class (and the other phpbb2jforum classes).
- Make a run directory.
- copy the phpbb2jforum.bat file from the resources into it.
- make a bin directory under the run directory
- copy the net directory from the WEB-INF\classes directory into the bin directory.
- copy the resource\phpbb2jforum directory to the bin directory.
- copy the WEB-INF\lib directory to the run directory.
The run directory should look sort of like:
You will need to figure out the correct settings for info in the *.properties file and make sure that JDBC drivers you need are in the lib directory.
Also, the bat file's -cp setting probably needs to be shortened to just -cp bin;lib; since the JDBC driver, etc, are in the lib directory.
monroe wrote:This should get you to a point that all the object classes are available to run the code.
monroe wrote:For extra credit.. change the "bin" part in your run script to point to the root build directory so that you don't have to copy the class files when you change the code.
monroe wrote:That error indicates that the code couldn't find the SystemGlobals.properties file. This could be one of two things.
The file may not be in the proper place or it's not capitalized correctly.
It could also be a bug in the Linux JVM you're using. I seemed to remember that the getResourceAsStream(..) method used might have issues on Linux.
If this is the case, try this modification to the Main.java code:
Change line's 46-47, e.g.
Set the value for the pathToInfo variable to the full directory path of location containing the properties files.