karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie goodyear (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (KARAF-261) Cannot run command admin on cygwin.
Date Tue, 25 Oct 2011 22:10:33 GMT

     [ https://issues.apache.org/jira/browse/KARAF-261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jamie goodyear closed KARAF-261.
--------------------------------

    
> 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é
>             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/karaf/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.  Program will exit.
> I think the problem is the script bin/admin.
> In the run function, move these lines
>     if $cygwin; then
>         KARAF_HOME=`cygpath --path --windows "$KARAF_HOME"`
>         KARAF_BASE=`cygpath --path --windows "$KARAF_BASE"`
>         CLASSPATH=`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 administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message