MFP CLI 7.1 and El Capitan - ibm-mobilefirst

So i upgraded to El Capitan, this version of OSX no longer ships with jdk 1.6.0 in the in the /System/Library/Java/JavaVirtualMachines folder, and installs new java versions in /Library/java/JavaVirtualMachines
I get this error when I try to mfp status
/Users/hannade/.ibm/mobilefirst/7.1.0.00.20151130-1648/server/wlp/bin/server: line 777: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java: No such file or directory

What is set as your JAVA_HOME environment variable? Run echo $JAVA_HOME in Terminal to verify. Make sure it is set to the Java version that you have installed.
You can probably set it either in ~/.bash_profile or by using a tool such as EnvPne.

Related

How to install Glade in Mac OSX El capitan

I am trying to install Glade on mac OSX el capitan. I downloaded sources on https://glade.gnome.org/sources.html
I followed instructions with the text "Install" in the sources. Then when I am trying to configure "build", I received following messages:
Configuration:
Source code location: .
Compiler: gcc
GTK+ UNIX Print Widgets: yes
PYTHON Widgets support: no
Introspection Data: yes
Build Reference Manual: no
Build User Manual:
I am trying to find out on google how to download the program PYTHON Widgets support but without success.
So I am wondering if you know anything which can help me?
Best
Mia
I managed to figure out the problem on my own.
So it is very simple, use macports to install glade.
Step 1 : install X11 on your mac or update it
Step 2 : install Xcode
Step 3: install macports
- macOS Sierra : https://github.com/macports/macports-base/releases/download/v2.3.5/MacPorts-2.3.5-10.12-Sierra.pkg
OS X El Captain : https://github.com/macports/macports-base/releases/download/v2.3.5/MacPorts-2.3.5-10.11-ElCapitan.pkg
for other versions of os x, you can use this link: https://guide.macports.org/#installing.macports.source
Step 4:
In terminal do:
sudo port install glade#3.20.0
or just
sudo port install glade
Easiest solution could be to install it via homebrew (https://brew.sh/):
$ brew install glade

Installing phalcon dev tools on El Capitan

I have phalcon 2.0 and I used to use the phalcon dev tools with it. In my mac I had Yosemite and this weekend I updated to El Capitan to be able to work with some swift projects. The problem is that after the SO update my phalcon dev tools stopped working and I can't run this command anymore to install phalcon dev tools:
ln -s ~/phalcon-devtools/phalcon.php /usr/bin/phalcon
I get this error message in terminal: ln: /usr/bin/phalcon: Operation not permitted
It has to do with that in El Capitan now you have some read only folders, even for the admin.
Have anyone figured out a way to install the phalcon dev tools in El Capitan already?
Thanks
This is the command that made the phalcon tools work again :
ln -s ~/phalcon-devtools/phalcon.php /usr/local/bin/phalcon

Ubuntu Appcelerator - Cannot install node on platforms other than windows or mac

Appc is successfully setup via terminal. Each prerequisite installed but on Studio launch Appcelerator cannot find/recognize installed node and tries to install node again and prompts "cannot install node on platforms other than windows or mac".
Since I am using the latest version of Titanium so it requires the latest Node.js (nodejs, node and npm). Appcelerator tries to install node because it does not find any compatible version.
Secondly Appcelerator tries to install all pending prerequisites and it cannot install node on platforms other than windows or mac so you have to install nodejs via terminal.
To debug issues try to run programs via terminal. Particular to Appcelerator in Ubuntu, go the directory and run it by command $ ./AppceleratorStudio
It will prompt all ERRORS, WARNINGS and NOTICES.

build openjdk on mac "JAVA_HOME is not defined correctly"

I am building openjdk on MAC and facing a problem like this:
Error: JAVA_HOME is not defined correctly.
We cannot execute /NO_BOOTDIR/bin/java
the OS of my mac is 10.10.2.
the openjdk is
openjdk-7u40-fcs-src-b43-26_aug_2013
the ALT_BOOTDIR
export ALT_BOOTDIR=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
the $JAVA_HOME
echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
when I set JAVA_HOME and run 'make sanity', the error is like this:
ERROR: Your JAVA_HOME environment variable is set. This will
most likely cause the build to fail. Please unset it
and start your build again.
so I have to unset it and no matter I unset it or not, the error appears.
any ideas?
thinks.
Before setting the path make sure that java is installed by checking the directory
/Library/Java/JavaVirtualMachines/<version>.jdk/Contents/Home
Then in .bashrc or .bash_profile
JAVA_HOME=/Library/Java/JavaVirtualMachines/<version>.jdk/Contents/Home
export JAVA_HOME
If it OpenJDK is missing you can install it through brew
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk8
There should be symlinks in /usr/bin to java and javac

Android Studio 'tools.jar' file is not present in classpath

I downloaded the current version of Android Studio (latest as of 4th July 2013)
I also downloaded the JDK version 7u25.
However, it displays error after startup: Please ensure JAVA_HOME points to JDK rather than JRE.
I don't know how to solve this problem, which won't let me run the IDE. I would appreciate any help.
Check if java JDK is installed correctly
dpkg --list | grep -i jdk
if not install JDK
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-jdk7-installer
After the installation you have enable the jdk
update-alternatives --display java
Check if Ubuntu uses Java JDK 7
java -version
If all went right the answer should be something like this:
java version “1.7.0_25″
Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
Java HotSpot(TM) Server VM (build 23.3-b01, mixed mode)
Check what compiler is used
javac -version
It should show something like this
javac 1.7.0_25
Add JAVA_HOME to environment variable
Edit /etc/environment and add JAVA_HOME=/usr/lib/jvm/java-7-oracle to the end of the file
sudo nano /etc/environment
Append to the end of the file
JAVA_HOME=/usr/lib/jvm/java-7-oracle
Log in and out (or reboot) for the changes to take effect.
If you want to remove oracle JDK
sudo apt-get remove oracle-jdk7-installer
read this:
http://arwankhoiruddin.blogspot.co.il/2014/01/android-studio-in-ubuntu-problem.html
in short:
type at the terminal
$ sudo update-alternatives --config java
now you need to choose
usr/lib/jvm/java-7-openjdk/jre/bin/java
by pressing #3
I have Ubuntu 14.04 and OpenJDK and for me a fresh install worked.
just did
sudo apt-get install openjdk-7-jdk
or,
sudo apt-get install --reinstall openjdk-7-jdk if it is already installed and giving error,
and everything was fine.
On ubuntu I have tried all the methods that are described here but none worked.
What I did in the end was to:
download JDK from oracle and extract the archive
edit android-studio/bin/studio.sh and add at the top
export JAVA_HOME=/path/to/jdk
save the file and cd android-studio/bin and launch Android Studio: ./studio.sh
On Fedora (and other RedHat derivatives, e.g. RHEL 7 and CentOS 7), it was the missing openjdk-devel package that was the issue for me. It's an easy fix and nothing to do with the JAVA_HOME path or the JRE.
sudo yum install java-1.7.0-openjdk-devel.x86_64
If you are using Windows, the installation can be confusing for many users...
The installer lets you specify an installation path, but this is only if you have the JRE option selected to install.
The actual JDK installs automatically to...
C:\Program Files\Java\jdkX.XX on 64-bit
C:\Program Files (x86)\Java\jdkX.XX on 32-bit
So you need to make sure you set the JAVA_HOME variable in environment variables set to this JDK path, not the JRE path that appears in the installer.
In windows Create new environment as STUDIO_JDK which refers to your jdk C:\Program Files\Java\jdk1.7.0
This answer may be very specific to a Windows 7 32 bit system:
Even after setting the JAVA_HOME variables, I had problems. After installing the JAVA again from the website, http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
BUT THIS TIME I TRIED "Windows x64 54 MB jdk-8u51-windows-x64-demos.zip" which seems to be for 64 bit even though my system is 32 bit and the ANDROID STUDIO started working for me. My environment settings are following (under System variables and not under user variables):
JAVA_HOME-C:\Program Files (x86)\Java\jre1.8.0_51
JDK_HOME-C:\Program Files (x86)\Java\jdk1.8.0_51
I had the same problem on Linux Mint 17.2 and it was very simple:
In the package manager I found that openjdk-7-jre was installed but not the JDK. All I had to do was to install openjdk-7-jdk.
As I'm new to Linux it took me some time to figure this out though because I assumed by the name of the path /usr/lib/jvm/java-7-openjdk-amd64 that it was already the JDK but it was just the JRE.
On Linux Mint 17 (or Ubuntu 14.04):
sudo apt-get install openjdk-7-jdk
Then change the JAVA_HOME env variable.
export JAVA_HOME=JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
Downloading the latest Android Studio resolve this issue / OSX /MAC