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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...