Determining on which system is program running

D

DeoXMAN

Java is platform independent, but some task are platform dependent
(for example shuttind down, as discussed in messages before). So is
there a way to know on which platform program is runinng? whether it
is windows, linux, or mac?
 
D

Daniel Pitts

Java is platform independent, but some task are platform dependent
(for example shuttind down, as discussed in messages before). So is
there a way to know on which platform program is runinng? whether it
is windows, linux, or mac?

System.getProperties()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top