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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...