yogthos / json-to-pdf

A Library for easily generating PDF documents given JSON markup
100 stars 20 forks source link

Cannot get gradle or maven to run after installing #15

Closed tomdoe420 closed 6 years ago

tomdoe420 commented 6 years ago

For Maven enviornment varibles ev

maven powershell

For Gradle This is weird now I'm getting this after installing Maven `PS C:\Gradle> gradle -v

ERROR: JAVA_HOME is set to an invalid directory: C:\maven

Please set the JAVA_HOME variable in your environment to match the location of your Java installation. PS C:\Gradle> java -version java version "10.0.1" 2018-04-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)`

I also ran iex (new-object net.webclient).downloadstring('https://get.scoop.sh') scoop install gradle this in cmd not powershell @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" But decided not to install it as I realized I just needed to run for gradle to be installed scoop install gradle

I don't know if this is what I need to do to run gradle, but I ran `❯ mkdir basic-demo ❯ cd basic-demo ❯ gradle init Starting a Gradle Daemon (subsequent builds will be faster)

BUILD SUCCESSFUL in 3s 2 actionable tasks: 2 executed` according to this tutorial

And that's where I got lost and confused and decided to try Maven instead. I think I would rather use Maven since it looks simpler, but after installing it both are not recognizing my Java directory. What do I do?

yogthos commented 6 years ago

The issue appears to be with your environment setup, and not any library specific functionality. Unfortunately, I don't use gradle myself so I can't really help troubleshoot this.