Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9AB5F9F29 for ; Tue, 25 Oct 2011 22:12:53 +0000 (UTC) Received: (qmail 17404 invoked by uid 500); 25 Oct 2011 22:12:53 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 17377 invoked by uid 500); 25 Oct 2011 22:12:53 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 17369 invoked by uid 99); 25 Oct 2011 22:12:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 22:12:53 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 22:12:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 39EBC31B0B1 for ; Tue, 25 Oct 2011 22:10:33 +0000 (UTC) Date: Tue, 25 Oct 2011 22:10:33 +0000 (UTC) From: "Jamie goodyear (Closed) (JIRA)" To: issues@karaf.apache.org Message-ID: <326204387.15430.1319580633238.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2498800.191681288696464919.JavaMail.jira@thor> Subject: [jira] [Closed] (KARAF-261) Cannot run command admin on cygwin. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-261?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Jamie goodyear closed KARAF-261. -------------------------------- =20 > Cannot run command admin on cygwin. > ----------------------------------- > > Key: KARAF-261 > URL: https://issues.apache.org/jira/browse/KARAF-261 > Project: Karaf > Issue Type: Bug > Affects Versions: 2.1.0 > Environment: cygwin > Reporter: Stephane Chomat > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 2.1.1, 2.2.0 > > Original Estimate: 5m > Remaining Estimate: 5m > > Run bin/admin on cygwin and you are an exception. > -------------------------------------------------------------------------= -------------- > $ bin/admin > Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/kar= af/admin/main/Execute > Caused by: java.lang.ClassNotFoundException: org.apache.karaf.admin.main.= Execute > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > Could not find the main class: org.apache.karaf.admin.main.Execute. Prog= ram will exit. > I think the problem is the script bin/admin. > In the run function, move these lines > if $cygwin; then > KARAF_HOME=3D`cygpath --path --windows "$KARAF_HOME"` > KARAF_BASE=3D`cygpath --path --windows "$KARAF_BASE"` > CLASSPATH=3D`cygpath --path --windows "$CLASSPATH"` > fi > after setting classpath. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira