|
You last visited: Today at 21:51
Advertisement
Java command line
Discussion on Java command line within the Minecraft forum part of the Other Online Games category.
06/11/2014, 17:22
|
#1
|
elite*gold: 0
Join Date: Mar 2012
Posts: 1,321
Received Thanks: 164
|
Java command line
Bei meinem Server Anbieter kann der Server leider nur per .jar Datei gestartet werden aber das Modpack das ich spielen will kann man nur per .bat starten.
Kann man den inhalt irgendwie als .jar packen damit es der Server annimmt  ?
Code:
@ECHO OFF
:: When setting the memory below make sure to include the amount of ram letter. M = MB, G = GB. Don't use 1GB for example, it's 1G ::
:: This is 64-bit memory ::
set memsixtyfour=2G
:: This is 32-bit memory - maximum 1.2G ish::
set memthirtytwo=1G
:: Don't edit past this point ::
if $SYSTEM_os_arch==x86 (
echo OS is 32
set mem=%memthirtytwo%
) else (
echo OS is 64
set mem=%memsixtyfour%
)
java -Xmx%mem% -XX:MaxPermSize=256M -jar forge-1.6.4-9.11.1.965-universal.jar nogui
PAUSE
|
|
|
06/11/2014, 17:25
|
#2
|
Administrator
elite*gold: 27591
Join Date: May 2011
Posts: 21,014
Received Thanks: 2,353
|
Daran kannst du nix ändern
ABER:
Benenne die forge-1.6.4-9.11.1.965-universal.jar so um, dass sie wie die jar datei heißt, die er sonst immer startet. Fertig ist das Problem
|
|
|
06/11/2014, 17:28
|
#3
|
Moderator
elite*gold: 558
Join Date: Feb 2010
Posts: 6,547
Received Thanks: 1,418
|
Die Batchdatei macht auch nicht mehr als die forge-1.6.4-9.11.1.965-universal.jar starten und Java 1 GB (32 Bit) oder 2 GB (64 Bit) Arbeitsspeicher zuzuweisen.
Da dein Anbieter wohl den Teil mit dem Arbeitsspeicher macht, musst du nur noch dafür sorgen, dass die forge-1.6.4-9.11.1.965-universal.jar gestartet wird.
Ansonsten: Ja, man könnte das in Java nachbilden, aber entweder es geht garnicht oder dein Anbieter wird alles andere als erfreut darüber sein, weil du dann theoretisch alles möglich mit einer beliebigen Menge Arbeitsspeicher starten kannst.
|
|
|
06/11/2014, 17:29
|
#4
|
elite*gold: 0
Join Date: Mar 2012
Posts: 1,321
Received Thanks: 164
|
Das Problem ist ich kenne mich damit nicht wirklich aus aber mir ist aufgefallen, dass die Mods halt nur über die .bat geladen werden.
Wird durch die Bat die forge-1.6.4-9.11.1.965-universal.jar geladen?
#edit okay danke
|
|
|
Similar Threads
|
Command line interface working command
08/05/2012 - DarkOrbit - 27 Replies
I found only one working command:
Enter "J" when you are in teleport
Anyone know other commands?
|
Command Line
05/17/2010 - EO PServer Hosting - 4 Replies
I know this is probably a really newb question but is there anyway to get a command line up and enter
INSERT INTO `cq_levexp` VALUES ('1', '0', '0001', '864', '864', '0400', '160', '4', '1600', '4', '136024', '10', '75', '4', '0', '2', '1244160', '0');
into it to change the db. That would be much faster then going through all the db tables to manually change everything.
I know this is probably a really newb question but is there anyway to get a command line up and enter
INSERT INTO...
|
All times are GMT +2. The time now is 21:52.
|
|