Ubuntu 9.10 java issue? Fixed!

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Ubuntu 9.10 java issue? Fixed!

Post by Peter Florance »

hmm I wonder if Java has changed. I upgraded to 9.10 and when I try to launch it from terminal and get:

Code: Select all

peter@peter-laptop:~/apps/TunerStudio$ sh TunerStudio.sh
Jar Name:TunerStudioMS.jar
peter@peter-laptop:~/apps/TunerStudio$ 
MegaLogViewer is also dead.

Any insight would be appreciated.

Thanks!
Last edited by Peter Florance on Thu Jan 07, 2010 9:21 am, edited 1 time in total.
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 9.10 java issue?

Post by LT401Vette »

In a Terminal try:
java -version
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: Ubuntu 9.10 java issue?

Post by Peter Florance »

LT401Vette wrote:In a Terminal try:
java -version
I did that, but can't recall what it said.
Laptop's at work; I'll do it first thing tomorrow and post

Thanks!
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: Ubuntu 9.10 java issue?

Post by Peter Florance »

LT401Vette wrote:In a Terminal try:
java -version

Code: Select all

peter@peter-laptop:~$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.1

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
peter@peter-laptop:~$ 
Thanks!
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Ubuntu 9.10 java issue?

Post by jsmcortina »

For reference, I'm using Sun's Java from http://www.java.com on my Linux desktop (and similar on my Windows laptop)

Desktop:

Code: Select all

java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 9.10 java issue?

Post by LT401Vette »

Yes, it looks like you aren't running on Sun's Java.
In your package manager sun-java should be listed. Install that.
With the latest Open Java I have actually gotten TS to work, but it was unusably slow.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: Ubuntu 9.10 java issue?

Post by Peter Florance »

Hmm still not there

Code: Select all

peter@peter-laptop:~$ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk
[sudo] password for peter: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
sun-java6-bin is already the newest version.
sun-java6-bin set to manually installed.
sun-java6-jre is already the newest version.
sun-java6-jdk is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
jsmcortina
Site Admin
Posts: 39621
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: Ubuntu 9.10 java issue?

Post by jsmcortina »

try
$ which java

Maybe you need to link the sun-java into your path

I get:

Code: Select all

$ which java
/usr/bin/java
$ ls -l /usr/bin/java
lrwxrwxrwx 1 root root 25 2007-05-11 23:06 /usr/bin/java -> /usr/java/latest/bin/java
James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: Ubuntu 9.10 java issue?

Post by Peter Florance »

Fixed!
I had to do this:

Code: Select all

$ sudo update-java-alternatives -s java-6-sun
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: Ubuntu 9.10 java issue?

Post by LT401Vette »

Edit: It looks like you beat me :)


It looks like sun-java is installed, but doesn't seem to be set as the default.

Running this command should make Sun the default:

Code: Select all

sudo update-java-alternatives -s java-6-sun
If not, there is more info here check out this link, in the section "Setup the default Java version", it tells how to check the default java.
http://www.cyberciti.biz/faq/howto-ubun ... e-jdk-jre/
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Peter Florance
Super MS/Extra'er
Posts: 3653
Joined: Fri Apr 02, 2004 8:40 pm
Location: Virginia Beach, VA
Contact:

Re: Ubuntu 9.10 java issue? Fixed!

Post by Peter Florance »

Thanks Phil and James!
Editing /etc/jvm didn't do it (seemed to be suggested by another site). I had to run sudo update-java-alternatives -s java-6-sun to get the correct java to be used.

Nice to be back and up to date

Now if I can just fix my broken bluetooth stack...
Peter Florance
PF Tuning
81 BMW Euro 528i ESP Car
60-2 Wheel LS2 Coils, Low Z Inj
Co-Driver 1999 BMW E46 DSP car.
Post Reply