Pages

Showing posts with label java. Show all posts
Showing posts with label java. Show all posts

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 ;)

Monday, January 27, 2014

Eclipse Debug: Java Heap Out of Memory Problem

Recently, I've been hearing this comment from new java developers
java.lang.OutOfMemoryError: Java heap space

It only means that the allocated java memory is not enough, mainly the allocated runtime memory.

I've found a good resource that will give you instruction on how to update JRE memory in Windows 7.
http://www.wikihow.com/Increase-Java-Memory-in-Windows-7

1) Go to Control Panel
2) Search for Java
3) Go to Java tab
4) Click View
5) (from the link post above)
Modify the parameter. To modify the parameter, double click in the "Runtime Parameters" column and,
type -Xmx512m that assigns 512MB memory for the Java.
type -Xmx1024m that assigns 1GB memory for the Java.
type -Xmx2048m that assigns 2GB memory for the Java.
type -Xmx3072m that assigns 3GB memory for the Java, and so on.
Please note, it begins with a minus sign and ends to an m.
Also note, there is no blank space between characters.

PS: I'm putting this here as a bookmark or note for myself. So if this is helping you too, then thanks to wikihow for posting the direction. :)

More notes about JVM memory below:


This is a quick picture explanation of what a heap memory and non-heap memory is.
Got the image from this website: JVM Memory and Java Heap Space

Another good resource with lots of parameter arguments, check it out here: JVM Heap Space Arguments