So , for some reason this error likes following me , laptop to laptop , project to project I get the error Could not find or load mainclass when I export it as a runnable jar. I follow the standard exporting , I goto export , I press runnable jar , save it and make sure that the librarys are included. BAM could not find or load main class. I am lost and frustrated with this error.
Check the Manifest.MF.
CopyableCougar4
That’s a lot of projects you got there. :o
Unfortunately most of them are unfinished. :emo: They’re playable, but not entertaining for very long.
how do you “export” the jar ?
gradle, maven, ant, something else ?
I think I shall use the gyazo magic to aid with this .
then I open the mystical file options and I open up the luxurious export options pane.
I then export it after inspecting the drop down then gently pressing the finish button.
Now I open up the dark black command prompt and enter the file location .
arrr. eclipse. not familiar with, sorry for not helping.
“java solis.jar” is looking for a class “jar” in the package “solis”.
You are looking for “java -jar SOLIS.jar”
Make sure your Jar can find the lwjgl library (e. it’s located where you’re games loading it.). There should be now help for this one on the lwjgl website.
I always click the option to package the libraries instead of extract them. Don’t know if it makes a difference though.
Its the natives that it uses , so I will have to plonk it all together and make a launcher for it , which is not too difficult I can do that in python.