Netbeans 7.2 based on JDK7 on Mac OS Mountain Lion crashes frequently - netbeans

I am using the latest version of Netbeans (7.2) on a macbook pro with Mountain Lion clean installation, and it gives me frequent crashes.Is it only me , or is it a general problem and who is responsible for it mountain lion, netbeans or jdk7?
(The default java version for this machine is java 7 - you can set it in System Preferences->Java)

I would say Java 7. I tried it briefly (on Lion) and it had severe issues. e.g. Spurious calls to setValueAt with JTables in Java 7 on OS X Lion?
I've been running Netbeans with Java 6 on Lion just fine.
IIRC, netbeans will log problems (exception etc...) you might want to look in your ~/.netbeans directory (exact name may vary) for things to submit to either Netbeans or as Java bugs to help.

Related

Eclipse crashes on MacBook M1

I've recently moved from Mac with Intel to Mac with M1 and I have to use Eclipse, but it doesn't work on M1. What happens is that Eclipse opens up, asks for directory for workspace, main windows shows up. In bottom right corner it says, "deferred early start" and after that "setup check". This check goes to 20% and then Eclipse crashes. I tried to reinstall it, but same result.
There are two ways to run eclipse on apple M1.
Running eclipse for intel architecture using rosetta translator(requires jdk as well as eclipse to be of x86_64 architecture)
Running eclipse built for apple M1 with a jvm for aarch64
In the first case you can use 4.19 build. In general eclipse should work, but there can be some problems
In the second case there is a build available from 4.20 onwards at eclipse-SDK-4.20-macosx-cocoa-aarch64.dmg. This will require a jvm for apple M1.
With JEP 391: macOS/AArch64 Port targeted for Java 17, you should be able download jvm for apple m1

Eclipse process sleep on Mac OS X El Capitan beta 3 with JDK 8

I upgraded my system to OS X El Capitan beta 3 and installed JDK 8 downloaded from Oracle. However, other applications that use JDK is run correctly, only Eclipse Mars stuck on the logo. I checked that stats of Eclipse process. It showed that Eclipse process is sleeping.
Is there any methods to make Eclipse run correctly? Thanks for any helpful answer.
This has been reported to Eclipse as high priority bug 472259. Currently there is no solution.
This is mentioned in release notes for OS X El Capitan DP3 [1]
Some versions of Eclipse may hang during use.
See [2] Apple Dev Forums for workaround by reverting back to DP2
[1] https://developer.apple.com/library/prerelease/mac/releasenotes/General/rn-osx-10.11/
[2] https://forums.developer.apple.com/thread/8776
This bug its already resolved in Beta 4.
According to reports on https://forums.developer.apple.com/thread/8776#30240 the 4th beta release (public beta 2) fixes the problem. I'm having the same issue but I'm not able to upgrade and test it myself since I'm away from my backup drive for the next few days and I'm not upgrading without that restore point. I'll try to update this with more info once I've tried the upgrade myself.
Update: Just upgraded and Eclipse loads without any problems.
there is a makefile that you can use on project to compile and fix this problem.
https://github.com/mnott/javamake

cx_freeze on MAC 10.9 Python 2.7.6 (32/64 bit)

I have developed an app on a Window PC using Python and wxPython. For the several weeks I have been trying to migrate it to a MAC mini running 10.9, Python 2.7.6 (32/64 bit) using the Eclipse IDE with PyDev. I was NOT a MAC user prior to about three weeks ago when I purchased a used Mac mini and started working on it. Due to the fact that wxPython is a 32-bit library only I am running Python in 32-bit mode out of Eclipse - this has worked well until now I am ready to attempt and produce a stand alone app via cx_freeze and I am hitting a problem that cx_freeze is building the bundle using the 64-bit Python and it will not work with my 32-bit wx_Python library.
My question is what can I do at this point in time? Obviously, if I had been smart I would have installed the 32-bit ONLY version of Python 2.7.6 (hind sight you know), but I did not. I have gone through all the write to /Library/Preferences/com.apple.python.preference file and setting environment variables only to learn that that does not apply except to Apple installs. One solution would be to install the 32-bit ONLY Python - scared I will mess my current development environment up so that is why I am asking here for help. Also, there may be a setting in cx_freeze to accomplish this too. Any help to a "green horn" MAC person would be greatly appreciated.

install4j error on Mac OS X

I am using install4j to create a Window and Mac OSX installer for a new version of my software. The only thing that has changed since my last distribution is my application. I have not changed any of the launcher or media file options in install4j. After building the installer, the Windows installer runs fine. The Mac OSX installer gives an error message on some machines. The message is "You need at least a 1.7 Java Virtual Machine to install..." However, a user reported that they already have 1.7 installed but still gets the error message. Does anyone know what is causing this error? Does install4j require 1.7 to run on a Mac?
Thanks
Edit the media file of your Mac OS X installer and go to the "JRE" step. If "Installed OpenJDK JRE" is selected, then Java 7 and higher is required. The above message indicates that no such JRE was installed. Also, make sure to update to the latest version of install4j.

How to build native app bundles for Windows, Linux & Mac in a single build?

I am running my build on Windows 8 O.S. , 64 bit machine. I have JavaFx2.0 and Java 1.7.0_09 installed on my system. I am able to build a 64 bit window executable that launches my JavaFx application as a self-contained Javafx application.
Now I want to deliver native app bundles on Windows, Linux and Mac without build my project on all three platforms i.e I would like to achieve these set of bundles in a single build that I suppose to run on by Windows 8 O.S. 64 bit machine.
I am also okay if I can do it by distributing a single Application JAR file as .zip for MAC and Linux. But what I want is that JAR should work on there respective platform.
When I used to run a single application Jar on MAC using command
java -jar application.jar
It always shows a dialog "The application require a newer version of Java Run-time" with download link. Even I have downloaded and successfully installed it on my MAC machine but it still shows me the same window.
I don't want the users to experience such difficulties while running my JavaFX application on MAC and Linux.
What I need to ship more with the Application JAR so the users can run my JavaFx application on MAC and Linux without any hassle?
I guess you are making the JavaFX Solution in a 64bit machine and on the other hand you must be having all the SDK and runtime for 64bit version. The problem is that the application made using 64bit version of SKD would required 64 bit OS to render itself. So the bottom line is, is yout mac and linux PC have 64bit version of OS and JavaFX Runtime as well as Java7.X all 64 bit? If not then you must update your runtime to 64bit version or make your application in a 32bit version of SDK. One quick suggestion. If your mac or linux is 64bit(I dont have much idea about mac) then just install a browser i.e. 64bit version and runtimes and try out. I was having the same problem and that got fixed. Let me know if my answer caused any confusion.