[Solved] Wrong Java installation

Issues with installing under all versions of MS Windows
Post Reply
gavinroberts
Posts: 11
Joined: Wed Mar 06, 2013 2:55 am

[Solved] Wrong Java installation

Post by gavinroberts »

get error message
wrong java installation
ive used open office for years without any trouble
i uninstalled and reinstalled but it still wont work

Title Edited. A descriptive title for posts helps others who are searching for solutions and increases the chances of a reply (Hagar, Moderator).
Last edited by Hagar Delest on Sat Apr 13, 2013 10:24 pm, edited 1 time in total.
Reason: tagged [Solved].
OpenOffice 3.4.1 on windows 7 ultimate
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

Re: cant open

Post by Bill »

Have you searched the forum? There are many threads about fixing various Java problems.
AOO 4.1.14 on Ubuntu MATE 22.04
gavinroberts
Posts: 11
Joined: Wed Mar 06, 2013 2:55 am

Re: Wrong Java installation

Post by gavinroberts »

couldnt find anything
tried to open a backup file but that wouldnt open either
OpenOffice 3.4.1 on windows 7 ultimate
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

Re: Wrong Java installation

Post by Bill »

"Wrong java installation" is not an error message I've seen before. What version of Java do you have installed? Have you enabled the use of Java in the AOO options? What does a backup file have to do with the Java problem? What did you uninstall and reinstall? Without specific information, it's impossible to diagnose the problem.
AOO 4.1.14 on Ubuntu MATE 22.04
gavinroberts
Posts: 11
Joined: Wed Mar 06, 2013 2:55 am

Re: Wrong Java installation

Post by gavinroberts »

is it possible to paste into a reply
then i could do a screen shot
its only the database that wont open
first error message is
the connection to the data source "NET contacts (2) (1)" could not be established.
The connection to the external data source could not be established.
No SDBC driver was found for the given URL.
OK More
It was giving a Java error message when I pressed OK but now nothing happens
OpenOffice 3.4.1 on windows 7 ultimate
User avatar
Greengiant224
Posts: 283
Joined: Wed Jun 09, 2010 3:50 pm
Location: All Over The World

Re: Wrong Java installation

Post by Greengiant224 »

1. What database driver are you using? i.e. (HSQL [embedded or server], MySQL, PostgreSQL or msSQL as a FEBE)

2. What Java version is installed?

3. What OS version? (32bit/64bit)

This may help to diagnose where/what the problem is ! ! !

Win 7, Portable AOO 4.1.14, LibreOffice 6.2, 7.4.5 & 7.6.1 (Java 1.7.81 & 1.8.0_281) utilising HSQL 1.8.10 & 2.4.*, MySQL, PostgreSQL, SQLite
+ Blood, Sweat and Tears (Application, Determination and Perseverance)
gavinroberts
Posts: 11
Joined: Wed Mar 06, 2013 2:55 am

Re: Wrong Java installation

Post by gavinroberts »

java version is 7 update 17
dont know any of the others
i only use the standard open office
OpenOffice 3.4.1 on windows 7 ultimate
User avatar
MikeytheMagnificent
Posts: 137
Joined: Fri Apr 11, 2008 12:06 am
Location: W. Yorks UK

Re: Wrong Java installation

Post by MikeytheMagnificent »

try this
it comes up when Base requires Java and Base doesnt deal with Java 7
Many opportunities to add short Tutorials or faq's are missed

1. Must have obvious title to be found easily
2. Keep to objectives
3. Use very clear language
4. Difficult to get right
5. Rewards are few
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Wrong Java installation

Post by Hagar Delest »

See here also: [Solved] Java Runtime Environment problems.
You really need to know if it's 32 or64bit. AOO is compatible with 32bit version only.

Please add '[Solved]' at the beginning of your first post title (edit button) if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Greengiant224
Posts: 283
Joined: Wed Jun 09, 2010 3:50 pm
Location: All Over The World

Re: Wrong Java installation

Post by Greengiant224 »

gavinroberts:

As AOO/LO is a 32bit program it needs a 32bit Java JRE. You can install 32bit and 64bit Java alongside
one another on a 64bit OS.

The vanilla installation of AOO v3.4.1 includes the MS Visual C++ 2008 Redistributable (x86) Package
This requires you to use the Java v1.6 series JRE (32bit).

To use Java v1.7 JRE (32bit) you need to install the Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) separately.
To check if you have this installed go to:
>>Control Panel>>Programs and click on Programs and Features
and scroll down the list to see if it is already installed.

If not, go to: http://www.microsoft.com/en-us/download ... px?id=8328
to download, and then install it.

Reboot if need be. Java v1.7 JRE (32bit) should now be recognised by AOO/LO. :bravo:

Future releases of AOO/LO will include the Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) which will automatically work with Java 1.7 JRE (32bit).

AFAIK Java v 1.6 was only being maintained up until February 2013.

To check which OS you use and if/any Java versions are installed you can use this batch file:
copy and save this as 'CheckJava.bat'

Code: Select all


REM
REM Filename: CheckJava.bat
REM
@echo off  && setlocal enableextensions && title Java Version

if not exist "%programfiles(x86)%" (goto 32BIT)
echo ** You are running a 64-bit Windows OS **
if exist "%programW6432%\Java" (echo ** You have a Java 64bit JRE installed **)
if not exist "%programW6432%\Java" (echo ** You DO NOT have a Java 64bit JRE installed  **)

if exist "%programfiles(x86)%\Java" (echo ** You have a Java 32bit JRE installed **)
if not exist "%programfiles(x86)%\Java" (echo ** You DO NOT have a Java 32bit JRE installed **) 
goto END

:32BIT
echo ** You are running a 32-bit Windows OS **
if exist "%ProgramFiles%\Java" (echo ** You have a Java 32bit JRE installed **) 
if not exist "%ProgramFiles%\Java" (echo ** You DO NOT have a Java 32bit JRE installed **)

:END
echo.
echo ***************************************************************** 
echo ** Checking OS and Installed versions of Java has now finished **
echo *****************************************************************
pause
cls
endlocal
@echo on
REM exit

Good luck,
 Edit: Last Updated: 19 Mar 2013 added batch file info 
Greengiant224

Win 7, Portable AOO 4.1.14, LibreOffice 6.2, 7.4.5 & 7.6.1 (Java 1.7.81 & 1.8.0_281) utilising HSQL 1.8.10 & 2.4.*, MySQL, PostgreSQL, SQLite
+ Blood, Sweat and Tears (Application, Determination and Perseverance)
gavinroberts
Posts: 11
Joined: Wed Mar 06, 2013 2:55 am

Re: Wrong Java installation

Post by gavinroberts »

im not computer literate
i use open office (or i used to)
i dont know any thing about java or any sort of programming
i think it just stoped working when i upgraded to the latest version
OpenOffice 3.4.1 on windows 7 ultimate
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

Re: Wrong Java installation

Post by Bill »

Bill wrote:Legacy versions of OOo and AOO 3.4.0 and AOO 3.4.1 can use 32-bit Java 6.

AOO 3.4.0 and 3.4.1 can use 32-bit Java 7 if the Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) is installed. The "JRE is defective" error occurs if the 2010 redistributable is not installed.
AOO 4.1.14 on Ubuntu MATE 22.04
gavinroberts
Posts: 11
Joined: Wed Mar 06, 2013 2:55 am

Re: Wrong Java installation

Post by gavinroberts »

ive got 2010 redistributable and java 7
but still doesnt work
OpenOffice 3.4.1 on windows 7 ultimate
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

Re: Wrong Java installation

Post by Bill »

"Doesn't work" doesn't help find the problem. What was the error message?

Open Writer and select File > Wizards > Letter. Is there an error message or does the Letter Wizard start? If there is an error message, what exactly does it say?
AOO 4.1.14 on Ubuntu MATE 22.04
gavinroberts
Posts: 11
Joined: Wed Mar 06, 2013 2:55 am

Re: Wrong Java installation

Post by gavinroberts »

The connection to the data source "NET Contacts(2)(1)" could not be established.
The connection to the external data source could not be established.
No SDBC driver was found for the given URL.
OpenOffice 3.4.1 on windows 7 ultimate
Bill
Volunteer
Posts: 8933
Joined: Sat Nov 24, 2007 6:48 am

Re: Wrong Java installation

Post by Bill »

gavinroberts wrote:The connection to the data source "NET Contacts(2)(1)" could not be established.
The connection to the external data source could not be established.
No SDBC driver was found for the given URL.
Where is the Java error? Did you try the Letter Wizard? I'm not convinced that you have a Java problem.
AOO 4.1.14 on Ubuntu MATE 22.04
gavinroberts
Posts: 11
Joined: Wed Mar 06, 2013 2:55 am

Re: Wrong Java installation

Post by gavinroberts »

the java error message doesnt come up any more
im not saying its a java problem
i dont know what it is
OpenOffice 3.4.1 on windows 7 ultimate
gavinroberts
Posts: 11
Joined: Wed Mar 06, 2013 2:55 am

Re: Wrong Java installation

Post by gavinroberts »

its fixed thanks
the button wasnt highlighted under tools options java
how do i register it as solved
OpenOffice 3.4.1 on windows 7 ultimate
thomasjk
Volunteer
Posts: 4451
Joined: Tue Dec 25, 2007 4:52 pm
Location: North Carolina

Re: Wrong Java installation

Post by thomasjk »

Go to your first post and click the edit button.
Tom K.
Windows 10 Home version 1803 17134.165
LibreOffice 5.4.7.2
digdoug78
Posts: 16
Joined: Wed Apr 24, 2013 6:08 am

Re: [Solved] Wrong Java installation

Post by digdoug78 »

still doesn't work
I have the same issue. Downloaded Java (again), I have MS Visual c++, can't run wizards for lack of JRE or OO can't find it, or who knows...
PITA
openoffice 3.1.0 on windows 7
User avatar
Hagar Delest
Moderator
Posts: 32657
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: [Solved] Wrong Java installation

Post by Hagar Delest »

No need to multi-post, especially in solved topics.

For the record, problem solved for digdoug78: [Solved] Selected JRE is defective message.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Post Reply