Suitable java binary not found

Bug #1246338 reported by François Perruchas
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
omegat (Ubuntu)
Fix Released
Undecided
Andrej Shadura

Bug Description

I installed from the repos omegat on ubuntu 12.04, when I run it I get "Suitable java binary not found".
The solution is easy: in /usr/bin/omegat, the bash script tests java version and check if it's openjdk or sun. Replace 'sun' by 'oracle' and it works (at least here).

Ubuntu 12.04.3 LTS

omegat:
  Installed: 2.3.0.1+dfsg-3
  Candidate: 2.3.0.1+dfsg-3
  Version table:
 *** 2.3.0.1+dfsg-3 0
        500 http://es.archive.ubuntu.com/ubuntu/ precise/universe i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in omegat (Ubuntu):
status: New → Confirmed
Revision history for this message
Marina Latini (marina-dnb-latini) wrote :

Same problem on

Description: Ubuntu 13.10
Release: 13.10
Codename: saucy

with

omegat:
  Installato: 2.3.0.1+dfsg-3
  Candidato: 2.3.0.1+dfsg-3
  Tabella versione:
 *** 2.3.0.1+dfsg-3 0
        500 http://it.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
        100 /var/lib/dpkg/status

Replace 'sun' by 'oracle' in /usr(bin/omegat works for me.

Revision history for this message
Jacob Nordfalk (jacob-nordfalk) wrote :

I just installed it on Ubuntu 14.04:
$ sudo apt-get install omegat

When I start it, I get:
$ omegat
Suitable java binary not found.

Still in Ubuntu 14.04 only Java 1.5 and Java 6 is mentioned in the script!!

Please at least change the script to issue a warning, and then let ask if you want to continue, using Java 7 or 8.

Revision history for this message
NoOp (glgxg) wrote :

This worked for me:
http://askubuntu.com/a/502648

$ java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)

/opt/java/64/jre1.8.0_25/bin/java

I also have /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java installed, but not selected as my default java.

Revision history for this message
Sanjog Sigdel (sigdelsanjog) wrote :

The problem is still the same in my Ubuntu 14.04 LTS. Well I have edited the script and added my respective jdk. I'm using java 8 which i updated recently from a ppa as it was not available in Ubuntu Repository.

Revision history for this message
Joseph Chereshnovsky (joseph.chereshnovsky) wrote :

The problem is still the same in my Ubuntu 16.04 LTS.
OmegaT installed from a "universe" repository via APT

Oracle Java (JDK) 8 Installer from WebUpd8 team PPA

Revision history for this message
CANTE Pierre (pierrecante) wrote :

Hello,
http://paste2.org/FPX7n9ew
help needed

Revision history for this message
CANTE Pierre (pierrecante) wrote :

YES IT WORKS ! "The solution is easy: in /usr/bin/omegat, the bash script tests java version and check if it's openjdk or sun. Replace 'sun' by 'oracle' and it works (at least here)."

Revision history for this message
François Perruchas (francoisperruchas) wrote :

They should remove this package from the universe repository, the bug is 4 years old and the version provided is 2.3. From the official website http:/www.omegat.org/ you can download version 3.6 and 4.0

If you want to use the google translation api for example, it doesn't work with the universe version (too old).

Revision history for this message
CANTE Pierre (pierrecante) wrote :

Hello,
Many thanks for these informations

Revision history for this message
Andrej Shadura (andrew.sh) wrote :

Fixed in 3.6.0.10+dfsg-1

Changed in omegat (Ubuntu):
assignee: nobody → Andrej Shadura (andrew.sh)
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.