Click here to Skip to main content
15,894,291 members
Home / Discussions / Java
   

Java

 
AnswerRe: Execute commands in putty prompt through java Pin
Nagy Vilmos10-Aug-11 5:25
professionalNagy Vilmos10-Aug-11 5:25 
AnswerRe: Execute commands in putty prompt through java Pin
David Skelly10-Aug-11 22:24
David Skelly10-Aug-11 22:24 
QuestionHow to use jFreechart in struts2 Pin
cmaheshwari169-Aug-11 19:24
cmaheshwari169-Aug-11 19:24 
AnswerRe: How to use jFreechart in struts2 Pin
cmaheshwari1611-Aug-11 0:01
cmaheshwari1611-Aug-11 0:01 
QuestionCheck if a program is installed on Linux or Mac Pin
CodeGust8-Aug-11 16:59
CodeGust8-Aug-11 16:59 
AnswerRe: Check if a program is installed on Linux or Mac Pin
Richard MacCutchan8-Aug-11 21:29
mveRichard MacCutchan8-Aug-11 21:29 
AnswerRe: Check if a program is installed on Linux or Mac Pin
jschell10-Aug-11 9:48
jschell10-Aug-11 9:48 
GeneralRe: Check if a program is installed on Linux or Mac Pin
David Skelly10-Aug-11 22:16
David Skelly10-Aug-11 22:16 
There are three system properties which give you the information:

os.name
os.version
os.arch


The problem is that there is no standard defined list: different JVM implementations can return different values for these properties as long as they are consistent for the same JVM on the same operating system. Not only that, prior to Java 1.6 u14, the Sun hotspot JVM reported Windows 7 as being Windows Vista version 6.1 and then subsequent releases changed to Windows 7 version 6.1, so anyone who relied on this and upgraded from u14 to a later release suddenly found their code was behaving differently after a so-called "minor" upgrade.

So I would treat these system properties with a certain amount of caution. It might be good enough, though, if all you need to know is "it's not Windows".
GeneralRe: Check if a program is installed on Linux or Mac Pin
jschell11-Aug-11 12:53
jschell11-Aug-11 12:53 
GeneralRe: Check if a program is installed on Linux or Mac Pin
David Skelly11-Aug-11 22:07
David Skelly11-Aug-11 22:07 
Questionajax popup Pin
sundarkarthi5-Aug-11 2:19
sundarkarthi5-Aug-11 2:19 
AnswerRe: ajax popup Pin
TorstenH.5-Aug-11 2:51
TorstenH.5-Aug-11 2:51 
Questionare there any functions in java like ispunct, isspace in C_? Pin
quartaela4-Aug-11 1:54
quartaela4-Aug-11 1:54 
AnswerRe: are there any functions in java like ispunct, isspace in C_? Pin
Richard MacCutchan4-Aug-11 2:48
mveRichard MacCutchan4-Aug-11 2:48 
GeneralRe: are there any functions in java like ispunct, isspace in C_? Pin
quartaela4-Aug-11 2:57
quartaela4-Aug-11 2:57 
GeneralRe: are there any functions in java like ispunct, isspace in C_? Pin
David Skelly4-Aug-11 4:53
David Skelly4-Aug-11 4:53 
GeneralRe: are there any functions in java like ispunct, isspace in C_? Pin
quartaela4-Aug-11 5:37
quartaela4-Aug-11 5:37 
GeneralRe: are there any functions in java like ispunct, isspace in C_? Pin
Richard MacCutchan4-Aug-11 7:12
mveRichard MacCutchan4-Aug-11 7:12 
AnswerRe: are there any functions in java like ispunct, isspace in C_? Pin
jschell4-Aug-11 8:24
jschell4-Aug-11 8:24 
GeneralRe: are there any functions in java like ispunct, isspace in C_? Pin
quartaela11-Aug-11 5:16
quartaela11-Aug-11 5:16 
AnswerRe: are there any functions in java like ispunct, isspace in C_? Pin
ramu1436-Aug-11 0:02
ramu1436-Aug-11 0:02 
QuestionHow to pass data from applet to web page client code? Pin
CodeGust1-Aug-11 10:57
CodeGust1-Aug-11 10:57 
AnswerRe: How to pass data from applet to web page client code? Pin
twseitex3-Aug-11 10:45
twseitex3-Aug-11 10:45 
GeneralRe: How to pass data from applet to web page client code? Pin
CodeGust3-Aug-11 18:12
CodeGust3-Aug-11 18:12 
GeneralRe: How to pass data from applet to web page client code? Pin
Gerben Jongerius4-Aug-11 0:03
Gerben Jongerius4-Aug-11 0:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.