has anyone ran into an issue with running a .JAR and not being able to connect to the server however others using the same file can?

I have configured outbound rules and also tried to disable my firewall, it loads up properly and everything just says "cannot connect to server" however I can connect perfectly fine using intelliJ. I have ran the JAR in CMD and 0 errors came up. This file is what 5+ others have used to connect to the server except me and someone else have to run the client folder in IntelliJ for this to work. Also do not have an anti virus software blocking the connection.

Help would be greatly appreciated as I expect it to be something small however this small issue I am unable to figure out

really silly mistake haha reinstalled the JRE and now I am able to see an errror!

Code:

Error while generating uid. Skipping step.
java.lang.NullPointerException
        at com.client.Stream.writeString(Stream.java:193)
        at com.client.Client.login(Client.java:8712)
        at com.client.Client.processLoginScreenInput(Client.java:14943)
        at com.client.Client.processGameLoop(Client.java:3244)
        at com.client.RSApplet.run(RSApplet.java:275)
        at com.client.Client.run(Client.java:6130)
        at java.lang.Thread.run(Unknown Source)