OSDN Git Service

e6b1a25df460916e1d9500b35ea5c01a55a53327
[neighbornote/NeighborNote.git] / nevernote.sh
1 l#! /bin/sh
2
3 ###########################################
4 # Location variables.  Edit the variables #
5 # below to your specific installation.    #
6 # The ones below are examples only.       #
7 ###########################################
8 export NEVERNOTE=/home/randy/NeverNote
9 export JAMBI_LOCATION=/home/randy/qtjambi
10 export JAMBI_VERSION=4.5.2_01
11 export JAMBI_PLATFORM=linux32-gcc
12
13
14 ########################################
15 # Memory settings.  These can be tuned #
16 # to your specific needs.  The greater #
17 # the memory allocated the better      #
18 # your response may be, but the more   #
19 # resources the program will consume.  #
20 # Lower numbers may hurt performance   #
21 # but will reduce resource held by     #
22 # the program.  If you get errors      #
23 # that say "out of memory" you need    #
24 # to increase these values.            #
25 ########################################
26 # Initial heap size
27 export NN_XMS=128M
28 # Maximum heap size
29 export NN_XMX=512M
30
31
32 ########################################
33 # This next variable is optional. It   #
34 # is only needed if you want to run    #
35 # multiple copies of NeverNote under   #
36 # the same Linux user id.  Each        #
37 # additional copy (after the first)    #
38 # should have a unique name.  This     #
39 # permits the settings to be saved     #
40 # properly.  If you only want to run   #
41 # one copy under a single userid, this #
42 # can be commented out.                #
43 ########################################
44 #export NN_NAME="sandbox"  
45
46
47 ###################################################################
48 ###################################################################
49 ## You probably don't need to change anything below this line.   ##
50 ###################################################################
51 ###################################################################
52
53
54 #####################
55 # Setup environment #
56 #####################
57 export NN_CLASSPATH=$NEVERNOTE/nevernote.jar
58 export NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/evernote.jar
59 export NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/h2-1.2.136.jar
60 export NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/libthrift.jar
61 export NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/log4j-1.2.14.jar
62 export NN_CLASSPATH=$NN_CLASSPATH:$NEVERNOTE/lib/PDFRenderer.jar
63 export NN_CLASSPATH=$NN_CLASSPATH:$JAMBI_LOCATION/qtjambi-$JAMBI_VERSION.jar
64 export NN_CLASSPATH=$NN_CLASSPATH:$JAMBI_LOCATION/qtjambi-$JAMBI_PLATFORM-$JAMBI_VERSION.jar
65
66
67 ###################
68 # Run the program #
69 ###################
70 cd $NEVERNOTE
71 java -Xmx$NN_XMX -Xms$NN_XMS -classpath $NN_CLASSPATH cx.fbn.nevernote.NeverNote --name=$NN_NAME
72 cd -