Java not working after Ubuntu upgrade

Asked by NIVOL

After upgrade from Ubuntu 7.10 to Ubuntu 8.04 my openoffice database dos not work.
When I start a new database and try to access "Tables" I get this message (translated from danish):
OpenOffice.org is demanding a Java runtime environment to work. The chosen jre is defect. Install a new jre.
In database menu: functions/settings/OpenOffice.org/java my installed jre show up (i.e. Sun Microsystems inc. vers.1.6.0_06 and Free Software Foundation vers.1.5.0), but it is not possible to select any. I can select an item, but the selection has dissapeared when I enter the menu item next time.

I have tried to reinstall all my jre.
I have renewed (not reinstalled) my OpenOffice.org database under Synaptic

All java applets seem to work in my firefox vers.3.0b5

What can I do to get OpenOffice.org database to work again.

/NIVOL

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openoffice.org Edit question
Assignee:
No assignee Edit question
Solved by:
nglnx
Solved:
Last query:
Last reply:
Revision history for this message
nglnx (nglnx) said :
#1

Please check if the package openoffice.org-java-common is installed. If not, install it and see if the problem goes away

Revision history for this message
NIVOL (niels-vollmer) said :
#2

Hi nglnx
Yes openoffice.org-java-common is installed. I just tried a reinstallation via synaptic but it did not solve my problem.

Revision history for this message
NIVOL (niels-vollmer) said :
#3

I now reinstalled all packages related to "java" searched by synaptic.
It did not solv the problem.

This is the history file:

Commit Log for Sun Apr 27 19:24:47 2008

Installerede de følgende pakker:
libbackport-util-concurrent-java (2.2+dfsg-1)
libcommons-codec-java (1.3-4)
libcommons-io-java-doc (1.3.2-2)
libdom4j-java (1.6.1+dfsg-2build1)
libdom4j-java-doc (1.6.1+dfsg-2build1)
libjaxen-java (1.1.1-2)
libjaxme-java (0.5.2+dfsg-1)
libswidgets-java (0.1.4-1build1)
libxpp2-java (2.1.10-4)
libxpp3-java (1.1.3.4.O-3)

Geninstallerede de følgende pakker:
brltty (3.9-6ubuntu1)
bsh (2.0b4-7ubuntu1)
bsh-gcj (2.0b4-7ubuntu1)
dbus (1.1.20-1ubuntu1)
fastjar (2:0.95-1)
gcj-4.2-base (4.2.3-2ubuntu6)
gdb (6.8-1ubuntu1)
gij (4:4.2.3-1ubuntu3)
gij-4.2 (4.2.3-2ubuntu6)
java-common (0.28ubuntu3)
java-gcj-compat (1.0.77-2ubuntu2)
java-gcj-compat-headless (1.0.77-2ubuntu2)
kubuntu-restricted-extras (15)
libaccess-bridge-java (1.22.0-0ubuntu5)
libbcel-java (5.2-3ubuntu1)
libdbus-1-3 (1.1.20-1ubuntu1)
libgcj-common (1:4.2.3-1ubuntu3)
libgcj8-1 (4.2.3-2ubuntu6)
libgcj8-jar (4.2.3-2ubuntu6)
libgtksourceview-common (1.8.5-1)
libgtksourceview2.0-common (2.2.1-1)
libhsqldb-java (1.8.0.9-2)
libhsqldb-java-gcj (1.8.0.9-2)
libjaxp1.3-java (1.3.04-2)
libjaxp1.3-java-gcj (1.3.04-2)
libjline-java (0.9.93-1ubuntu1)
liblog4j1.2-java (1.2.15-2)
libmx4j-java (3.0.1-3)
libregexp-java (1.4-4)
libservlet2.4-java (5.0.30-6ubuntu1)
libxalan2-java (2.7.0-5)
libxalan2-java-gcj (2.7.0-5)
libxerces2-java (2.9.0-1)
libxerces2-java-gcj (2.9.0-1)
mozilla-plugin-vlc (0.8.6.release.e+x264svn20071224+faad2.6.1-0ubuntu3)
openjdk-6-jre (6b09-0ubuntu2)
openjdk-6-jre-headless (6b09-0ubuntu2)
openjdk-6-jre-lib (6b09-0ubuntu2)
openoffice.org (1:2.4.0-3ubuntu6)
openoffice.org-base (1:2.4.0-3ubuntu6)
openoffice.org-gcj (1:2.4.0-3ubuntu6)
openoffice.org-java-common (1:2.4.0-3ubuntu6)
openoffice.org-officebean (1:2.4.0-3ubuntu6)
openoffice.org-writer2latex (0.5-6)
sun-java6-bin (6-06-0ubuntu1)
sun-java6-fonts (6-06-0ubuntu1)
sun-java6-jre (6-06-0ubuntu1)
sun-java6-plugin (6-06-0ubuntu1)
tzdata-java (2008b-1ubuntu1)
ubuntu-restricted-extras (15)

Revision history for this message
Best nglnx (nglnx) said :
#4

Some users have reported that after an upgrade to hardy, the oopenoffice java configuration file becomes obsolete and doesn't get renewed ($HOME/.openoffice.org2/user/config/javasettings_Linux_x86.xml). That leaves java non-working by default in the openoffice shipped with hardy. The proposed workaround is to delete the file, since openoffice recreates it upon restart.

Revision history for this message
NIVOL (niels-vollmer) said :
#5

Thanks nglnx, that solved my question.

Revision history for this message
memetali (ma-alabora) said :
#6

This also solved my problem. Thank you people.

Revision history for this message
tcobb (tsams515) said :
#7

I'm hoping this will solve my problem,but I can't seem to locate the file for deletion. Could you please explain? I've been pleased using Ubuntu for the past few months but after upgrading to 8.0.4 this past week I can't access my employers emulator. After I log in and try to run it a message pops up that says additional plugins are needed to view this page. So, I click on the download plugins. It says the following plugins are available: Java Runtime Environment. I press next to install and then it says Not Available. Then it gives the option for a manual install. I've tried this over and over to no avail. I would REALLY appreciate some direction.

Revision history for this message
NIVOL (niels-vollmer) said :
#8

Hallo tcobb

You find the actual file ($HOME/.openoffice.org2/user/config/javasettings_Linux_x86.xml) in your home directory.
Check show hidden files in your file manager. You will then see files which names starts with a dot.
When you find the file "javasettings_Linux_x86.xml" select it and send it to the trash (waste bag). Restart your Ubuntu.

This helped me.

/NIVOL

Revision history for this message
tcobb (tsams515) said :
#9

Dang!! I was so close...got all the way to the config folder and there was no javasettings_Linux_x86.xml file.

Any other suggestions?

Revision history for this message
NIVOL (niels-vollmer) said :
#10

First you have to check if the relevant java-packages are installed. Look under "Progammes/add/remove" or use synaptic under system/administration.
Then you have to open OpenOffice/write. See functions/settings/java. After a while the installed java options should show up. Check the box "use java runtime environment" and select one of the possibilities in the list. In my installation it is "Sun Microsystems Inc. - version 1.6.0_06"

/NIVOL

Revision history for this message
tcobb (tsams515) said :
#11

NIVOL- Thanks for the info. But I am a complete novice when it comes to this system. Could you please give me a little more direction as to how to follow your instructions? I'd really appreciate it. I think we're getting closer.

Revision history for this message
NIVOL (niels-vollmer) said :
#12

Well, you open the feature for import of new programs (packages) by select Programs in the main menu. Then you select add/remove programs (I hope this is the wording in English, my Ububtu is set up for Danish language).
When the window opens you select "all" in the leftmost menu and write "java" in the search field (upper right).
You select "all available applications" in the "show" windov (upper center).
Now you hould see a row of applications, some are checked others are not.
In my setup I find "Sun Java 6 runtime"-checked, "Ubuntu restricted extras"-checked, "OpenjDK java runtime"-checked (this package may be special danish, you may have one for your own language (which?). Maybe this package is not mandatory), "Sun java 6.0 plugin"-checked.

If these packages are not checked in your Ubuntu, do check them and hit the Apply Changes button (lower right).
Now the packages will be imported and installed. You need to give your password (same as login to your account).

Sometimes a restart is needed, sometimes not.

Now you start your firefox to se if java is working.

Good luck/ NIVOL