lokacija : C:\Users\Jonas\Desktop\jono ir lino servas\aCis_gameserver\dist\RegisterGameServer.bat
jo kodas :
@echo off
title aCis gameserver registration console
@java -Djava.util.logging.config.file=config/console.cfg -cp ./libs/*; net.sf.l2j.gsregistering.GameServerRegister
@pause
xamarin studio atidarytas build.xml :
<?xml version="1.0" encoding="UTF-8"?>
<project name="aCis_gameserver" default="dist" basedir=".">
<property name="src" location="java" />
<property name="lib" location="lib" />
<property name="build" location="build" />
<property name="build.classes" location="${build}/classes" />
<property name="build.dist" location="${build}/dist" />
<property name="build.dist.login" location="${build.dist}/login" />
<property name="build.dist.game" location="${build.dist}/gameserver" />
<target name="dist" depends="jar">
<copy todir="${build.dist.login}/libs">
<fileset dir="${src}/../lib">
<include name="c3p0-0.9.5-pre5.jar" />
<include name="mchange-commons-java-0.2.6.2.jar" />
<include name="mysql-connector-java-5.1.26.jar" />
</fileset>
</copy>
<copy todir="${build.dist.game}/libs">
<fileset dir="${src}/../lib">
<include name="*.jar" />
</fileset>
</copy>
<copy todir="${build.dist.login}">
<fileset dir="dist">
<include name="startAccountManager.*" />
<include name="startSQLAccountManager.*" />
<include name="LoginServer_loop.sh" />
<include name="startLoginServer.*" />
<include name="RegisterGameServer.*" />
</fileset>
</copy>
<copy todir="${build.dist.game}">
<fileset dir="dist">
<include name="GameServer_loop.sh" />
<include name="startGameServer.*" />
<include name="GeoDataConverter.*" />
</fileset>
</copy>
<fixcrlf srcdir="${build.dist.game}" eol="lf" eof="remove" includes="**/*.sh" />
<fixcrlf srcdir="${build.dist.login}" eol="lf" eof="remove" includes="**/*.sh" />
<fixcrlf srcdir="${build.dist.game}" eol="crlf" eof="remove" includes="**/*.bat" />
<fixcrlf srcdir="${build.dist.login}" eol="crlf" eof="remove" includes="**/*.bat" />
<mkdir dir="${build.dist.game}/log" />
<mkdir dir="${build.dist.login}/log" />
<mkdir dir="${build.dist.game}/config" />
<mkdir dir="${build.dist.login}/config" />
<copy todir="${build.dist.game}/config">
<fileset dir="config">
<include name="*.properties" />
<exclude name="loginserver.properties" />
</fileset>
<fileset dir="config">
<include name="log.cfg" />
<include name="console.cfg" />
</fileset>
</copy>
<copy todir="${build.dist.login}/config">
<fileset dir="config">
<include name="loginserver.properties" />
</fileset>
<fileset dir="config">
<include name="log.cfg" />
<include name="banned_ip.cfg" />
<include name="console.cfg" />
</fileset>
</copy>
<mkdir dir="${build.dist.game}/data" />
</target>
<target name="jar" depends="compile" description="Create the jar file.">
<jar destfile="${build}/l2jserver.jar">
<fileset dir="${build.classes}" />
<manifest>
<attribute name="Main-Class" value="net.sf.l2j.Server" />
<attribute name="Class-Path" value="${manifest.libs}" />
</manifest>
</jar>
<copy todir="${build.dist.login}/libs">
<fileset dir="${build}">
<include name="l2jserver.jar" />
</fileset>
</copy>
<copy todir="${build.dist.game}/libs">
<fileset dir="${build}">
<include name="l2jserver.jar" />
</fileset>
</copy>
</target>
<target name="compile" depends="init" description="Compile the source.">
<javac srcdir="${src}" classpathref="classpath" destdir="${build.classes}" compiler="javac1.8" debug="true" debuglevel="lines,vars,source" includeantruntime="false" source="1.8" target="1.8" />
</target>
<target name="init" depends="clean,checkRequirements" description="Create the output directories.">
<mkdir dir="${build}" />
<mkdir dir="${build.classes}" />
<mkdir dir="${build.dist}" />
<mkdir dir="${build.dist.login}" />
<mkdir dir="${build.dist.game}" />
</target>
<target name="clean" description="Remove the output directories.">
<delete dir="${build}" />
</target>
<target name="checkRequirements" description="Check requirements.">
<echo message="Verification of your JDK version."/>
<available classname="java.util.stream.Stream" property="JDK8.present" />
<fail unless="JDK8.present" message="Java 1.8 is required, but your version is Java ${ant.java.version}. Install latest JDK." />
</target>
<path id="classpath">
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
</path>
<pathconvert property="manifest.libs" pathsep=" ">
<path refid="classpath" />
<mapper>
<chainedmapper>
<flattenmapper />
<globmapper from="*.jar" to="../libs/*.jar" />
</chainedmapper>
</mapper>
</pathconvert>
</project>
ijunges registergameserver.bat gaunu toki errora
Error: Could not find or load main class net.sf.l2j.gsregistering.GameServerRegister
Press any key to continue . . .
internete skaiciau kad reikia compilint, bet visiskai nesuprantu, ka tai reiskia.
pagalbos?