-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having an error trying to run GUI #3
Comments
1、coyp l2walk.jar to l2walk\build\distr |
@fmpoffice I did try your suggestion, but it didn't work or simply I didn't do it correctly. StartServer.bat on line 7, contains: Then I tried also: What else is not right? Could it be my installation of Java? |
See https://github.com/xMlex/l2walker/blob/master/data/config/StartServer.bat#L7 And see README.md - section Build & run: https://github.com/xMlex/l2walker#build--run |
I got latest fresh version of this, then following your Build and Run:
I am running on |
Also try to start from script:
|
I have a similar problem, is there a solution? |
@NerijusD, @gigstox, @xMlex it took only 4 years, i think i figured this one out Issue was that in build.xml file its written as: Line 92 in aca4330
As you can see - MainAppForm. But actually in files it is MainSwingForm l2walker/java/fw/gui/MainSwingForm.java Line 20 in aca4330
And for running it i used this bat file:
So you should have in build.xml MainSwingForm instead of MainAppForm, then it starts up, although i now get this error message:
|
I've revisited my bat file, this is version that works correctly:
My second problem was that using -cp and -jar commands at same time prevent -cp from running at all according to this answer So when using only -cp command instead we achieve load of both l2walker part and lwjgl into program. So for anyone interested, full list of actions to do, for this program to run is: To run bot
Keep in mind that your path of java might be different, so you will need to check where your jre (java runtime environment) is installed on your pc and change this part
All of this were tested on windows 10. For linux should be similar with maybe usage of java instead of java.exe naming. |
@NerijusD Hi!
after
ant dist
runcd build/distr
andjava -cp "libs/*:libs/slik2d/*" fw.gui.MainSwingForm
for run gui form
Originally posted by @xMlex in #2 (comment)
This did not fix the problem, running
java -cp "libs/*:libs/slik2d/*" fw.gui.MainSwingForm
I gettingError: Could not find or load main class fw.gui.MainSwingForm
The text was updated successfully, but these errors were encountered: