About 14,600,000 results
Open links in new tab
  1. Setting JAVA_HOME environment variable in MS Windows

    Click the Environment Variables button. Under System Variables, click New. In the Variable Name field, enter either: JAVA_HOME if you installed the JDK (Java Development Kit) or JRE_HOME if you …

  2. What is an instance variable in Java? - Stack Overflow

    Jan 7, 2021 · My assignment is to make a program with an instance variable, a string, that should be input by the user. But I don't even know what an instance variable is. What is an instance variable? …

  3. Is Java "pass-by-reference" or "pass-by-value"? - Stack Overflow

    Sep 3, 2008 · In Java, it simply means a pointer, but in the context of "pass by reference" it means a handle to the original variable which was passed in. Java is pass by value.

  4. java - "No X11 DISPLAY variable" - what does it mean? - Stack Overflow

    java -Djava.awt.headless=true -jar gate-5.0-beta1-build3048-installer.jar Additional Note You can also try to set JAVA_TOOL_OPTIONS variable before running the .jar file such as for the app with GUI (1):

  5. Difference between this.variable and variable in Java

    May 7, 2014 · Difference between this.variable and variable in Java [duplicate] Asked 11 years, 7 months ago Modified 11 years, 7 months ago Viewed 23k times

  6. How to check type of variable in Java? - Stack Overflow

    Oct 22, 2010 · Java is a statically typed language, so the compiler does most of this checking for you. Once you declare a variable to be a certain type, the compiler will ensure that it is only ever assigned …

  7. How do you know a variable type in java? - Stack Overflow

    Let's say I declare a variable: String a = "test"; And I want to know what type it is, i.e., the output should be java.lang.String How do I do this?

  8. java - What is the difference between a variable, object, and reference ...

    Aug 14, 2015 · For example, if foo is a Person variable, foo.getAddress().getLength() would take the value of foo (a reference) and call getAddress() on the object that that reference refers to.

  9. How to set java_home on Windows 7? - Stack Overflow

    Apr 12, 2010 · Set the JAVA_HOME Variable Once you have the JDK installation path: Right-click the My Computer icon on your desktop and select Properties. Click the Advanced tab, then click the …

  10. Getting "Error: JAVA_HOME not found in your environment" when ...

    Dec 16, 2020 · The solution to this problem was setting both a user Path variable and a new system variable "JAVA_HOME" specifically to the address of the bin folder of my Java 11 installation. In my …