Hmmm — since this is handled by the JVM, I delved into the OpenJDK VM source code a little bit, thinking that maybe what’s done by OpenJDK mimics what’s done by Java 6 and prior. It isn’t reassuring that there’s a way to do this other than on Windows.
On Windows, OpenJDK’s get_temp_directory()
function makes a Win32 API call to GetTempPath()
; this is how on Windows, Java reflects the value of the TMP
environment variable.
On Linux and Solaris, the same get_temp_directory()
functions return a static value of /tmp/
.
I don’t know if the actual JDK6 follows these exact conventions, but by the behavior on each of the listed platforms, it seems like they do.
Related Posts:
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- ssl_error_rx_record_too_long and Apache SSL [closed]
- Setting up enviromental variables in Windows 10 to use java and javac
- What is spark.driver.maxResultSize?
- How do I set environment variables from Java?
- Encrypt Password in Configuration Files?
- Encrypt Password in Configuration Files?
- “The system cannot find the file C:\ProgramData\Oracle\Java\javapath\java.exe”
- Add robots.txt to root
- Using wp-uploads instead of wp-content/uploads
- Cannot get pages or posts to display
- get_pages and number – no output; no errors;
- how do I disable new user registration email for specific admin user?
- Disable WordPress Redirect From terminal
- Move wordpress files to sub-folder
- www.website.com works but website.com redirects to website.com/index.html
- Copy wordpress settings to another blog
- Where do I add my own configuration needs and how do I access them?
- how to server over http and https with one installation
- command for checking Apache configuration
- Error unable to access jarfile C:\Jar
- In laymans terms, what does ‘static’ mean in Java? [duplicate]
- What’s the syntax for mod in java
- Sort an array in Java
- How to solve could not create the virtual machine error of Java Virtual Machine Launcher?
- Java String Split by “|”
- Could not reserve enough space for object heap
- Possible causes of Java VM EXCEPTION_ACCESS_VIOLATION?
- java.lang.ClassNotFoundException: com.mysql.jdbc.Driver in Eclipse
- “Char cannot be dereferenced” error
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- java.net.ConnectException: Connection refused
- What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it?
- Print ArrayList
- Unsupported major.minor version 52.0 [duplicate]
- What is a StringIndexOutOfBoundsException? How can I fix it?
- Exception in Application start method java.lang.reflect.InvocationTargetException
- Non-static variable cannot be referenced from a static context
- How to get an enum value from a string value in Java
- Round a double to 2 decimal places [duplicate]
- Returning Arrays in Java
- Why I am getting java.lang.AbstractMethodError errors?
- java.lang.ClassCastException
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘MyController’:
- Can I multiply strings in Java to repeat sequences?
- The @ symbol in java
- How can I remove punctuation from input text in Java?
- “insufficient memory for the Java Runtime Environment ” message in eclipse
- LocalDate to java.util.Date and vice versa simplest conversion?
- What is WEB-INF used for in a Java EE web application?
- What is a Question Mark “?” and Colon “:” Operator Used for?
- How to remove single character from a String
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- Is there a concurrent List in Java’s JDK?
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- Why am I still getting a cannot find Java SE Runtime Environment?
- How can I create an utility class?
- difference between ‘static int’ and ‘int’ in java
- How to use PrintWriter and File classes in Java?
- Error message “unreported exception java.io.IOException; must be caught or declared to be thrown”
- cannot make a static reference to the non-static field
- Double cannot be dereferenced?
- Java Enum return Int
- Java, Simplified check if int array contains int
- Converting a string to an integer on Android
- Error: Generic Array Creation
- How to center the text in a JLabel?
- What is the use of a private static variable in Java?
- Call a Class From another class
- JFrame in full screen Java
- What is method hiding in Java? Even the JavaDoc explanation is confusing
- Error: class X is public should be declared in a file named X.java
- How can I remove a substring from a given String?
- Java get String CompareTo as a comparator object
- What does super.paintComponent(g) do?
- Union or intersection of Java Sets
- Downloading a file from spring controllers
- Java Error Exception in thread “AWT-EventQueue-0” java.lang.StackOverflowError
- Write a program that reads an unspecified number of integers, determines pos, neg, total, average
- Parsing JSON string in Java
- java attempting to assign weaker access privilege error
- Getting a “no interface expected here” when I try to subclass ServiceConnection [duplicate]
- How to determine day of week by passing specific date?
- Python-like list comprehension in Java
- Can an int be null in Java?
- What’s the difference between HashSet and Set?
- Netbeans – Error: Could not find or load main class
- Java Swing setting JPanel Size
- how to use “tab space” while writing in text file
- Change Name of Import in Java, or import two classes with the same name
- set background color: Android
- Class JavaLaunchHelper is implemented in two places
- What’s the equivalent of Java’s Thread.sleep() in JavaScript?
- No Main class found in NetBeans
- Where are a theme’s options stored and can I export them to be imported into freshly installed themes?
- Broken image multisite
- Configure WordPress Installation autoinstalls via Softaculous in WHCMS [closed]
- Installed WordPress without configuration screen
- WP_SITEURL vs WP_HOME link output