Dedicated Server - Disable imports

Hi,
I have a dedicated server that I need to run on a unix server that has no graphics card / sound card.
I can disable drawing and sound inside the program but I still import LWJGL, etc. (by not calling those methods that use the libraries)

This will cause the program not to run, even though it doesn’t actually use LWJGL or sound anywhere in the program.

What are possible workarounds for this?

Thanks,
Roland

What errors do you get? And why not create a separate server program that doesn’t import LWJGL stuff?

yeah normally you would great three projects.

A common lib which holds everything(classes, resources) which are used by both the server and client.

and then the client and server executables which holds the specific code like rendering and so on.

I don’t know what errors I got because I don’t have a machine to test it on right now, I just knew it didn’t work ;D
Splitting into 3 sounds the best way.
Thanks :slight_smile: