Welcome to the Linux Foundation Forum!

Help with run.bat

Options
Brout
Brout Posts: 1
edited July 2015 in Command Line

Okay so i bought a linux vps for my rsps and i managed to run the run.bat with wine i still cant convert the path and commands to linux (ubuntu) i tried also to run it as run.sh it still can't run the file because its obviously windows coded heres my rune.bat:

@echo off

title The Amazing Brout-Scape 2

"C:\Program Files\Java\jdk1.7.0_67\bin\java.exe" -Xmx1000m -cp bin;deps/GTLVote.jar;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server

pause

if anyone could convert that to linux ubunti that would really appreciated!

also if you need my jdk directory:

this: /usr/lib/jvm/java-1.7.0-openjdk-amd64/

or this: /usr/lib/jvm/java-7-openjdk-amd64/

Comments

  • FHR
    FHR Posts: 1
    Options
    You can run the program like so:
    java -Xmx1000m -cp bin;deps/GTLVote.jar;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server
    

    If you want it as a shell script:
    #!/bin/bash
    
    java -Xmx1000m -cp bin;deps/GTLVote.jar;deps/poi.jar;deps/mysql.jar;deps/mina.jar;deps/slf4j.jar;deps/slf4j-nop.jar;deps/jython.jar;log4j-1.2.15.jar; server.Server
    

Categories

Upcoming Training