Cannot execute the GitHub software

36 views
Skip to first unread message

Xiao Hu

unread,
Jun 15, 2020, 9:34:28 AM6/15/20
to scalismo-faces
Hi! I followed the instruction on the GitHub repo https://github.com/unibas-gravis/parametric-face-image-generator, but when I tried to execute java -Xmx2g -cp generator.jar faces.apps.RandomFaces -c data/config_files/example_config_random.json, it showed:

Error: Could not find or load main class faces.apps.RandomFaces
Caused by: java.lang.ClassNotFoundException: faces.apps.RandomFaces 

Please let me know if I did anything wrong. Thank you! 

Bernhard Egger

unread,
Jun 15, 2020, 8:54:13 PM6/15/20
to Xiao Hu, scalismo-faces
Hi Xiao Hu,

the command you are using to execute the generator is correct. The error is probably caused since it can't actually find the generator.jar file.
The easiest way to overcome this issue is to first navigate into the correct folder where the generator.jar file is located in your console/terminal via cd and then execute the command from before.

Best
Bernhard
--
0 1 0
0 0 1
1 1 1


--
You received this message because you are subscribed to the Google Groups "scalismo-faces" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalismo-face...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo-faces/ad6ec0fb-e4ac-4003-948a-6e4c95fa6f62o%40googlegroups.com.

Xiao Hu

unread,
Jun 16, 2020, 9:51:41 AM6/16/20
to scalismo-faces
Hi Bernard,

Thank you very much for your reply! However, I didn't find the generator.jar in the GitHub repo. Could you point me to the path of the generator.jar file? 

Thanks again! 

Best,
Xiao Hu


On Monday, June 15, 2020 at 8:54:13 PM UTC-4, Bernhard Egger wrote:
Hi Xiao Hu,

the command you are using to execute the generator is correct. The error is probably caused since it can't actually find the generator.jar file.
The easiest way to overcome this issue is to first navigate into the correct folder where the generator.jar file is located in your console/terminal via cd and then execute the command from before.

Best
Bernhard
--
0 1 0
0 0 1
1 1 1


On Mon, Jun 15, 2020 at 9:34 AM Xiao Hu <xiaoh...@gmail.com> wrote:
Hi! I followed the instruction on the GitHub repo https://github.com/unibas-gravis/parametric-face-image-generator, but when I tried to execute java -Xmx2g -cp generator.jar faces.apps.RandomFaces -c data/config_files/example_config_random.json, it showed:

Error: Could not find or load main class faces.apps.RandomFaces
Caused by: java.lang.ClassNotFoundException: faces.apps.RandomFaces 

Please let me know if I did anything wrong. Thank you! 

--
You received this message because you are subscribed to the Google Groups "scalismo-faces" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalism...@googlegroups.com.

Bernhard Egger

unread,
Jun 16, 2020, 9:57:35 AM6/16/20
to Xiao Hu, scalismo-faces
Hi Xiao Hu,

please follow the steps under setup:
download jar and config file under release 

Best
Bernhard 
--
0 1 0
0 0 1
1 1 1

To unsubscribe from this group and stop receiving emails from it, send an email to scalismo-face...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo-faces/07125863-d57e-4041-9934-c40be376b2bfo%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages