Mac OS install

368 views
Skip to first unread message

MBebler

unread,
Apr 16, 2015, 5:27:25 PM4/16/15
to forms...@googlegroups.com
I am trying to install formscanner and ghostscript on my Mac, but cannot figure out how to do it.  I tried following the directions listed in the forum, but do not know my java installation directory.  I was able to download Java and XnConvert without a problem.  Can you possibly post a video on how to install formscanner as well as ghostscript, because neither one installs automatically on Mac.  When I double click on the files that were downloaded each has several folders within and I don't know how to do the installation.

Thanks!


Screenshot 2015-04-16 17.25.29.png
Screenshot 2015-04-16 17.25.45.png

Alberto Borsetta

unread,
Apr 21, 2015, 6:29:19 AM4/21/15
to forms...@googlegroups.com
The correct procedure is here:


typing:

java -version 

in a terminal, you get something like this:

>java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)

means that you have the JVM correctly installed and configured, otherwise try download the latest Java Runtime Environment and reinstall it, before installing FormScanner

Alberto

MBebler

unread,
Apr 23, 2015, 5:54:51 PM4/23/15
to forms...@googlegroups.com
Alberto,

I reinstalled Java and when I type the java -version command into the terminal this is the response I get:

java version "1.8.0_45"

Java(TM) SE Runtime Environment (build 1.8.0_45-b14)

Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)


I have since tried redownloading the formscanner binaries, but it still won't install automatically.  I now have 4 copies downloaded, but cannot get anything to install.  Here is what the formscanner folder in my download folder looks like:




I've tried typing the following command at a terminal:

[JAVA_HOME]/bin/java -jar -DFormScanner_HOME=[FORMSCANNER _HOME] -DFormScanner_VERSION=0.10.0 [FORMSCANNER_HOME]/lib/formscanner-main-0.10.0.jar

but this is the response I get:

[JAVA_HOME]/bin/java: No such file or directory


So the problem is that I am not a programmer and I don't know the java install directory.  Any other suggestions?


Thanks!

Alberto Borsetta

unread,
Apr 24, 2015, 3:52:11 AM4/24/15
to forms...@googlegroups.com
Hi,

it seems that Java is correctly installed on your system so the JAVA_HOME path is set into the environment variables.
In this case case you can omit the [JAVA_HOME] path in the execution command.
So the correct command is:

>java -jar -DFormScanner_HOME=[FORMSCANNER _HOME] -DFormScanner_VERSION=0.10.0 [FORMSCANNER_HOME]/lib/formscanner-main-0.10.0.jar

remember to replace [FORMSCANNER_HOME] with the full path where you have extracted the FormScanner archive.

Alberto

Rachel Cole

unread,
Aug 10, 2015, 2:12:11 PM8/10/15
to FormScanner
Hi Alberto,

I tried the following command:

Rachels-MacBook-Air:formscanner-0.11.2-bin rachelcole$ /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -jar -DFormScanner_HOME=/Users/rachelcole/Downloads/formscanner-0.11.2-bin -DFormScanner_VERSION=0.11.2 /Users/rachelcole/Downloads/formscanner-0.11.2-bin /lib/formscanner-main-0.11.2.jar

And got this error message:

Invalid or corrupt jarfile /Users/rachelcole/Downloads/formscanner-0.11.2-bin

Any suggestions?

thanks,
Rachel

btw, others may find this line helpful for figuring out where their java home is:
/usr/libexec/java_home


Alberto Borsetta

unread,
Aug 11, 2015, 8:37:50 AM8/11/15
to FormScanner
Hi Rachel,

the first problem is in the version of the JVM. FormScanner uses some libraries that are not available in Java 1.6.x, so you have to download and install the Java 1.7 or Java 1.8 (recommended).
Anyway to start FormScanner you can try to go into 

/Users/rachelcole/Downloads/formscanner-0.11.2-bin 

directory then type the command

Rachels-MacBook-Air:formscanner-0.11.2-bin rachelcole$ /System/Library/Java/JavaVirtualMachines/1.x.0.jdk/Contents/Home/bin/java -jar lib/formscanner-main-0.11.2.jar

remeber to replace 1.x.0.jdk with the correct new java home directory.

Let me know if it's ok

Alberto

Rachel Cole

unread,
Aug 14, 2015, 6:38:46 AM8/14/15
to FormScanner
Thanks Alberto!

I installed Java 1.8, then tried to follow your next instruction, but this is what I got:
Rachels-MacBook-Air:~ rachelcole$ cd /Users/rachelcole/Downloads/formscanner-0.11.2-bin
Rachels-MacBook-Air:formscanner-0.11.2-bin rachelcole$ /System/Library/Java/JavaVirtualMachines/ jdk1.8.0_51.jdk /Contents/Home/bin/java -jar lib/formscanner-main-0.11.2.jar
-bash: Rachels-MacBook-Air:formscanner-0.11.2-bin: command not found

Please advise!

Alberto Borsetta

unread,
Mar 14, 2016, 5:06:39 AM3/14/16
to FormScanner
Reply all
Reply to author
Forward
0 new messages