bogdanc Active Member Licensed User Longtime User Feb 25, 2016 #1 How to read by B4J PC user name or PC station environment variables?
eurojam Well-Known Member Licensed User Longtime User Feb 25, 2016 #2 Code: Log(GetSystemProperty("user.name", "default")) Log(GetSystemProperty("os.name", "default")) Log(GetSystemProperty("java.version", "default")) see: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html Upvote 0
Code: Log(GetSystemProperty("user.name", "default")) Log(GetSystemProperty("os.name", "default")) Log(GetSystemProperty("java.version", "default")) see: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
bogdanc Active Member Licensed User Longtime User Feb 25, 2016 #3 eurojam said: Code: Log(GetSystemProperty("user.name", "default")) Log(GetSystemProperty("os.name", "default")) Log(GetSystemProperty("java.version", "default")) see: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html Click to expand... Thank You! I need also get a PC NAME. PC is connected to network all PC's have a unique names in network. So I would like to read this. Upvote 0
eurojam said: Code: Log(GetSystemProperty("user.name", "default")) Log(GetSystemProperty("os.name", "default")) Log(GetSystemProperty("java.version", "default")) see: https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html Click to expand... Thank You! I need also get a PC NAME. PC is connected to network all PC's have a unique names in network. So I would like to read this.
eurojam Well-Known Member Licensed User Longtime User Feb 25, 2016 #4 I think, that is more complex see this thread: https://www.b4x.com/android/forum/threads/how-does-one-get-the-host-name.8754/ Upvote 0
I think, that is more complex see this thread: https://www.b4x.com/android/forum/threads/how-does-one-get-the-host-name.8754/
giga Well-Known Member Licensed User Longtime User Feb 25, 2016 #5 You could use this to get the pc name https://www.b4x.com/android/forum/threads/jnettools.52723/ Upvote 0
R Roycefer Well-Known Member Licensed User Longtime User Feb 25, 2016 #6 The jAWTRobot library exposes this info. Upvote 0
bogdanc Active Member Licensed User Longtime User Feb 26, 2016 #7 Roycefer said: The jAWTRobot library exposes this info. Click to expand... Thsnk You! Works for me on win7 but not on win10 Upvote 0
Roycefer said: The jAWTRobot library exposes this info. Click to expand... Thsnk You! Works for me on win7 but not on win10
R Roycefer Well-Known Member Licensed User Longtime User Feb 26, 2016 #8 What happens on Windows 10? robot.SystemHostNameAndIP() should print a stack trace to the logs if it encounters an Exception. Can you post that stack trace? Upvote 0
What happens on Windows 10? robot.SystemHostNameAndIP() should print a stack trace to the logs if it encounters an Exception. Can you post that stack trace?
bogdanc Active Member Licensed User Longtime User Feb 26, 2016 #9 Roycefer said: What happens on Windows 10? robot.SystemHostNameAndIP() should print a stack trace to the logs if it encounters an Exception. Can you post that stack trace? Click to expand... View attachment 41955 Upvote 0
Roycefer said: What happens on Windows 10? robot.SystemHostNameAndIP() should print a stack trace to the logs if it encounters an Exception. Can you post that stack trace? Click to expand... View attachment 41955
R Roycefer Well-Known Member Licensed User Longtime User Feb 27, 2016 #10 What Java version are using in B4J on that machine? Which version of the jAWTRobot library are you using? Upvote 0
What Java version are using in B4J on that machine? Which version of the jAWTRobot library are you using?
bogdanc Active Member Licensed User Longtime User Feb 27, 2016 #11 Roycefer said: What Java version are using in B4J on that machine? Which version of the jAWTRobot library are you using? Click to expand... HI thanks for replay. my java version: jre1.8.0_71 and I tried libraries jAWTRobot 1.45, 1.43,1.,40 Fixed according to this topic solution: http://stackoverflow.com/questions/10382929/how-to-fix-unsupported-major-minor-version-51-0-error I used a java jdk: 1.8... instated of 1.7... I will verify that solution in my other PC win 7 on monday. Last edited: Feb 27, 2016 Upvote 0
Roycefer said: What Java version are using in B4J on that machine? Which version of the jAWTRobot library are you using? Click to expand... HI thanks for replay. my java version: jre1.8.0_71 and I tried libraries jAWTRobot 1.45, 1.43,1.,40 Fixed according to this topic solution: http://stackoverflow.com/questions/10382929/how-to-fix-unsupported-major-minor-version-51-0-error I used a java jdk: 1.8... instated of 1.7... I will verify that solution in my other PC win 7 on monday.