@java -Xmx512m -Xincgc -cp l1jserver.jar;lib\c3p0-0.9.1.2.jar;lib\mysql-connector-java-5.1.5-bin.jar;lib\javolution.jar l1j.server.Leaf
@pause
이렇게 된걸 xp에서 .bat된걸 실행하면 작동합니다.
그런데 우분투에서 실행하면
$ sudo ./ServerStart.bat
./ServerStart.bat: 1: @java: not found
./ServerStart.bat: 1: libc3p0-0.9.1.2.jar: not found
./ServerStart.bat: 1: libmysql-connector-java-5.1.5-bin.jar: not found
./ServerStart.bat: 1: libjavolution.jar: not found
: not foundrt.bat: 2: @pause
이렇게 뜨네요
그래서 @를 2개 없에고 해봤더니
$ sudo ./startsv
Usage: java [-options] class [args…]
(to execute a class)
or java [-options] -jar jarfile [args…]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is server,
because you are running on a server-class machine.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
See http://java.sun.com/javase/reference for more details.
./startsv: 1: libc3p0-0.9.1.2.jar: not found
./startsv: 1: libmysql-connector-java-5.1.5-bin.jar: not found
./startsv: 1: libjavolution.jar: not found
: not found2: pause
이렇게 됩니다.
콘솔에서 $java 하면 나오는 설명이 튀어 나와요;;
1111디렉토리 안에 serverstart.bat, bin디렉토리와 그안의 파일들 전부 있는데, ( .jar 파일3개)
"not found"뜨네요;
하도 안되서 xp에서 똑같이 해보니 창이 딱 떴는데 우분투에선 저렇게 막힙니다.
[color=#0000FF:1cknqhhe]질문[/color:1cknqhhe]
왜 막히죠?
어떻게 해야 저거 실행가능한가요?