Jump to content
  • 0

[Linux] Start launcher from terminal


Question

Posted

Hello,

I'm very ashamed that my FP here is a question, but I need your help.

The situation is that I need the command to run the launcher from the terminal, because I have a sandybridge and to use my NVidia, I need to put optirun in front of the command. I know it should be something like:

optirun java -Xmx1024M -Xms512M -cp technic-launcher-latest.jar [ENTER CLASS HERE]

But I'm not sure if which class I should enter.

Please help.

Greetings,

kwartel MOD EDIT: for consistency. clearly you have already been told about signing posts and such.

10 answers to this question

Recommended Posts

  • 0
Posted

try

optirun java -Xmx1024M -Xms512M [b]-jar[/b] technic-launcher-latest.jar

The forum tags don't work in code, and...this might cause him problems. OP, don't put the bold tags in there. :) (Do use the -jar, though.)

  • 0
Posted

The forum tags don't work in code, and...this might cause him problems. OP, don't put the bold tags in there. :) (Do use the -jar, though.)

Derp, sorry @_@

The full (suggested) command is

optirun java -Xmx1024M -Xms512M -jar technic-launcher-latest.jar

  • 0
Posted

I tried this and it didn't work. It said

bash: command not found

So i tried:

./jre1.6.0_32/bin/ optirun java -Xmx1024M -Xms512M -jar technic-launcher-latest.jar

All it says is:

bash: ./jre1.6.0_32/bin/: is a directory.

When I launch Minecraft iwould usually use:

./jre1.6.0_32/bin/java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame

Which is why I put the front text on. Anyone know what I'm doing wrong?

  • 0
Posted

I tried this and it didn't work. It said

bash: command not found

So i tried:

./jre1.6.0_32/bin/ optirun java -Xmx1024M -Xms512M -jar technic-launcher-latest.jar

All it says is:

bash: ./jre1.6.0_32/bin/: is a directory.

When I launch Minecraft iwould usually use:

./jre1.6.0_32/bin/java -Xmx1024M -Xms512M -cp minecraft.jar net.minecraft.LauncherFrame

Which is why I put the front text on. Anyone know what I'm doing wrong?

dont EVER use paths in linux, they are unnecessary, and just remind me of windows, *shudder*.

instead, just use this command:

java -jar technic-launcher-latest.jar

that is what i always use, and it works just fine.

  • 0
Posted

dont EVER use paths in linux, they are unnecessary, and just remind me of windows, *shudder*.

instead, just use this command:

java -jar technic-launcher-latest.jar

that is what i always use, and it works just fine.

I... wha? The only reason that works is because java is in your profile's PATH variable. Windows is capable of the same thing, assuming you, or the installer, has successfully put java's bin folder into the PATH variable there, too.

  • 0
Posted

When i use that, it just says:

Exception in thread "main" java.lang.ClassFormatError: org.spoutcraft.launcher.Main (unrecognized class file version)

at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)

at java.lang.ClassLoader.defineClass(libgcj.so.7rh)

at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)

at java.net.URLClassLoader.findClass(libgcj.so.7rh)

at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh)

at java.lang.ClassLoader.loadClass(libgcj.so.7rh)

at java.lang.ClassLoader.loadClass(libgcj.so.7rh)

at gnu.java.lang.MainThread.run(libgcj.so.7rh)

Maybe i downloaded the file wrong?

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