Jump to content

Question

Posted

Hey guys me and some guys just started a Ubuntu server and got the problem with the server installer because it uses the ".bat" file well im a noob at programming and i tryed to make it a jar file and that dident work at all so im on thin ice and dont know what to do please help me out

P.S im sorry if i posted it wrong or it is allready posted i couldent seem to find it...

1 answer to this question

Recommended Posts

  • 0
Posted

mate you shouldn't be using any linux unless you either know what your doing or you are willing to learn

if i were with your shoes i would have googled every single command from that .bat file >_>

im refreshing my memory, just downloaded the tekkit server.. lets see how complicated it is.... *all anxious*

java -Xmx3G -Xms2G -jar Tekkit.jar nogui

pause


dude seriouslly...



1__ the code

edit the pause out of there, in linux the code should be


java -Xmx3G -Xms2G -jar Tekkit.jar nogui

the pause is only there so the cmd window wouldn't close after executing the code, in ubuntu it is not the case.

2_ file type

change the file's extension to .sh

( right click it, rename, change the .bat to .sh )

3_ permissions

right click it, click on properties

go to permissions ( 2n'd tab )

where it says " Execute: [ ] Allaw executing file as program "

tick that box

i do hope you know what to do next for it will work as good as it would on windows...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...