PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
266 stars 208 forks source link

info on installing jing on Windows #664

Closed sklarjk closed 7 years ago

sklarjk commented 7 years ago

I am attempting to install jing on my Windows machine, and have a few bits of info for the Schema Tools Appendix in the Author's Guide. These are what I did to make it work. Not sure if every step was necessary.

I downloaded and installed the JDK. Following the jing-trang readme instructions for setting the JAVA_HOME variable did not seem to work Instead, I made the following changes to my Environmental Variables:

  1. Created a new system variable called JAVA_HOME and set its value to the jdk folder (not the bin folder it contains).
  2. Appended to the PATH variable value the string %JAVA_HOME%\bin;

At this point, things weren't working when I tried to run ant, so I downloaded Apache Ant separately because it didn't seem like I had it installed after installing the JDK. I appended the Apache Ant folder location to my PATH variable value.

I navigated to the jing-trang folder, and had to type ./ant and .ant test, not .\ant and.\ant test, as the jing-trang readme says to do on Windows

Things seemed to be going well, until I got this error message while testing:

BUILD FAILED
C:\Users\sklarjk\jing-trang\build.xml:48: The following error occurred while executing this line:
C:\Users\sklarjk\jing-trang\modbuild.xml:382: Java returned: 1

Welcome to my Windows nightmare. I don't even begin to know how to fix this or what went wrong, but I thought I'd let you know at least about the issues I was able to address.

rbeezer commented 7 years ago

Thanks, Jess. Java and Ant are two different/independent things.

Your slashes may be due to the Git Shell you are using that may be more Unix-like.

Do you have reason to believe your Java is working properly? Find some test "jar archive", a *.jar file you can run from the command-line (not in a browser).

On 08/08/2017 02:46 AM, Jessica K. Sklar wrote:

Welcome to my Windows nightmare.

I'm going to pass on that invitation. I've been there. ;-)

sklarjk commented 7 years ago

I guess it's good I decided to try installing Ant independently. The jing readme doesn't mention installing it, so that instruction might be something to add to the Author Guide too?

I'll try to test my Java later today.

Jess

On Aug 8, 2017 9:37 AM, "Rob Beezer" notifications@github.com wrote:

Thanks, Jess. Java and Ant are two different/independent things.

Your slashes may be due to the Git Shell you are using that may be more Unix-like.

Do you have reason to believe your Java is working properly? Find some test "jar archive", a *.jar file you can run from the command-line (not in a browser).

On 08/08/2017 02:46 AM, Jessica K. Sklar wrote:

Welcome to my Windows nightmare.

I'm going to pass on that invitation. I've been there. ;-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/664#issuecomment-321011655, or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbAXet4yX6F9MkO53IpY0m3M2l0MCks5sWI7AgaJpZM4Owfsp .

sklarjk commented 7 years ago

I tried a couple .jar files I found online, and when I entered java -jar filename.jar, I got the reply "no main manifest attribute, in filename.jar" both times. Maybe it's because they are non-executable jars? When I search for executable jar files to test with, I don't seem to find any easily, and I'm too far out of my league to try to create one myself.

On Tue, Aug 8, 2017 at 9:37 AM, Rob Beezer notifications@github.com wrote:

Thanks, Jess. Java and Ant are two different/independent things.

Your slashes may be due to the Git Shell you are using that may be more Unix-like.

Do you have reason to believe your Java is working properly? Find some test "jar archive", a *.jar file you can run from the command-line (not in a browser).

On 08/08/2017 02:46 AM, Jessica K. Sklar wrote:

Welcome to my Windows nightmare.

I'm going to pass on that invitation. I've been there. ;-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/664#issuecomment-321011655, or mute the thread https://github.com/notifications/unsubscribe-auth/AcvBbAXet4yX6F9MkO53IpY0m3M2l0MCks5sWI7AgaJpZM4Owfsp .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University

rbeezer commented 7 years ago

Try

java -jar test.jar

with attached. Let me know if attachment does not survive.

On 08/08/2017 10:05 AM, Jessica K. Sklar wrote:

I tried a couple .jar files I found online, and when I entered java -jar filename.jar, I got the reply "no main manifest attribute, in filename.jar" both times. Maybe it's because they are non-executable jars? When I search for executable jar files to test with, I don't seem to find any easily, and I'm too far out of my league to try to create one myself.

On Tue, Aug 8, 2017 at 9:37 AM, Rob Beezer notifications@github.com wrote:

Thanks, Jess. Java and Ant are two different/independent things.

Your slashes may be due to the Git Shell you are using that may be more Unix-like.

Do you have reason to believe your Java is working properly? Find some test "jar archive", a *.jar file you can run from the command-line (not in a browser).

On 08/08/2017 02:46 AM, Jessica K. Sklar wrote:

Welcome to my Windows nightmare.

I'm going to pass on that invitation. I've been there. ;-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/664#issuecomment-321011655, or mute the thread

https://github.com/notifications/unsubscribe-auth/AcvBbAXet4yX6F9MkO53IpY0m3M2l0MCks5sWI7AgaJpZM4Owfsp .

-- Dr. Jessica Sklar Chair of Mathematics Pacific Lutheran University

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rbeezer/mathbook/issues/664#issuecomment-321019445, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy2cql_6flvFDqbHLrUdvugmm-ygdc0ks5sWJVGgaJpZM4Owfsp.

sklarjk commented 7 years ago

Attachment does not appear to have survived.

rbeezer commented 7 years ago

Jess got this working, with improvements now at 174ac5c0, so closing.