tony1223 / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

MacOSX 10.8.3 will resolve different osName and architecture #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run the sample program in mac OSX 10.8.3
2. Unable to link the dynamic library exception thrown.

What is the expected output? What do you see instead?
expected to have map to MacOS

What version of the product are you using? On what operating system?
MacOSX 10.8.3

Please provide any additional information below.

i have found that the resolved name in my Mac OSX 10.8.3 does not exist in the 
osName and architecture if then else loop.

i have to add this two different tags manually in src in order to run it 
successfully, hope this help someone.

Original issue reported on code.google.com by russell....@amoebaconsulting.net on 20 May 2013 at 2:39

Attachments:

GoogleCodeExporter commented 8 years ago
Can you please describe more detailed this issue. What do you mean that you 
have no resolved name ?

Can you please write here string returned by this code:

String osName = System.getProperty("os.name");
String architecture = System.getProperty("os.arch");

Thank you.

Original comment by scream3r.org@gmail.com on 20 May 2013 at 7:49

GoogleCodeExporter commented 8 years ago
As I see the OS name is "Darwin" and arch is "universal"...

Are you using OpenJDK ?

Original comment by scream3r.org@gmail.com on 20 May 2013 at 8:00

GoogleCodeExporter commented 8 years ago
i am not using open JDK, but i have manually downgraded the official OSX 10.8.3 
java version 1.7 to version 1.6

and now my java -version looks like:

java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06-451-11M4406)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01-451, mixed mode)

and here is how i downgrade my java:
For the JDK (and not the runtime), you'll need to log into developer.apple.com, 
search for java, and download the Java for OS X 2012-006 Developer Package. I 
just did this on my MacBook and now have javac 1.6.0_37.

cheers,
russell

Original comment by russell....@amoebaconsulting.net on 21 May 2013 at 1:06

GoogleCodeExporter commented 8 years ago
And on 1.6 you also have os.name "Darwin" and os.arch "universal" ?

Original comment by scream3r.org@gmail.com on 21 May 2013 at 4:33

GoogleCodeExporter commented 8 years ago
yes, on java 1.6, i have the Darwin and universal

Original comment by russell....@amoebaconsulting.net on 22 May 2013 at 1:36

GoogleCodeExporter commented 8 years ago
I have been using version jSSC 2.5.0 on MAC OS X 10.8.3,  MacBook Pro 9.1 (late 
2012), for a while an I haven't noticed any problem. All seems to work properly.
The OS Name returned by 'String osName = System.getProperty("os.name"); is ' 
"MAC OS X"

Maybe this is localized issue.

Finzi.

Original comment by robertof...@gmail.com on 24 May 2013 at 1:00

GoogleCodeExporter commented 8 years ago
Added support of os.name - "Darwin" and os.arch - "universal" in jSSC-2.6.0

Original comment by scream3r.org@gmail.com on 31 May 2013 at 6:47