[
https://issues.apache.org/jira/browse/KARAF-4628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15391521#comment-15391521
]
Guillaume Nodet commented on KARAF-4628:
----------------------------------------
Could you try with the following
{code}
diff --git a/assemblies/features/base/src/main/resources/resources/bin/karaf
b/assemblies/features/base/src/main/resources/resources/bin/karaf
index 0040859..aa3f400 100755
--- a/assemblies/features/base/src/main/resources/resources/bin/karaf
+++ b/assemblies/features/base/src/main/resources/resources/bin/karaf
@@ -16,8 +16,8 @@
# limitations under the License.
#
-REALNAME=`readlink -e "$0" > /dev/null 2>&1`
-if [ $? != 0 ]; then
+REALNAME=$(readlink -e "$0" > /dev/null 2>&1)
+if [ "x${REALNAME}" = "x" ]; then
REALNAME=$0
fi
DIRNAME=$(dirname "${REALNAME}")
{code}
> Can not start karaf on linux
> ----------------------------
>
> Key: KARAF-4628
> URL: https://issues.apache.org/jira/browse/KARAF-4628
> Project: Karaf
> Issue Type: Bug
> Components: karaf-core
> Affects Versions: 4.1.0
> Reporter: Christian Schneider
> Assignee: Guillaume Nodet
> Fix For: 4.1.0
>
>
> I am not able to start karaf build from master. See below for how to
> reproduce.
> Build karaf from master using:
> mvn clean install -Pfastinstall
> and unpack using
> tar -xzvf
> ~/checkout/karaf/assemblies/apache-karaf/target/apache-karaf-4.1.0-SNAPSHOT.tar.gz
> cschneider@wscschneider:~/java/apache-karaf-4.1.0-SNAPSHOT$ bin/karaf
> Error: Could not find or load main class org.apache.karaf.main.Main
> See here for a run with bash -x: http://apaste.info/esV
> It seems like karaf is detecting the karaf directory wrongly.
> If I cd to the bin dir and run karaf from there it works.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)