Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Minecraft
You last visited: Today at 21:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Java command line

Discussion on Java command line within the Minecraft forum part of the Other Online Games category.

Reply
 
Old   #1
 
Aries1337​'s Avatar
 
elite*gold: 0
The Black Market: 123/0/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
Aries1337​ is offline  
Old 06/11/2014, 17:25   #2
Administrator
 
lordsill's Avatar
 
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
lordsill is offline  
Old 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.
ComputerBaer is offline  
Old 06/11/2014, 17:29   #4
 
Aries1337​'s Avatar
 
elite*gold: 0
The Black Market: 123/0/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
Aries1337​ is offline  
Reply


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


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.