Skip to main content



      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 14:50 Go to next message
Eclipse UserFriend
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.
Re: Problem between mac os x and Java 8 [message #1775252 is a reply to message #1775250] Thu, 26 October 2017 16:43 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Problem between mac os x and Java 8 [message #1775275 is a reply to message #1775252] Fri, 27 October 2017 02:44 Go to previous messageGo to next message
Eclipse UserFriend
This is the error log. I also enter "ulimit -c unlimited" command in terminal, but it doesn't effect.
Re: Problem between mac os x and Java 8 [message #1775279 is a reply to message #1775275] Fri, 27 October 2017 03:25 Go to previous messageGo to next message
Eclipse UserFriend
If it's a core dump of the JVM, I'd try to get a new version of the JVM.
Re: Problem between mac os x and Java 8 [message #1775283 is a reply to message #1775279] Fri, 27 October 2017 04:03 Go to previous messageGo to next message
Eclipse UserFriend
I also updated my java, but it didn't take effect.
Re: Problem between mac os x and Java 8 [message #1775285 is a reply to message #1775283] Fri, 27 October 2017 04:18 Go to previous messageGo to next message
Eclipse UserFriend
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 07:57 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Problem between mac os x and Java 8 [message #1775305 is a reply to message #1775303] Fri, 27 October 2017 08:23 Go to previous messageGo to next message
Eclipse UserFriend
You should install Oxygen, the modeling package if you want that. You should be able to install all other things you want into that.
Re: Problem between mac os x and Java 8 [message #1775306 is a reply to message #1775305] Fri, 27 October 2017 08:24 Go to previous messageGo to next message
Eclipse UserFriend
And to be explicit, you should get it from https://www.eclipse.org/downloads/
Re: Problem between mac os x and Java 8 [message #1775307 is a reply to message #1775306] Fri, 27 October 2017 08:34 Go to previous messageGo to next message
Eclipse UserFriend
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 04: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: Sun Jun 22 14:12:40 EDT 2025

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

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

Back to the top