Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Problem between mac os x and Java 8
Problem between mac os x and Java 8 [message #1775250] Thu, 26 October 2017 18:50 Go to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
Hi,

My java program works on linux and windows well. However, it hanged at the middle of running program when I run it on mac os x.
I increase the size of xmx and xms, but it doesn't effect.

any comment is appreciated.


Member of MDSE Research Group
http://mdse.ui.ac.ir
Re: Problem between mac os x and Java 8 [message #1775252 is a reply to message #1775250] Thu, 26 October 2017 20:43 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
We know absolutely nothing about your program. How could we possibility guess why it might behave differently on the Mac. This is what debuggers are for. Run it under debug control and if it handles, pause the process and see what it's doing at that point in time.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problem between mac os x and Java 8 [message #1775275 is a reply to message #1775252] Fri, 27 October 2017 06:44 Go to previous messageGo to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
This is the error log. I also enter "ulimit -c unlimited" command in terminal, but it doesn't effect.

Member of MDSE Research Group
http://mdse.ui.ac.ir
Re: Problem between mac os x and Java 8 [message #1775279 is a reply to message #1775275] Fri, 27 October 2017 07:25 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
If it's a core dump of the JVM, I'd try to get a new version of the JVM.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problem between mac os x and Java 8 [message #1775283 is a reply to message #1775279] Fri, 27 October 2017 08:03 Go to previous messageGo to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
I also updated my java, but it didn't take effect.

Member of MDSE Research Group
http://mdse.ui.ac.ir
Re: Problem between mac os x and Java 8 [message #1775285 is a reply to message #1775283] Fri, 27 October 2017 08:18 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Use a debugger to find out where it does wrong, or a tool such as Visual VM to inspect the dumps.

If you can't do this, there is always printf debugging to print out relevant information just before and (by omission) just after the hang. You have a Linux/Windows version to use as an oracle. Concentrate on system sensitivities such as memory, environment, file name spelling, line endings.

Regards

Ed Willink
Re: Problem between mac os x and Java 8 [message #1775303 is a reply to message #1775285] Fri, 27 October 2017 11:57 Go to previous messageGo to next message
Banafsheh Azizi is currently offline Banafsheh AziziFriend
Messages: 328
Registered: July 2016
Senior Member
According to error log, the eclipse is crashed because of "libswt-cocoa-4530.jnilib". Do you know what should I do?
I have an "OS X EI captain", I downloaded eclipse mars from epsilon site (I want to use epsilon 1.3). Does higher version of eclipse solve my problem? Which another "eclipse modeling" can I download? I see https://www.eclipse.org/modeling/downloads/ but I cannot find the suitable version of it for my OS, also I see other platforms link.


Member of MDSE Research Group
http://mdse.ui.ac.ir
Re: Problem between mac os x and Java 8 [message #1775305 is a reply to message #1775303] Fri, 27 October 2017 12:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
You should install Oxygen, the modeling package if you want that. You should be able to install all other things you want into that.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problem between mac os x and Java 8 [message #1775306 is a reply to message #1775305] Fri, 27 October 2017 12:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
And to be explicit, you should get it from https://www.eclipse.org/downloads/

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Problem between mac os x and Java 8 [message #1775307 is a reply to message #1775306] Fri, 27 October 2017 12:34 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Epsilon is available from https://www.eclipse.org/epsilon/download/ It provides a convenience download for MACOS, but I doubt that there is anything in Epsilon that is more than accidentally platform sensitive. Just install http://www.eclipse.org/downloads/download.php?file=/epsilon/updates/site.zip on a respectable modeling installation.

Regards

Ed Willink
Re: Problem between mac os x and Java 8 [message #1776062 is a reply to message #1775307] Fri, 10 November 2017 09:04 Go to previous message
Eclipse UserFriend
your java command points to the stub binary which uses current version configured

$ ls -la /usr/bin/java
lrwxr-xr-x 1 root wheel 74 Feb 5 2015 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
all you need is to update your JAVA_HOME(I've added that to my ~/.profile):

export JAVA_HOME=$(/usr/libexec/java_home -v 1.8)
Previous Topic:Error while running Eclipse for Java Developers for the first time
Next Topic:Teacher and student has problem with debug running when he hits plays
Goto Forum:
  


Current Time: Fri Apr 19 00:56:09 GMT 2024

Powered by FUDForum. Page generated in 0.02869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top