Siemka mam maly problem z SVN robie wszystko tak jak nalezy sciagam paczke i gdy włączam gameserver wyskakuje mi blad:
"Error: Could not find or load main class com.l2jfree.gameserver.GameServer"
mam tak z wszystkimi paczkami free, frozena, emu i nie mam pojecia jak zrobic zeby wczytywalo gameserver z mojego svna ;////
prosze o pomoc ;d
Po pierwsze czemu nazywasz nas paly?
Po drugie reinstalacja Javy na 7 w przypadku aCisa,czy kronik wyższych niż Interlude bodajże ...
Cytat: maly232 w Marzec 27, 2012, 08:19:01 AM
Po pierwsze czemu nazywasz nas paly?
Po drugie reinstalacja Javy na 7 w przypadku aCisa,czy kronik wyższych niż Interlude bodajże ...
Napisał, że ma pały problem a nie Siema pały ;D
poprawione sorki xd
mam jave 7 jdk reinstalacja nie pomaga ;/
Zawsze jak w javie nie może znaleźć klasy, to chodzi o classpath, albo, że jej rzeczywiście nie ma.
jesli nie mam classpatha to jak go moge utworzyc lub skad sciagnac? bo w paczce svn nie ma go
Poczytaj w internetach na temat: SVN, ANT. Następnie na stronie oracla znajdziesz tutorial javy. Poczytaj tam o strukturach folderów, package i o tym nieszczęsnym classpath.
Tyle powinno ci wystarczyć na początek.
CLASSPATH to zmienna środowiskowa zawierająca (lub powinna zawierać) ścieżki gdzie znajdują się klasy. Generalnie w systemie domyślnie ustawiamy sobie classpath na biblioteki javy, a dalej przed uruchomieniem aplikacji, deklarujemy dodatkowe ścieżki, które są widoczne podczas działania sesji.
Przed Tobą długa droga.
dzieki wielkie za pomoc, nic nie wiedzialem na ten temat teraz sie zabieram do nauki ;d
Cytat: Alvardo w Marzec 24, 2012, 11:49:41 AM
Siemka mam maly problem z SVN robie wszystko tak jak nalezy sciagam paczke i gdy włączam gameserver wyskakuje mi blad:
"Error: Could not find or load main class com.l2jfree.gameserver.GameServer"
mam tak z wszystkimi paczkami l2acisa frozena emu i nie mam pojecia jak zrobic zeby wczytywalo gameserver z mojego svna ;////
prosze o pomoc ;d
Jesteś w stanie mi podeslać svn acisa ?
Skoro pobrałeś source za pomocą SVN, to tam musisz dopatrzeć się pliku build. Otwórz go i zobacz, czy nie ma jakiś wartości do ustawienia np. ścieżki do outputu. Po wywołaniu głównego targetu, stworzy ci skompilowany build (o ile nie będzie błędów). Po zakończeniu tej operacji, pozostaje ci jedynie postępować zgodnie z zaleceniami/instrukcjami danego projektu.
Ten błąd, który masz mówi o tym, że nie może odnaleźć klasy głównej, potrzebnej do rozruchu.
Ponieważ nie mam dostępu do twojej paczki, to mogę tylko strzelać co może być przyczyną.
otwieram build antem lecz podczas tworzenia wystakuje mi taki blad:
[exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, Nie mo?na odnale?? okre?lonego pl
dist:
<- ps. blad naprawiony, wystarczylo sciagnac subversion i subclipse
do GreatInqusist0r
sry mam tylko svn Frozena i Free lecz nie wiem czy nie kupic do acisa bo jednak warto
cos mam zmienic w pliku build??
build:
<?xml version="1.0" encoding="UTF-8"?>
<project name="L2JFree_Datapack_IL" default="dist" basedir=".">
<description>
This script will build the l2jfree datapack.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
http://www.gnu.org/copyleft/gpl.html
</description>
<property name="build" location="build"/>
<property name="build.dist" location="${build}/dist"/>
<property name="build.dist.game" location="${build.dist}/gameserver"/>
<property name="build.dist.login" location="${build.dist}/login"/>
<target name="init"
depends="clean"
description="Create the output directories.">
<mkdir dir="${build}"/>
<mkdir dir="${build.dist}"/>
<mkdir dir="${build.dist.game}"/>
<mkdir dir="${build.dist.login}" />
</target>
<target name="dist"
depends="version">
<copy todir="${build.dist.game}">
<fileset dir="${basedir}">
<exclude name=".project"/>
<exclude name="build.xml"/>
<exclude name="build/**"/>
<exclude name="log/**"/>
<exclude name="data/clans/**"/>
<exclude name="data/crests/**"/>
<exclude name="**.svn**"/>
<exclude name="**/*.class"/>
<exclude name="sql/**"/>
<exclude name="tools/**"/>
<exclude name="geodata/**"/>
<exclude name="pathnode/**"/>
<include name="**/*.*"/>
</fileset>
</copy>
<copy todir="${build.dist}">
<fileset dir="${basedir}">
<exclude name=".project"/>
<exclude name="build.xml"/>
<exclude name="config/**"/>
<exclude name="build/**"/>
<exclude name="log/**"/>
<exclude name="data/clans/**"/>
<exclude name="data/**"/>
<exclude name="data/crests/**"/>
<exclude name="**.svn**"/>
<exclude name="**/*.class"/>
<exclude name="geodata/**"/>
<exclude name="pathnode/**"/>
<include name="sql/*.*"/>
<include name="sql/updates/*.*"/>
<include name="sql/custom/*.*"/>
<include name="tools/*.*"/>
</fileset>
</copy>
<copy todir="${build.dist.login}">
<fileset dir="${build.dist.game}/data">
<include name="servername.xml"/>
</fileset>
</copy>
<delete file="${build}/l2jfree_datapack_il.zip"/>
<zip destfile="${build}/l2jfree_datapack_il.zip" basedir="${build.dist}"/>
</target>
<target name="version"
depends="init"
description="Create l2j-free-dp.properties file">
<tstamp>
<format property="build.tstamp" pattern="yyyyMMdd_HHmm"/>
</tstamp>
<exec dir="." executable="svnversion" outputproperty="l2j-free-dp.revision"
failifexecutionfails="false">
<arg line="-n ."/>
</exec>
<concat destfile="${properties-file}">
version=${l2j-free-dp.revision}
builddate=${build.tstamp}
detailed info:
</concat>
<concat destfile="${properties-file}" append="true">
<filelist dir="${src}/../.svn/" files="entries"/>
<filterchain>
<prefixlines prefix=" "/>
<headfilter lines="8" skip="4"/>
<tokenfilter>
<ignoreblank/>
</tokenfilter>
</filterchain>
</concat>
</target>
<target name="clean"
description="Deletes the zip file">
<delete dir="${build}"/>
</target>
</project>
Nie musze zmienic pliku "pom"??
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>l2jfree</groupId>
<artifactId>l2j-gameserver</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
<url>http://www.l2jfree.com</url>
<scm>
<connection>
scm:svn:svn://www.l2jfree.com/repo/l2j-free/trunk/L2_GameServer_IL
</connection>
<developerConnection>
scm:svn:svn://www.l2jfree.com/repo/l2j-free/trunk/L2_GameServer_IL
</developerConnection>
<url>
http://l2jfree.com:8080/l2j-free/browser/trunk/L2_GameServer_IL
</url>
</scm>
<pluginRepositories>
<pluginRepository>
<id>Maven Snapshots</id>
<url>http://snapshots.maven.codehaus.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>central l2j</id>
<name>Mirror Central L2j</name>
<url>http://www.l2jfree.com/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<repositories>
<repository>
<id>central l2j</id>
<name>Central L2j</name>
<url>http://www.l2jfree.com/maven/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>maven 2 (default)</id>
<url>http://repo1.maven.org/maven2</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>Maven Snapshots</id>
<url>http://snapshots.maven.codehaus.org/maven2/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>apache.snapshots</id>
<name>Apache Snapshot Repository</name>
<url>
http://people.apache.org/repo/m2-snapshot-repository
</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</repository>
<repository>
<id>mevenide repo</id>
<url>http://mevenide.codehaus.org/repository</url>
</repository>
<repository>
<id>ibiblio maven2</id>
<url>http://www.ibiblio.org/maven2/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>l2jfree</groupId>
<artifactId>l2j-commons</artifactId>
<version>1.0.8</version>
</dependency>
<dependency>
<groupId>l2jfree</groupId>
<artifactId>l2j-mmocore</artifactId>
<version>1.0.4</version>
</dependency>
<dependency>
<groupId>l2jfree</groupId>
<artifactId>l2j-test-tools</artifactId>
<version>1.0.2</version>
<scope>test</scope>
</dependency>
<!-- override version of log4j -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>org.apache.bsf</groupId>
<artifactId>bsf</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>bsh</groupId>
<artifactId>bsh</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>jython</groupId>
<artifactId>jython</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>javax.management</groupId>
<artifactId>jmxremote</artifactId>
<version>1.0.1_03-b57</version>
</dependency>
<dependency>
<groupId>javax.management</groupId>
<artifactId>jmxremote_optional</artifactId>
<version>1.0.1_03-b57</version>
</dependency>
<dependency>
<groupId>javax.management</groupId>
<artifactId>jmxri</artifactId>
<version>1.2.1-b14</version>
</dependency>
<dependency>
<groupId>jmxri</groupId>
<artifactId>jmxtools</artifactId>
<version>1.2.8</version>
</dependency>
<dependency>
<groupId>org.schwering</groupId>
<artifactId>irclib</artifactId>
<version>1.10</version>
</dependency>
</dependencies>
<issueManagement>
<system>Trac</system>
<url>http://www.l2jfree.com:8080/trac/l2j-free/timeline</url>
</issueManagement>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.1</version>
</plugin>
</plugins>
</pluginManagement>
<defaultGoal>assembly:assembly</defaultGoal>
<finalName>${artifactId}</finalName>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
<testResources>
<testResource>
<directory>config/</directory>
</testResource>
<testResource>
<directory>src/test/resources</directory>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>maven-buildnumber-plugin</artifactId>
<version>0.9.5</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>
true
</addDefaultImplementationEntries>
</manifest>
<manifestEntries>
<Implementation-Build>
${buildNumber}
</Implementation-Build>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkMode>pertest</forkMode>
<argLine>-enableassertions</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>
src/main/assembly/distribution.xml
</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
</project>
jesli tak to powiedzcie jak ;d
Cytat[exec] Execute failed: java.io.IOException: Cannot run program "svnversion": CreateProcess error=2, Nie mo?na odnale?? okre?lonego pl
dist:
Tym się akurat nie przejmuj, bo skrypt antowy się na tym nie przerywa.