BlackBerry Java SDK < 6.0.0 on Mac - macos

I have a brand new installation of Eclipse with BlackBerry Plugin for mac.
The Java SDK 6.0.0 is already installed, the only thing now is that I want to compile for minor version, like 4.5.0
I have tried :
Help -> Install New Sotftware... -> http://www.blackberry.com/go/eclipseUpdate/3.5/java
But it gives me an error.
"No repository found at http://www.blackberry.com/go/eclipseUpdate/3.5/java"
anyone had the same issue ?
It seems that it worked for some people.

I don't know if what you're trying is possible, I also couldn't get it to work. According to the RIM site, they don't support building apps on OS X for non-6.0 right now, and based on the workaround below, I think it might not be as simple as installing the packages from the Eclipse installer.
However, I found a great post on building BlackBerry apps on OS X, and since then I've been working on my MBP, and can't say I would turn back. Here's a summary of how I got it set up:
Install Eclipse (I am using 3.5, but it may not matter) and VirtualBox.
Create a new VM and install Windows (tested with XP SP3). This
would probably work using VMWare Fusion or Parallels too.
On the VM, install Java 6 and the version of the BlackBerry JDE
that matches your target OS.
In OS X, download
bb-ant-tools.jar and move it
to ~/.ant/lib.
Get an OS X version of preverify, which is included in the Sun
J2ME SDK 3.0 for OS
X.
Install it and either copy
/Applications/Java_ME_SDK_3.0.app/Contents/Resources/bin/preverify to
somewhere in your PATH or just add that directory to your PATH.
If you don't have one already, create the file ~/.MacOSX/environment.plist.
Edit this file with /Developer/Applications/Utilities/Property\
List\ Editor.app/.
Create a new variable called PATH and set it to the value of your
shell PATH, making sure that the directory containing preverify is
included. This allows Ant, via Eclipse, to see the preverify command
when Eclipse is launched from Eclipse.app and not from the command
line. See this
for more details.
In OS X, create a directory for the BlackBerry components
(something like "bb-components").
From the BlackBerry JDE installation in the VM, copy both "lib" and
"bin" directories to this directory.
In Eclipse, create a new Java project.
Choose "Use an execution environment JRE:" and select Java 1.3.
Right click the project in the "Package Explorer" and select "Build
Path" and then "Configure Build Path."
Add bb-components/lib/net_rim_api.jar as an "External JAR."
Remove the "JRE System Library." This is so that only BlackBerry
supported classes will be offered via autocompletion etc.
Copy the attached minimal
build.xml into the project.
Edit the build.xml to suit your environment (specifically the
jde.home property) and anything else you want to customise.
Right click and select "Run as" and then "Ant Build" (the first
one). You can also build using Ant on the command line, of course.
These were adapted from https://spin.atomicobject.com/2010/11/04/our-blackberry-development-environment
Good luck!

I develop all of my BB apps on Mac hardware but I'm running Windows through Parallels. Not better than having native Mac tools, but it works!

Related

Installation fails when trying to install Unity AndroidPlayer on macOS

I'm having trouble installing the latest version of Unity's AndroidPlayer (v5.6.1f1) on my macOS MacBook Pro (macOS version 10.12.5)
I already have Unity installed and working, but all I'm trying to do is add ability to run my games on an Android device (I have Android SDK configured and working from my previous Android App development)
I'm running the pkg file that I got from Unity called UnitySetup-Android-Support-for-Editor-5.6.1f1.pkg and go through the installation process, but after the installer begins to install the software, it fails and looking at the logs it states that PackageKit: Session UUID file exists - will not overwrite [some long path]/[filename].activeSandbox
Anyone knows what could be the problem? I've even restarted my Mac / re-downloaded the file with no avail...
I managed to defeat the issue by installing the required packages from the Unity Hub, instead of manually downloading & installing.
Start Unity -> click Installs -> reveal Add Modules by clicking the vertical 3 dots and select the modules required by clicking on the checkboxes.
I managed to install Android support using the full Unity3D installer and making sure that the Android support is selected. Could be a specific problem with the AndroidPlayer installation package.
If anyone else runs into this and is unable to see the Add Modules button described in the other answer, you need to install the editor through Unity Hub in order to see that option.
I removed the old editor, went to:
https://unity3d.com/get-unity/download/archive
and then clicked the Unity Hub button for the specific version I was using. That way you're able to Add Modules :)

Android Development Tool (ADT) Plugin is not showing in Eclipse

The Android Development Tool (ADT) Plugin is not showing in Eclipse 4.4.0 on Ubuntu Linux, despite being installed.
I have tried:
sudo /opt/eclipse/eclipse -clean
and several complete re-installs of Eclipse.
On my several retries, the ADT sometimes did show up in the preferences, and asked for the SDK Location. Which I don't know, since I used Eclipse's Install new software interface. I've never been pointed to any install location. I can't find any file named android-sdk*.
1) How can I make the ADT show up?
2) When the ADT shows up in preferences, which directory is the SDK Location?
I've searched far and wide on Stackoverflow and elsewhere, but question 1) was always answered with 'un-install and re-install the ADT', which doesn't work, and question 2) was always considered a given; no actual directory was indicated in anything I found.
So much kudos to who can tell me!
One common problem is being in an Eclipse perspective other than Java. For example, if you are in perspective Java EE, Android ADT menu won't show.
Not sure about the SDK location when installed from ADT but it is probably an android directory in your home directory (/root/android or /home/user/android)

JavaFx button not working on Mac

So I have created an application using javaFX in Eclipse. I packaged an executable jar using Maven, with the zenjava javafx-maven-plugin version 2.0. I package in the command line using mvn clean jfx:jar. This creates a javafx/app subfolder in my target, which includes a lib folder and the executable jar.
When I run this executable jar on my Ubuntu or Windows machine, everything seems to work fine. On Mac however, I am having trouble. I have a welcome page that shows up first. It has a small description of the application and a button for users to push to continue on to the application. For some reason the button doesnt do anything on Mac. It works fine on Windows and Ubuntu. Any ideas why this is happening? Do I have to include anything extra for Mac?
There was an issue on Jira (JavaFX Bugtracker) concerning Mouse events on buttons disapearing. It was not exactly your MAC version (in the issue they named 10.8.2) but the issue has been fixed for the JavaFX 8 release (codename lombard). You might want to try the JavaFX 8 beta and see whether your bug has been fixed.
In case you'd like to see the issue: https://javafx-jira.kenai.com/browse/RT-26395

Blackberry Eclipse plugin for Mac installation voodoo needed

Has anyone successfully installed and run the Blackberry Eclipse plugin for MacOS?
Apparently, BB has not improved their Mac support much in the last year, since there was a question here about it last year.
I've followed their instructions to the letter, but they seem to assume that all you'll ever do in Eclipse is use their plugin. I want to move their plugin into an existing Eclipse installation.
I've copied the net.rim.* files from their Eclipse installation in to my /plugins folder, restarted, they show up in the list of installed plugins, but building an app always yields this error:
"Failed importing native project for BlackBerry. Missing Blackberry plugin. For more details see http://na.blackberry.com/eng/developers/javaappdev/javaupdate.jsp"
Thanks.
Mike
Here's the secret:
point Eclipse 3.6 Hellios to the following plug-in URL: http://www.blackberry.com/go/eclipseUpdate/3.6/web
Eclipse/Help/Install New Software... Add, enter some name and the URL above, and it works.

Installing iOS SDK 4.1 on xcode 3.2.5

I've read through a lot of posts and couldn't really figure out the answer to this question. So I apologize if I duplicating it here.
I have installed xcode 3.2.5 to my machine and it comes with SDK 4.2. My iPhone is on 4.1 and I am not planning to move it to 4.2 just yet. Problem is that I can't use this phone for testing. Since the only SDK that I have installed is 4.2, when I try to run debug with my iPhone, I get this message:
Can't install application
The info.plist for application at /blabla/app.app specifies a minimum OS of 4.2, which is too high to be installed on this device.
So, I got to Targets -> Get Info and I see that it is indeed targeting 4.2 (but that is the only option available - since I don't have the other SDK's installed).
So, the question is: how to I keep xcode 3.2.5, but install SDK 4.1 in addition to 4.2?
It took a while to figure this out.
I couldn't see 'iOS Deployment Target' on the info.plist either. Here's what I did.
a) Project -> Edit Project Settings
b) go to 'deployment' section
c) Change
'Targeted Device Family' = iPhone/iPad
'iOS Deployment Target = 'iOS 4.1'
Open up your info.plist in your project. There is a place where you can define for iOS 4.1.
Just open the previous SDK dmg, then go to Packages, and install the SDK 4.1 package.
More info : Install sdk 2.0 to 3.1 for xcode 3.2
Note : the "Packages" directory is not visible in the dmg since xcode_3.2.5_and_ios_sdk_4.2_final. Just use the Terminal (or finder "Go to folder") to open "/Volumes/Xcode and iOS SDK/Packages".
Edit : the xcode4.1 for Snow Leopard create an app called "Install Xcode.app". The packages directory is inside the app package.
The best way to do this is to find a copy of Xcode 3.2.4, with iOS 4.1, and install it in a separate directory. When you install, take the dropdown that's set to Developer and switch it to DevOld, or something similar. As there's no way to install new SDKs in the new version of Xcode, keeping multiple versions is the best you can do.
If you simply want to be able to run your app in 4.1, not necessarily develop in it, go into your target's settings, and under the build tab, set the iOS Deployment Target key to 4.1 or below.
Good luck!
What you need to do is:
In the BUILD section of the Project info click on Show and change its value from Setting defined at this level to All Settings.
In the updated list of settings you will surely locate the desired one.
Good Luck!

Resources