Impossible. You should use System
class and it’s static methods or other classes. Otherwise you can access OS dependent native code, but this will require to use built in classes for JNI
.
More Related Contents:
- Use of “instanceof” in Java [duplicate]
- How to ensure order of processing in java8 streams?
- Named parameters in JDBC [duplicate]
- How to parse a JSON and turn its values into an Array?
- Firestore – how to structure a feed and follow system
- Java 7 underscore in numeric literals
- Adding Java Annotations at Runtime
- How to create my own Appender in log4j?
- How to use an array list in Java?
- How to read all of Inputstream in Server Socket JAVA
- How to unmap a file from memory mapped using FileChannel in java?
- String contains – ignore case [duplicate]
- final array in Java
- Create PDU for Android that works with SmsMessage.createFromPdu() (GSM 3gpp)
- Time complexity for java ArrayList
- Stax XMLStreamReader check for the next event without moving ahead
- calling a java method to draw graphics
- when to use toString() method
- Android: CountDownTimer skips last onTick()!
- Is it valid to compare a double with an int in java?
- How to save state when extending UIComponentBase
- Mockito – NullpointerException when stubbing Method
- Generating a globally unique identifier in Java
- How do I get a list of all HttpSession objects in a web application?
- How main thread created by Java
- How can I pause/sleep/wait in a java swing app?
- Change the angle/position of a drawing with a algorithm in Java
- Converting a String that contains decimal to Long
- Stopping a specific java thread
- Autowired Repository is Null in Custom Constraint Validator