DkeRee / Chessgle

0 stars 0 forks source link

how to run this Java code ? #1

Open tissatussa opened 10 months ago

tissatussa commented 10 months ago

i must be dumb .. i have your package, i created the file main.class by javac, but i get this error :

~/Compiled/Chessgle-master$ java ./Main
Error: Could not find or load main class ..Main
Caused by: java.lang.ClassNotFoundException: //Main

Stackoverflow didn't help me .. i'm more into Python .. how to run this thing ?

[ i'm on Xubuntu 22.04 ]

DkeRee commented 10 months ago

I'm not sure tbh. You should be able to load it in. I also don't really suggest playing against it, it's really bad lol

tissatussa commented 10 months ago

ok, accepted :-) however, this project can teach me some things about java : how to compile a set of .java files on Linux ?

i know a few java based chess engines, they are .jar files which i can run by java -jar engine.jar. Are you on Linux ? Can you reproduce my error ? It seems to be very basic : just running a Main ..

how to get debug info when executing javac or java ? Assuming your code is correct, i must be doing something wrong or my OS is missing some module ?

DkeRee commented 9 months ago

Oh, sorry, I didn't see your reply. It's been much too long since I've worked on this. Sorry, I can't really help you with much. I made this on Windows 11.