Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for java_home (0.17 sec)

  1. mvnw

      Darwin*) darwin=true
        # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
        # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
        if [ -z "$JAVA_HOME" ]; then
          if [ -x "/usr/libexec/java_home" ]; then
            JAVA_HOME="$(/usr/libexec/java_home)"; export JAVA_HOME
          else
            JAVA_HOME="/Library/Java/Home"; export JAVA_HOME
          fi
        fi
        ;;
    esac
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 16 20:48:20 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. .teamcity/mvnw

          if $darwin ; then
            javaHome="`dirname \"$javaExecutable\"`"
            javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
          else
            javaExecutable="`readlink -f \"$javaExecutable\"`"
          fi
          javaHome="`dirname \"$javaExecutable\"`"
          javaHome=`expr "$javaHome" : '\(.*\)/bin'`
          JAVA_HOME="$javaHome"
          export JAVA_HOME
        fi
      fi
    fi
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 26 01:48:39 UTC 2020
    - 9.8K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/execution/commandline/CommandLineIntegrationTest.groovy

            when:
            String javaHome = Jvm.current().javaHome
            String expectedJavaHome = "-PexpectedJavaHome=${javaHome}"
    
            then:
            // Handle JAVA_HOME specified
            executer.withJavaHome(javaHome).withArguments(expectedJavaHome).withTasks('checkJavaHome').run()
    
            // Handle JAVA_HOME with trailing separator
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:22 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt

    if [ -n "\$JAVA_HOME" ] ; then
        if [ -x "\$JAVA_HOME/jre/sh/java" ] ; then
            # IBM's JDK on AIX uses strange locations for the executables
            JAVACMD=\$JAVA_HOME/jre/sh/java
        else
            JAVACMD=\$JAVA_HOME/bin/java
        fi
        if [ ! -x "\$JAVACMD" ] ; then
            die "ERROR: JAVA_HOME is set to an invalid directory: \$JAVA_HOME
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 13:43:33 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/releases/troubleshooting.adoc

    === JAVA_HOME is set to an invalid directory
    
    If you get an error like:
    
    ----
    ERROR: JAVA_HOME is set to an invalid directory
    ----
    
    Set the JAVA_HOME variable in your environment to match the location of your Java installation:
    
    ----
    $ export JAVA_HOME=/Users/user/Library/Java/JavaVirtualMachines/corretto-11.0.22/Contents/Home
    $ echo $JAVA_HOME
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Apr 06 02:22:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/build_environment.adoc

    Gradle provides a number of environment variables, which are listed below.
    
    === Setting environment variables
    
    Let's take an example that sets the $JAVA_HOME environment variable:
    
    [source,text]
    ----
    $ set JAVA_HOME=C:\Path\To\Your\Java\Home   // Windows
    $ export JAVA_HOME=/path/to/your/java/home  // Mac/Linux
    ----
    
    You can access environment variables as properties in the build script using the `System.getenv()` method:
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/NoDaemonGradleExecuter.java

            }
            final String value = toJvmArgsString(invocation.launcherJvmArgs);
            environmentVars.put(jvmOptsEnvVar, value);
    
            // Always set JAVA_HOME, so the daemon process runs on the configured JVM
            environmentVars.put("JAVA_HOME", getJavaHome());
        }
    
        @Override
        protected List<String> getAllArgs() {
            List<String> args = new ArrayList<>(super.getAllArgs());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 05:38:50 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/releases/installation.adoc

    ----
    ❯ echo $PATH
    /opt/homebrew/opt/openjdk@17/bin
    ----
    
    You can also set the `JAVA_HOME` environment variable to point to a specific JDK installation directory.
    This is especially useful when multiple JDKs are installed:
    
    ----
    ❯ echo %JAVA_HOME%
    C:\Program Files\Java\jdk1.7.0_80
    ----
    
    ----
    ❯ echo $JAVA_HOME
    /Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home
    ----
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 18:33:11 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-application/src/integTest/groovy/org/gradle/api/plugins/ApplicationPluginIntegrationTest.groovy

        }
    
        @Requires(UnitTestPreconditions.UnixDerivative)
        def "can execute generated Unix start script using JAVA_HOME with spaces"() {
            given:
            def testJavaHome = file("javahome/java home with spaces")
            testJavaHome.createLink(Jvm.current().javaHome)
    
            when:
            succeeds('installDist')
    
            then:
            file('build/install/sample').exists()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/common/extensions.kt

            param("env.BOT_TEAMCITY_GITHUB_TOKEN", "%github.bot-teamcity.token%")
            param("env.GRADLE_CACHE_REMOTE_SERVER", "%gradle.cache.remote.server%")
    
            param("env.JAVA_HOME", javaHome(buildJvm, os, arch))
            param("env.GRADLE_OPTS", "-Xmx1536m")
            param("env.ANDROID_HOME", os.androidHome)
            param("env.ANDROID_SDK_ROOT", os.androidHome)
            param("env.GRADLE_INTERNAL_REPO_URL", "%gradle.internal.repository.url%")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 03:39:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
Back to top