Print at Jun 6, 2020, 10:25:47 PM

Posted by Puybaret at Nov 26, 2013, 9:29:40 PM
Re: Rendering on Windows Server 2008 Possible?
javac.exe did create
I have some doubts about this. It should have created ConsolePhotoGenerator.class file. To simplify its use, remove the first line package com.eteks.sweethome3d.utilities; from the source code, and compile it again.

The java command is followed by a class name, not a file, i.e. the basic command must be:
java.exe ConsolePhotoGenerator

But you also need to add to the class path all the libraries required to execute that class! If you host the ConsolePhotoGenerator.class file generated by javac in the subdirectory lib of Sweet Home 3D installation directory, then the command should look like this:
java -cp lib;lib/SweetHome3D.jar;lib/Loader3DS1_2u.jar;lib/sunflow-0.07.3h.jar;lib/batik-svgpathparser-1.7.jar;lib/j3dcore.jar;lib/j3dutils.jar;lib/vecmath.jar
-Djava.library.path=lib -Xmx640m ConsolePhotoGenerator
if run from the Sweet Home 3D installation directory. Add at the end of this command the path of the sh3d file and the path where the image should be saved.
Emmanuel Puybaret, Sweet Home 3D developer