Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) solving problems with wrong classpath see: http://www.yacy-forum.de/viewtopic.php?p=4045

theli9e4bcc828d40
diff --git a/build.xml b/build.xml
index 0cd4e3d6f..d7f9e1c6d 100644
--- a/build.xml
+++ b/build.xml
@@ -112,6 +112,7 @@
<!-- defining the classpath that should be used for compiling -->
<path id="project.class.path">
<pathelement location="${build}"/>
+ <pathelement location="${htroot}"/>
<!-- libs needed for the yacy thread/object-pools -->
<pathelement location="${lib}/commons-collections.jar" />
diff --git a/startYACY.bat b/startYACY.bat
index 05656a290..828857f9b 100644
--- a/startYACY.bat
+++ b/startYACY.bat
@@ -2,7 +2,7 @@
If %1.==CPGEN. GoTo :CPGEN
Rem Generating the proper classpath unsing loops and labels
-Set CLASSPATH=classes
+Set CLASSPATH=classes;htroot
For %%X in (lib/*.jar) Do Call %0 CPGEN lib\%%X
For %%X in (libx/*.jar) Do Call %0 CPGEN libx\%%X
diff --git a/startYACY.command b/startYACY.command
index a6f58060c..f1a0b1e91 100755
--- a/startYACY.command
+++ b/startYACY.command
@@ -5,4 +5,4 @@ CLASSPATH=""
for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
-java -classpath classes:$CLASSPATH -server yacy
+java -classpath classes:htroot:$CLASSPATH -server yacy
diff --git a/startYACY.sh b/startYACY.sh
index e8927e1ed..5b836c9d1 100755
--- a/startYACY.sh
+++ b/startYACY.sh
@@ -14,12 +14,12 @@ else
if [ x$1 != x-d ]
then
- nohup java -classpath classes:$CLASSPATH yacy >> yacy.log &
+ nohup java -classpath classes:htroot:$CLASSPATH yacy >> yacy.log &
echo "YaCy started as daemon process. View it's activity in yacy.log"
echo "To stop YaCy, please execute stopYACY.sh and wait some seconds"
echo "To administrate YaCy, start your web browser and open http://localhost:8080"
else
java -classpath classes:$CLASSPATH yacy
- #java -Xms16m -Xmx200m -classpath classes:$CLASSPATH yacy
+ #java -Xms16m -Xmx200m -classpath classes:htroot:$CLASSPATH yacy
fi
fi
diff --git a/startYACY_noconsole.bat b/startYACY_noconsole.bat
index 909c91640..91c017308 100644
--- a/startYACY_noconsole.bat
+++ b/startYACY_noconsole.bat
@@ -2,7 +2,7 @@
If %1.==CPGEN. GoTo :CPGEN
Rem Generating the proper classpath unsing loops and labels
-Set CLASSPATH=classes
+Set CLASSPATH=classes;htroot
For %%X in (lib/*.jar) Do Call %0 CPGEN lib\%%X
For %%X in (libx/*.jar) Do Call %0 CPGEN libx\%%X
diff --git a/stopYACY.bat b/stopYACY.bat
index 1f5f287a1..72a636bee 100644
--- a/stopYACY.bat
+++ b/stopYACY.bat
@@ -2,7 +2,7 @@
If %1.==CPGEN. GoTo :CPGEN
Rem Generating the proper classpath unsing loops and labels
-Set CLASSPATH=classes
+Set CLASSPATH=classes;htroot
For %%X in (lib/*.jar) Do Call %0 CPGEN lib\%%X
For %%X in (libx/*.jar) Do Call %0 CPGEN libx\%%X
diff --git a/stopYACY.command b/stopYACY.command
index 7b19fa202..833874a57 100755
--- a/stopYACY.command
+++ b/stopYACY.command
@@ -5,4 +5,4 @@ CLASSPATH=""
for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
-java -classpath classes:$CLASSPATH yacy -shutdown
+java -classpath classes:htroot:$CLASSPATH yacy -shutdown
diff --git a/stopYACY.sh b/stopYACY.sh
index 7fafb75fe..bd65bd1d4 100755
--- a/stopYACY.sh
+++ b/stopYACY.sh
@@ -6,6 +6,6 @@ CLASSPATH=""
for N in `ls -1 lib/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
for N in `ls -1 libx/*.jar`; do CLASSPATH="$CLASSPATH$N:"; done
-java -classpath classes:$CLASSPATH yacy -shutdown
+java -classpath classes:htroot:$CLASSPATH yacy -shutdown
echo "please wait until the YaCy daemon process terminates"
echo "you can monitor this with 'tail -f yacy.log' and 'fuser yacy.log'"
\ No newline at end of file