|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: JAVA: How to change the default furniture catalog? » » » » Post: Re: JAVA: How to change the default furniture catalog? |
Print at Dec 21, 2025, 4:21:52 PM |
| Posted by digitaltrails at Nov 29, 2015, 4:26:42 AM |
|
Re: JAVA: How to change the default furniture catalog? I assume you're using eclipse. The directory SweetHome3D-5.1-src/classes is used by eclipse to store class files it compiles. This is used by internally by eclipse, and also when running/debugging from within eclipse. Eclipse automatically includes the Project's source folders in it's run class paths, so it it is unnecessary to copy source resources and property files to eclipse's class folder. If you wanted to use eclipse's class folder outside of eclipse, you could do what eclipse does, and add the src folder to the class path of your java command (then both will searched). If I wanted to run outside of eclipse, I would build with ant and create all the necessary jars in the output build folder, then put the jars on the classpath (using the run scripts in the install folder as a guide). In practice, I just copy jars from the Ant build into my original "official" SH3D installation replacing the official ones with my own. Note: Ant builds are a separate thing from eclipse's automatic compiles. Eclipse uses it's own compiler, own dependency tracking, and own classpath definitions, all normally quite separate from Ant's. Plus eclipse also has it's own separate run/debug-time classpaths. Keeping eclipse and Ant in agreement is a headache - various tools are available to help better integrate eclipse with external build tools such as Ant, but none are completely perfect. It's not uncommon to burn time on sorting out dependency problems when eclipse and the external build tools get subtlety out of sync. Hello digitaltrails, thank you for your answer. I have watched this video to understand how to build a project with ant: https://www.youtube.com/watch?v=qOhfl9gayB8 The options for an ant build are in the "build.xml"-file, which is located in this folder: Path_To_Sweet_Home_3D\SweetHome3D-5.1-src\ The "build.xml"-file does not contain any command, that will tell ant to copy files to this folder (the default output folder of my eclipse project): Path_To_Sweet_Home_3D\SweetHome3D-5.1-src\classes Instead ant copies the files to this folder (the build folder gets deleted at the end of the build process): Path_To_Sweet_Home_3D\SweetHome3D-5.1-src\build\classes I could add <copy todir="classes\com\eteks\sweethome3d\io\resources"> Have a nice weekend! Greetings, Sweeto |
|
|
Current timezone is GMT Dec 21, 2025, 4:21:52 PM |