Pages

Friday, February 20, 2015

Installing iDempiere in Mac OsX

First, download iDempiere installation here: http://www.idempiere.org/downloads
NOTE: If Mac installer didn't work for you, download the Linux installer. I'm using the linux installer even though I'm using a Mac.

Setup your path and download the java you need.
If you don't know how to work around your Mac, you can use this blog post as reference to setup path for Postgres and IDEMPIERE_HOME.

But, before a user posted the solution, I was stuck with this problem when I wanted to run setup.sh

===================================
Starting iDempiere Server
===================================
readlink: illegal option -- f
usage: readlink [-n] [file ...]
usage: dirname path
Unable to access jarfile /plugins/org.eclipse.equinox.launcher_1.*.jar

I've searched high and low, and I can't find any clue as to what I have to do next. I'm new in Mac so my only solution at that time was hope that someone from the community will reply to my problem.

If it was not for this group, I won't be able to solve my problem: iDempiere google groups

Went to brew.sh and followed the instruction on how to install brew
After installing brew, I followed the instruction Orlando (from community) posted
brew install coreutils   
alias readlink=greadlink 

Then finally, change idempiere-server.sh readlink to greadlink

And it worked great!
So I hope this will help you too, as much as it has helped me ;)

Thursday, January 22, 2015

Encountering Unsupported major.minor version 51.0

So I have to run Adempiere 361LTS in a Windows 8 machine who runs on Java 7 already.
I've copied my jdk1.6 folder from Windows 7 PC to Win8.

But even though project I've added in eclipse is already being built in Java 6, the eclipse is running Java 7 vm when running the tomcat 6 server. I wanted to debug the system in zkwebui..

So I'm left with logs and result in localhost:8080/webui
UnsupportedClassVersionError... further down the console log of eclipse I read this Unsupported major.minor version 51.0

In this link I read that...
The version number shown describes the version of the JRE the class file is compatible with.
The reported major numbers are:
J2SE 8 = 52,J2SE 7 = 51,J2SE 6.0 = 50,J2SE 5.0 = 49,JDK 1.4 = 48,JDK 1.3 = 47,JDK 1.2 = 46,JDK 1.1 = 45
So this gave me a hint that eclipse though was building the projects in Java 6 it's compiling in Java 7.

Then I found in this link with instructions on how to adjust eclipse version compiler...
Go to Menu-> Window -> Preferences -> Java -> Installed JREs -> Remove the old JRE -> Add new JRE


Finally, I'm able to run the system without error! :D

Hope this helps. :)