Jump to content
  • 0

Issues with Java version on mac with local server and technic launcher


Question

Posted

Title: Issues with Java version on mac with local server and technic launcher

Version: 3.1.2

OS: Mac OS 10.7.4

Java Version: 1.7.0_04 and 1.5.0_33-b03-424 (the latest distributed by apple)

Quick Summary:

On my mac the Tekkit server requires Java 7, but the technic launcher won't launch unless it's with Java 6.

Description of Problem:

I have run into an issue on my mac. I want to test a Tekkit 3.1.2 server locally and then connect to it with the Tekkit launcher, running 3.1.2 as well.

I Just found out that the Tekkit server requires Java 7, so I have that installed, and set to be the default java version via the java preferences utility:

toVvYm.png

However when I now attempt to run the launcher I get to the login screen, and it just closes when I click 'Login' after connecting to the server, etc.

After some testing it turns out that the launcher only launches correctly when I have Java 7 disabled or set to a lower priority:

FKmY1m.png

When it is loaded with Java 6 it works great.

This presents me with a bit of a problem:

  • To run the technic launcher I need to use Java 6
  • To run a local tekkit server I need to use Java 7

This makes testing a local server somewhat problematic as you might imagine.

Am I doing something wrong here? Has anyone else experienced the Technic Launcher not working with Java 7 on mac?

Alternatively, Is there a way to force java to use a specific version via commandline arguements? If so I could set 6 as priority for the launcher and then modify the server launch script to run it with 7, but in any case this seems less than ideal.

22 answers to this question

Recommended Posts

  • 0
Posted

yer i get the same thing. i will update you if i find anything

ok i found a work around.

start the server with java 7

then set java 6 as preferred

then start the launcher just like normal.

  • 0
Posted

yer i get the same thing. i will update you if i find anything

ok i found a work around.

start the server with java 7

then set java 6 as preferred

then start the launcher just like normal.

Hmm, yeah that does work, but it's really not ideal. Thanks for checking in any case!

I do feel that this issue still warrants the devs' attention, to at least see if the launcher can be made to work for mac on java 7. If there are any technical limitations that prevent this from working I'd be curious to know as well.

  • 0
Posted

I've figured out a workaround for the time being:

  1. Set Java 1.6 to be higher than 1.7 in java preference (Macintosh HD/Applications/Utilities/Java Preferences.app).
  2. Instead of 'java' in your commandline argument for the server, use

    /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/java


And there you go, the launcher will default to the 1.6, and the server is forced to use 1.7, and everything will work without having to switch your java version each time :)

  • 0
Posted

Since yesterday the new mac update has removed Java 6 and replaced it with Java 7. There is currently no way to make Java 6 default again.

However Java 6 is still present in /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java

I tried to start the technic launcher jar with this java, but it always restarts with some other command line options and then uses Java 7.

Is there a way to prevent this?

  • 0
Posted

Since yesterday the new mac update has removed Java 6 and replaced it with Java 7. There is currently no way to make Java 6 default again.

However Java 6 is still present in /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java

I tried to start the technic launcher jar with this java, but it always restarts with some other command line options and then uses Java 7.

Is there a way to prevent this?

http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk.html#version

I believe you should be able to use the java_home tool/environment variable

EDIT - Here is another way. http://codinginharmony.blogspot.com/2010/04/how-to-change-default-jre-in-mac-os-x.html You can go into the terminal and change the sym link of the folder, and I think it should work

  • 0
Posted

Thank you.

export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

works.

But it would be nice if sooner or later the launcher would work with 1.7 too.

  • 0
Posted

I have the same problem with my mac, however i cannot find any way of getting Java 6 to work. Any suggestions? I can load the launcher but when i click login i get a white screen. I used to fix the problem using Java preferences but this has now been removed so i am unable to do so. Please help!

  • 0
Posted

Download the technic launcher jar to your Downloadsfolder

Open a terminal and type the following:

cd Downloads

export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

java -jar technic-launcher-latest.jar

  • 0
Posted

By the way, I just changed that slightly so it runs off my desktop and made it into a .command file to make it easier for me. Thanks for the commands though.

  • 0
Posted

Download the technic launcher jar to your Downloadsfolder

Open a terminal and type the following:

cd Downloads

export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home

java -jar technic-launcher-latest.jar

YOU ARE A LIFE SAVER!!!!! THE ONLY THING THAT HAS WORKED FOR ME THUS FAR!

  • 0
Posted

By the way, I just changed that slightly so it runs off my desktop and made it into a .command file to make it easier for me. Thanks for the commands though.

how did u turn the commands into a .command file that you can open? When i try to open it through terminal, it tells me: "The file Technic Launcher.command could not be executed because you do not have the appropriate access privileges." The thing is, I'm admin on my computer.

  • 0
Posted

Hi sorry about this extremely late response but I only got the email now. Ok what you need to do is open a new terminal window and type in:

chmod a+x

Put a space after it and then drag your command file into the window and press enter. This should allow you to run it.

  • 0
Posted

Hey everyone! So did some searching and if you follow this link

and to what this guy says (theres another link you must click on and links within that just follow it!) Basiclally its a script to run tekkit with java 6 even with java 7. It explains how it works and why. Also what was stopping it from working.

You will need mine craft 1.5.1 so if you have the new version 1.5.2 you will need to get the old one for tekkit to work. but this is the last thing you need to do.

Make sure your file names match for the appropriate files as this effects the launch. So chances are if you done everything these guys have said and its just not working one of the file names dont match. (use the one from the scrip for the original tekkit launcher)

Yes it dosnt make sense on my behalf but use some awesome brain power and listen to the guys who do make sense =] -->

(same link as above) go go go =]

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