2017-02-05 3 views
-2

현재 포함 된 시작 스크립트를 사용하여 Java 프로그램 (JTS3ServerMod, Java TeamSpeak 봇)을 시작하려고합니다. 그러나 시작 스크립트를 실행하면 Java 오류가 발생하며 이유는 확실하지 않습니다.Java 프로그램이 시작되지 않음

현재 Oracle JDK (JRE 포함)를 실행 중이며 모든 관련 경로와 옵션이 있습니다. 스크립트는 자바 -jar 실행 할려고 후 여기에 내가 터미널에서 볼 무엇이다 : 나는 항아리에 주입하기 전에 나는 비슷한 문제에 직면 한

[[email protected] JTS3]# ./jts3servermod_startscript.sh start 
For security reasons it is prefered not to run the JTS3ServerMod as root! 
jts3servermod.pid found, but no JTS3ServerMod running. Possibly your previously started JTS3ServerMod crashed! 
Please view the logfile for details. 
Starting the JTS3ServerMod... 
JTS3ServerMod started, for details please view the log file! 
[[email protected] JTS3]# Illegal option: j 
Usage: jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] files ... 
Options: 
    -c create new archive 
    -t list table of contents for archive 
    -x extract named (or all) files from archive 
    -u update existing archive 
    -v generate verbose output on standard output 
    -f specify archive file name 
    -m include manifest information from specified manifest file 
    -n perform Pack200 normalization after creating a new archive 
    -e specify application entry point for stand-alone application 
     bundled into an executable jar file 
    -0 store only; use no ZIP compression 
    -P preserve leading '/' (absolute path) and ".." (parent directory) components from file names 
    -M do not create a manifest file for the entries 
    -i generate index information for the specified jar files 
    -C change to the specified directory and include the following file 
If any file is a directory then it is processed recursively. 
The manifest file name, the archive file name and the entry point name are 
specified in the same order as the 'm', 'f' and 'e' flags. 

Example 1: to archive two class files into an archive called classes.jar: 
     jar cvf classes.jar Foo.class Bar.class 
Example 2: use an existing manifest file 'mymanifest' and archive all the 
      files in the foo/ directory into 'classes.jar': 
     jar cvfm classes.jar mymanifest -C foo/ . 
+3

질문에'jts3servermod_startscript.sh' 스크립트를 포함하십시오. –

+1

오류 출력의 "* Illegal option j *"부분이 프롬프트 뒤에 나타 납니 까? 그걸 보길 원할 겁니다. – ray

+1

루트 사용자로 실행하지 않고 시작하십시오. '자세한 내용은 로그 파일을 보시기 바랍니다.' –

답변

-1

을 수동으로 혹시 그런 일을 했는가? 그렇다면 jar 파일의 경로를 수정해야 할 수도 있습니다.

0

어떤 이유로 시스템에서 더 이상 존재하지 않는 Java 버전 (즉 오류)을 사용하기 시작했습니다. 나는 그 시스템을 올바른 장소에서 다시 볼 뿐이며 모든 것이 잘되었습니다.

관련 문제