Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to see System properties without writing a program?

Is it possible to display/print values of system properties without installing any program.

I am thinking perhaps one of the programs in jre/bin might do it.

Situation is that there is a locked-down system which is reporting strange values for "os.name" and I cannot install a tool to run.

like image 593
OldCurmudgeon Avatar asked Apr 30 '14 11:04

OldCurmudgeon


2 Answers

You can print them all using the next command:

 java -XshowSettings:all -version
like image 168
Sergey Grinev Avatar answered Oct 11 '22 21:10

Sergey Grinev


JVisualVM is part of the jdk and can show the system properties of JVMs running on the same machine. If you want to see the values of no particular JVM you can just look at the system properties of JVisualVM’s own JVM.

With Freehand Circles

like image 45
Holger Avatar answered Oct 11 '22 21:10

Holger