karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] Commented: (KARAF-261) Cannot run command admin on cygwin.
Date Mon, 08 Nov 2010 10:11:09 GMT

    [ https://issues.apache.org/jira/browse/KARAF-261?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12929530#action_12929530
] 

Jean-Baptiste Onofré commented on KARAF-261:
--------------------------------------------

Fix performed on the trunk: revision 1032516.

I'm making the merge on the 2.1.x branch.

> 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é
>   Original Estimate: 0.08h
>  Remaining Estimate: 0.08h
>
> 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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message