Ranges software installation problems

Questions about Wine on Linux
Locked
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Ranges software installation problems

Post by Sergio_apf »

Dears,

I was trying to install this application http://www.anatrack.com/try_ranges.php on Wine, but without success. After finish the Ranges software installation I tried to run the application which doesn't respond. Seems that some parts are lost during setup.

That software needs Java Version 8 suite or above and I tried JDK 8, which hangs at the end of installation (also I tested with JRE), but after wine reboot the Java suite appears in software manager as installed.

Someone could help me to fix this setup problem?

Tks,

Sergio
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Ranges software installation problems

Post by dimesio »

Sergio_apf wrote: That software needs Java Version 8 suite or above and I tried JDK 8, which hangs at the end of installation (also I tested with JRE), but after wine reboot the Java suite appears in software manager as installed.
Did you install Windows Java or Linux Java? (You need the former, not the latter.) And what "software manager" are you talking about? Wine doesn't have one, and if you mean your distro's package manager, that's showing Linux Java; apps installed in Wine wouldn't show up there at all even if successfully installed.

Current installers for Windows Java do hang in Wine (bug 40821), but according to the bug report, older installers worked. If you can find an older version of the installer, try that.
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

I installed Java 8 for windows and I should said "Wine control panel" instead. My distro is Debian and this software requires JRE 8 as a minimal java, but I will try a previous version for test.

I let you know if I have success here.
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

I made the adjustments, as you told me, but Ranges ain't working yet.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Ranges software installation problems

Post by Bob Wya »

Sergio_apf wrote:I made the adjustments, as you told me, but Ranges ain't working yet.
@Sergio_apf

I was able to get Ranges 9 working OK using vanilla Wine version 2.17.

Get the current Oracle Java i586 Windows 8.144 build Java Runtime Environment (JRE) ...
NB that URL will break when Oracle release a new version of Java...

Setup and Installation:

Code: Select all

cd # change this to something else - directory where the new Wineprefix will be created
export WINEPREFIX="${PWD}/ranges_demo_32"
export WINEARCH=win32
wineboot -u
winetricks sandbox
winetricks -q ie8
winetricks win7
ln -s ~/Downloads/jre-8u144-windows-i586.exe . # Use 32-bit Oracle Java JRE (Runtime installer)
wine jre-8u144-windows-i586.exe
ln -s ~/Downloads/Ranges9Setup.msi .
wine msiexec /i Ranges9Setup.msi
Running the program:

Code: Select all

export WINEPREFIX="${HOME}/ranges_demo_32" # You changed the WINEPREFIX path above? Then you need to do that again here!!
cd "${WINEPREFIX}/drive_c/Program Files/Anatrack Ltd/Ranges 9"
wine start ranges.jar
See also: WineHQ FAQ: 6.5.3 How do I create a 32 bit wineprefix on a 64 bit system? ...

Bob
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

Thanks for the help Bob!

I followed the steps exactly as you told me, but when I try to install java It hangs and I can't go any further.

Now I'm trying to do with the winehq-stable package (version 2.02).

The installation of a 32 bits software with Wine seems to be simple and I am not able to fix alone.

Sergio
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Ranges software installation problems

Post by Bob Wya »

Sergio_apf wrote:Thanks for the help Bob!

I followed the steps exactly as you told me, but when I try to install java It hangs and I can't go any further.

Now I'm trying to do with the winehq-stable package (version 2.02).

The installation of a 32 bits software with Wine seems to be simple and I am not able to fix alone.

Sergio
The Stable Wine package is a bit of misnomer - it basically has a tiny sprinkling of back-ported bug fixes - from the Development branch.
Patches that are guaranteed to not break things - but don't fix any bigger issues...
So Stable Wine is OK for running older Windows applications that won't receiving any updates and already work under Wine - pretty rubbish for anything else. :cry:

I believe you actually need Wine Staging 2.17 to perform the installation phase of the Oracle Java Runtime...
That's what I used originally... Then I switched to doing a Ranges test with Wine 2.17 - but the application was already installed.
So Wine 2.17 will run Ranges+Java - but only when they have been installed already...
The Oracle Java Runtime installer will hang with Wine 2.17.

Bob
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

Bob Wya wrote: So Wine 2.17 will run Ranges+Java - but only when they have been installed already...
The Oracle Java Runtime installer will hang with Wine 2.17.

Bob
How to install Oracle Java Runtime if the setup process hangs? I tested with stable wine and the same problem occurred. Any log file could help or should I open a new forum topic about Java?

I am backing to Wine 2.17

Sergio
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Ranges software installation problems

Post by Bob Wya »

Sergio_apf wrote:
Bob Wya wrote: So Wine 2.17 will run Ranges+Java - but only when they have been installed already...
The Oracle Java Runtime installer will hang with Wine 2.17.

Bob
I am backing to Wine 2.17

Sergio
But I actually suggested trying Wine Staging ... :roll:

Bob
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

Unfortunately still hangs, even with Staging version.

What else could I do before give up?

Sergio
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Ranges software installation problems

Post by jkfloris »

Why use a Windows Java version? I am able to run ranges.jar with openjdk-8-jre.
(Debian Sid openjdk-8-jre: 8u144-b01-1)

Install Ranges with:

Code: Select all

WINEPREFIX=/home/floris/wine-test /opt/wine-staging/bin/msiexec /i /home/floris/Downloads/Ranges9Setup.msi
Run Ranges with:

Code: Select all

java -Xmx4096m -jar ranges.jar 
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

I install Wine Staging 2.17 and I did exactly as described in your post, but no way to see Ranges running.

The prompt messages were copied below:

user@computer:~/.wine/drive_c/Program Files (x86)/Anatrack Ltd/Ranges 9$ java -Xmx4096m -jar ranges.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: ranges/RangesMain : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:442)
at java.net.URLClassLoader.access$100(URLClassLoader.java:64)
at java.net.URLClassLoader$1.run(URLClassLoader.java:354)
at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:312)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Ranges software installation problems

Post by jkfloris »

Unsupported major.minor version 52.0
This means your Linux Java version is to old
What is the output of

Code: Select all

java -fullversion
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

java full version "1.7.0_151-b01"
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Ranges software installation problems

Post by Bob Wya »

Sergio_apf wrote:java full version "1.7.0_151-b01"
You need version 1.8.

Inotherwords a Java implementation supporting the API of Oracle Java SE 8 ...

Hence why I was installing:
jre-8u144-windows-i586.exe
in my tests...

Bob
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Ranges software installation problems

Post by Bob Wya »

jkfloris wrote:Why use a Windows Java version? I am able to run ranges.jar with openjdk-8-jre.
(Debian Sid openjdk-8-jre: 8u144-b01-1)
...
Hmmm. Nice catch. 8)
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

I got the problem! I had openjdk-7-jre and openjdk-8-jre packages installed together. I removed openjdk-7-jre and run the command "java -Xmx4096m -jar ranges.jar" and It works fine.

Now, I can definitely put the windows machine aside.

Thanks, thanks a lot!!!
Sergio
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

I became so happy to soon. I was testing Ranges functions and all of Its functions are not working.
It could be because Ranges is running out of wine environment?

I believe the challenge is to install jre-8u144-windows-i586.exe inside Wine to make things works.
jkfloris
Level 12
Level 12
Posts: 3141
Joined: Thu Aug 14, 2014 10:10 am

Re: Ranges software installation problems

Post by jkfloris »

If I understand you correctly you use the (open) Linux Java version and Ranges doesn't work as expected. If you use the Linux version, Wine is only used to unpack the msi installer and has nothing to do with Ranges anymore. At this point you have two options:
- Try to install Java 1.8 in Wine and run ranges.bat
- If the open source Java version doesn't work, try the Oracle Java version. (In Debian, install the java-package and build the package yourself.)

Conclusion you have 3 options:
- Wine with Oracle Java
- Linux with OpenJRE ( Based on your command this option doesn't work?)
- Linux with Oracle Java
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Ranges software installation problems

Post by dimesio »

Sergio_apf wrote:I became so happy to soon. I was testing Ranges functions and all of Its functions are not working.
It could be because Ranges is running out of wine environment?
If the software relies on Windows-only functions, yes. That's why most Windows Java programs don't work with Linux Java.
I believe the challenge is to install jre-8u144-windows-i586.exe inside Wine to make things works.
According to the bug report, installers jre-8u55-windows-i586.exe and earlier don't hang. Those versions are no longer available from Oracle, but can be found on other sites.

However, I was able to get the current Java installer to work in 2.17 (development, not staging) simply by installing IE8 with winetricks to a 32 bit wineprefix first. That's basically what Bob Wya said to do, but without winetricks sandbox (I'm not sure why he specified that). After that Ranges9 installed and started up fine, though I don't know enough about the app to tell whether or not everything was working.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Ranges software installation problems

Post by Bob Wya »

dimesio wrote:... That's basically what Bob Wya said to do, but without winetricks sandbox (I'm not sure why he specified that). ...
I just copied the commands I used verbatim... I always use:

Code: Select all

winetricks sandbox
to avoid my "${HOME}" folder getting junked up... 8)

Bob
Sergio_apf
Level 2
Level 2
Posts: 15
Joined: Wed Sep 20, 2017 5:18 pm

Re: Ranges software installation problems

Post by Sergio_apf »

Hi,
jkfloris wrote: Conclusion you have 3 options:
- Wine with Oracle Java
- Linux with OpenJRE ( Based on your command this option doesn't work?)
- Linux with Oracle Java
Unfortunately, I believe I pass through these 3 options without success. :(

I don know yet if It could be a problem with my Debian (jessie-x64) distro or the Java Runtime (jre-8u144-windows-i586.exe). You guys have the JRE runtime running in your wine environment, right? I tested with all WineHQ versions including i386 and x64 architecture and Its respective apps. I found this third part Java repository https://www.java32bit.com/ and I tested with a lot of earlier versions of JRE8. With all of those ends with "no update" message with the error code: 1627. :?
dimesio wrote:If the software relies on Windows-only functions, yes. That's why most Windows Java programs don't work with Linux Java.
I agree to you, I am not an expert with programing, but I have 95% of sure that Ranges relies on Windows-only functions. That's explain why Ranges starts fine and fail in the statistics operations.

My challenge now is try to find a way to put Java Runtime 8 up inside WineHQ. Perhaps Ranges will work as It is expected.

Thanks for all of you!

Sergio
Locked