Permalink
Browse files

Fixed: NoClassDefFoundError when working directory is not SmartSprite…

  • Loading branch information...
1 parent 27668d4 commit 53436506b6b5c22962181ecc9387fe108ae4b7c7 @stanislawosinski stanislawosinski committed Oct 11, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/main/bin/smartsprites.cmd
  2. +1 −1 src/main/bin/smartsprites.sh
@@ -21,4 +21,4 @@ goto setupArgs
rem
rem Launch SmartSprites
rem
-java %OPTS% -Djava.ext.dirs=lib org.carrot2.labs.smartsprites.SmartSprites %CMD_LINE_ARGS%
+java %OPTS% -Djava.ext.dirs=%~dp0lib org.carrot2.labs.smartsprites.SmartSprites %CMD_LINE_ARGS%
@@ -5,4 +5,4 @@
#
OPTS="-Xms64m -Xmx256m"
-java $OPTS -Djava.ext.dirs=lib org.carrot2.labs.smartsprites.SmartSprites "$@"
+java $OPTS -Djava.ext.dirs=`dirname $0`/lib org.carrot2.labs.smartsprites.SmartSprites "$@"

0 comments on commit 5343650

Please sign in to comment.