Bug 53820

Summary: Solver and Java Runtime Environment 7 problem
Product: LibreOffice Reporter: Paul <pjursinic>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: major CC: jbfaure, v-k-mus
Priority: high    
Version: 3.6.0.4 release   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description Paul 2012-08-19 22:00:27 UTC
When trying to run solver the following error occurs: "Java run time environment."  I do have Java loaded and operating on my computer.  When I go to Tools -->Options-->Java it points to Oracle Corporation version 1.7.0.05.

What must I do to get by this error and have solver become functional?
Comment 1 Jean-Baptiste Faure 2012-08-25 09:23:32 UTC
Please provide a step by step scenario to reproduce the problem. It is exactly when you hit Tools > Solver that you get the error message or at another step ?

Set status to NEEDINFO because we need you to provide additional infos. We will leave the bug in this status for 6 months at which time we'll close the bug as INVALID. If your bug is closed as INVALID after 6 months and you still experience it, please attach needed information and reopen the bug as UNCONFIRMED". 

Best regards. JBF
Comment 2 Lekow 2012-08-28 18:59:25 UTC
I also experienced this bug. So, additional data about it.

OS: Windows 7 Starter SP1 32 bit. 
LibreOffice: 3.6.0.4. (Build ID: 932b512)
Java version: 7.0.5

Steps to reproduce [Java is installed with default settings and is enabled in LO]:
1. In Calс go to Tools -> Solver. 
2. Just after click the pop-up window appears. It states: "LibreOffice requires a JRE to perform this task. The selected JRE is defective. Please select another version or install a new JRE"
3. Press OK in that window. Solver window appears.
4. Set data for solving. Press Solve.
5. There are two variants: the calculation is done or not :).
6. If not, the solution is: in solver window go to Options. Select LibreOffice Solver from list (other 2 variants do not work). Press OK. The solver works good after this little adjustment (but error window from step 2 still appears). 

Everything is OK with Java 6.

Important: if Java is disabled in LO, the scenario is the same, but step 2 is the window asking to enable JRE. Press No and solver works!

So, it is possible to conclude that there are several engines for solver (that can be changed in solver options) and two of them do not work with Java 7. And LibreOffice Solver works even without java!

Please confirm, if somebody else experience this bug. It is very annoying.
Comment 3 Lekow 2012-08-29 13:57:39 UTC
The bug still present after update to LO 3.6.1.2
Comment 4 Paul 2012-08-29 16:32:28 UTC
I removed Java 7 from my system and replaced it with Java 6.

Now when running solver in the LibreOffice calculation program the solver function works without triggering an error message.

So, solver will not work if Java 7 is loaded on the computer.
Comment 5 V.K. 2012-10-07 17:41:23 UTC
Seems to be fixed in 3.6.2.2