You said you dont get any errors with eclipse so why not just use it to run when its alot easier?
|
Hi guys,
I recently downloaded Ardi 3.0 and now I want to launch the server via the CLI on my windows machine.
Since it didn't come with a run file I had to write my own, but when I run it I'm getting errors for some reason? So I was wondering if maybe someone could spot my mistake?.....
This is the run.bat file I wrote:
(When I run it via eclipse I get no errors and everything works fine.)Code:@echo off title Server java -cp bin;deps\*.jar; ardi.Server pause
EDIT:
The error I'm getting, btw, is:
I'm not sure what JNI is but I assume its one of the dependencies ?Code:Error: A JNI error has occurred. please check your installation and try again Exception in thread "main"...bla...bla...
But as I said I'm not getting any errors when I run it via eclipse so I dont understand why I'm getting them when I run the run.bat file
You said you dont get any errors with eclipse so why not just use it to run when its alot easier?
well, id like to put it on a server at some point, and so i'll need to figure out a way to run it from the CLI sooner or later anyway.
Of course i could just compile it down to a jar file and run that,but i'd rather like to have the source code on my server, so that if i want to make a change i can just ssh to the server, change the code and then rebuild.
(rather than open the source code in eclipse, change it, recompile down to a jar file, send it to the server and then run that)
thanks
but i think you misunderstood me (or maybe i just didn't explain it right),
i said that of course i could compile it down to a jar file, but i would rather have the actual source code on my server and then build it every time i make a change.
so i still need help :\
@echo off
title Server
"C:\Program Files\Java\jdk1.8.0_91\bin\java.exe" -cp bin;deps\*; ardi.Server
pause
but with your version
if not then i have no idea
https://stackoverflow.com/questions/...ot-for-another #2
You can run it on a VPS Through eclipse, is the the recent anti-leach free version I just released?
DL eclipse
put it on your server,
connect client to your vps IP
Good to go.
wow. it actually worked.
i guess it was because my java_home variable were set to anothe path than my jdk....or something?....idk
but anyways thanks
+rep to everyone for helping me
EDIT
wait it actually works regardless if i write the full path to the jdk or just write java....
i think the error was caused by another server already occupying that port (maybe one that had failed to terminate, so it was jus sitting quietly in the background), and now that I've restarted my pc it freed up that port.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |