From 6463f7ade226be6fc9f01ce0d83aa10fac052ff4 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 27 Feb 2015 01:32:28 -0500 Subject: [PATCH] instructions for Windows, and tweak to run-win.bat Signed-off-by: Jason Etheridge --- README.win | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++ run-win.bat | 4 ++-- 2 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 README.win diff --git a/README.win b/README.win new file mode 100644 index 0000000000..c865791c05 --- /dev/null +++ b/README.win @@ -0,0 +1,59 @@ +Hatch - Java Print / Storage / Etc Service + +** ROUGH SETUP NOTES ** + +Install Hatch on your desktop -- Windows edition: + +If you're reading this online, first download hatch to your desktop. + +The canonical location for this project is: +http://git.evergreen-ils.org/?p=working/random.git;a=shortlog;h=refs/heads/collab/berick/hatch2 + +But a convenient mirror and download link is this: +https://github.com/phasefx/random/archive/hatch.zip + +Unzip the file wherever you'd like to install the application, such as in C:\Program Files\ + +Then go to http://download.eclipse.org/jetty/ + +Download the latest stable-9 .zip version into the same directory as this README file. + +Unzip and rename the folder to "jetty". + +Then go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html + +Download the Development Kit .exe for your version of Windows. + +Install it. + +In the same directory as this README file, create a subdirectory named "lib". + +Then go to http://mvnrepository.com/artifact/org.eclipse.jetty/jetty-util-ajax + +Download the latest 9.2.x .jar file into the "lib" directory. + +Edit the run-win.bat file, and, if needed, change the JAVA_HOME variable to the location where you installed the Java Development Kit. In my case, I changed the line: + +SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_20" + +to + +SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_31" + +Then open a Command window and cd into the same directory as this README file. One easy way to do this is to click into the address of the bar of window displaying the directory, typing "cmd" and pressing enter. + +Then enter: +run-win.bat + +Choose Allow for any Firewall/Security prompt. + +Then in a browser go to https://localhost:8443/ in Chrome and click through the security warning. +(In my case, I clicked on the link "Advanced" and then "Proceed to localhost (unsafe)") + +You should expect a 404 Not Found page. + +Then open the browser client. + +Set "This workstation uses a remote print / storage service ("Hatch")?" under Admin -> Workstation + +Optionally configure / test printing diff --git a/run-win.bat b/run-win.bat index 9c24b4c62e..59ac9c5aa6 100644 --- a/run-win.bat +++ b/run-win.bat @@ -1,5 +1,5 @@ -SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_20" -SET JETTY_HOME=jetty-distribution-9.1.4.v20140401 +SET JAVA_HOME="C:\Program Files\Java\jdk1.8.0_31" +SET JETTY_HOME=jetty %JAVA_HOME%\bin\javac -cp "%JETTY_HOME%\lib\*;%JETTY_HOME%\lib\websocket\*;lib\*" -Xdiags:verbose -d lib src\org\evergreen_ils\hatch\*.java -- 2.43.2