albrechtf / mcf2pdf

"My CEWE Photobook" MCF to PDF converter
Other
40 stars 37 forks source link

impossible de trouver ou charger la classe principale net.sf.mcf2pdf.Main #13

Closed focusnum closed 7 years ago

focusnum commented 7 years ago

Hello i'm french so sorry for my so bad english the script cannot find "net.sf.mcf2pdf.Main" I'm using Mac OS X and i use this type of command. Do i'm right ? ~ renaud$ /Users/renaud/Downloads/mcf2pdf-0.3.2/mcf2pdf /Users/renaud/Pictures/NY-2016.mcf output.pdf

thank you

albrechtf commented 7 years ago

Could you please post the full error output? Thanks!

focusnum commented 7 years ago

No problem, but it's in french... Mini-de-Renaud:~ renaud$ /Users/renaud/Downloads/mcf2pdf-0.3.2/mcf2pdf /Users/renaud/Pictures/NY-2016.mcf output.pdf Erreur : impossible de trouver ou charger la classe principale net.sf.mcf2pdf.Main Mini-de-Renaud:~ renaud$

albrechtf commented 7 years ago

Hmm, just had a look at the startup script. It seems that you must invoke it in the directory where mcf2pdf is located. I will create a bug ticket for this.

As a workaround, please use this:

cd /Users/renaud/Downloads/mcf2pdf-0.3.2
./mcf2pdf /Users/renaud/Pictures/NY-2016.mcf /Users/renaud/Pictures/output.pdf
albrechtf commented 7 years ago

Bug ticket created as issue #14.

focusnum commented 7 years ago

Yes ! it's work.... a bit more :) i have another problem... sorry... So i try your command line and i have this

mcf2pdf-0.3.2 renaud$ /Users/renaud/Pictures/NY-2016.mcf /Users/renaud/Pictures/output.pdf -bash: /Users/renaud/Pictures/NY-2016.mcf: Permission denied

No permission ? strange no ? Thx for your help

focusnum commented 7 years ago

i move .mcf file and photos in the same folder of mcf2pdf and i have this message now... Mini-de-Renaud:mcf2pdf-0.3.2 renaud$ ./mcf2pdf /Users/renaud/Downloads/mcf2pdf-0.3.2/NY-2016.mcf output.pdf [ERROR] net.sf.mcf2pdf.Main An exception has occured java.io.IOException: MCF Resources Directory /Applications/Atelier Photo Fnac.app/Resources does not exist at net.sf.mcf2pdf.Mcf2FoConverter.(Mcf2FoConverter.java:94) at net.sf.mcf2pdf.Main.main(Main.java:181)

focusnum commented 7 years ago

I think, the path is not correct. On my mac i think the correct path is

/Applications/Atelier\ Photo\ Fnac.app/Contents/Resources (this is from my Terminal)

focusnum commented 7 years ago

is the topic closed ?

aschafu commented 7 years ago

As a note for any Mac users: The path you need includes the "Contents" directory (e.g. "/Applications/Meine\ CEWE\ FOTOWELT.app/Contents/").