Unable to installe Oracle9i client with wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
sybi
Level 1
Level 1
Posts: 7
Joined: Tue Dec 20, 2011 8:57 am

Unable to installe Oracle9i client with wine

Post by sybi »

Hi all

First of all, I am a new wine user, so I apologize for my lack of knowledge. I have kubuntu 11.10 and I have to install a software developped only for windows XP or lower windows version, which uses oracle9i client (it seems it can not work with more recent version). This software has been developped by few people, and no help is available. I have a dual boot with widows seven but the installing CD is not working on seven.

So I tried to use wine to install the software. I have wine 1.2.3 (I want to use it as win XP), then I downloaded sun java for windows and I installed it using wine. It seems i worked well (wine java -version returns java version "1.6.0_23"). Then I from y CD I tried to run the setup.exe which is supposed to install Oracle9i client. But it did not install anything and stopped rigth away wit the following errors:
  • Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.RuntimeException:
    Unable to create a suitable default GraphicsConfiguration. Try changing your Display Settings.
    at sun.awt.Win32GraphicsDevice.getDefaultPixID(Native Method)
    at sun.awt.Win32GraphicsDevice.getDefaultConfiguration(Unknown Source)
    at sun.awt.windows.WToolkit.resetGC(Unknown Source)
    at sun.awt.windows.WToolkit.<clinit>(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at java.awt.Toolkit$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
    at sun.awt.GlobalCursorManager$CursorEvent.<init>(Unknown Source)
    at sun.awt.GlobalCursorManager.<clinit>(Unknown Source)
    at java.awt.Cursor.initIDs(Native Method)
    at java.awt.Cursor.<clinit>(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:593)
I also tried "wine setup.exe -J-Dsun.java2d.noddraw=true" in the terminal, but it didnot work as well.

Does anyone have any idea to resolve this issue? I did some research on this site and with google, but I didnot find any solution.

Thanks in advance for your help!
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Unable to installe Oracle9i client with wine

Post by jjmckenzie »

On Tue, Dec 20, 2011 at 7:13 AM, sybi <[email protected]> wrote:
Hi all

First of all, I am a new wine user, so I apologize for my lack of knowledge. I have kubuntu 11.10 and I have to install a software developped only for windows XP or lower windows version, which uses oracle9i client (it seems it can not work with more recent version). This software has been developped by few people, and no help is available. I have a dual boot with widows seven but the installing CD is not working on seven.

So I tried to use wine to install the software. I have wine 1.2.3 (I want to use it as win XP), then I downloaded sun java for windows and I installed it using wine. It seems i worked well (wine java -version returns java version "1.6.0_23"). Then I from y CD I tried to run the setup.exe which is supposed to install Oracle9i client. But it did not install anything and stopped rigth away wit the following errors:

Exception in thread "main" java.lang.ExceptionInInitializerError: java.lang.RuntimeException:
Unable to create a suitable default GraphicsConfiguration.  Try changing your Display Settings.
The installer is looking for a XWindows session. Are you using the
Windows Oracle installer?

James
sybi
Level 1
Level 1
Posts: 7
Joined: Tue Dec 20, 2011 8:57 am

Post by sybi »

Hi James,

Thank you for your reply.
The installer is looking for a XWindows session. Are you using the
Windows Oracle installer?
Yes, I am using the Windows Oracle Universal Installer. Do I need some specific settings in wine to use it?

Sylvain
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Unable to installe Oracle9i client with wine

Post by jjmckenzie »

On Tue, Dec 20, 2011 at 9:16 AM, sybi <[email protected]> wrote:
Hi James,

Thank you for your reply.
The installer is looking for a XWindows session. Are you using the
Windows Oracle installer?
Yes, I am using the Windows Oracle Universal Installer. Do I need some specific settings in wine to use it?
Did you install Java into the SAME Wine prefix before trying to run
the Oracle Installer?

James
sybi
Level 1
Level 1
Posts: 7
Joined: Tue Dec 20, 2011 8:57 am

Post by sybi »

Did you install Java into the SAME Wine prefix before trying to run
the Oracle Installer?
I am not sure I understand your question. I installed Java in my ~/.wine/dirve_c/ directory. Of course, it is declared as the C: drive in winecfg. I also delcared the install CD-Rom directory in the driver tab.
I have also downloaded the Oracle 9i Client setup files from the oracle website. I could try to install it in the ~/.wine/dirve_c/ rather than using the one on the CD. However, I will still have to use the CD to install the software that I am interested in (which need Oracle9i) and I am guessing the same issue will happen again.

Sylvain
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

sybi wrote:I have wine 1.2.3
Upgrade. Latest Wine version is wine-1.3.35.
sybi wrote:I installed Java in my ~/.wine/dirve_c/ directory.
You'll have to reinstall it after upgrading Wine. Also how exactly are you installing it?
sybi
Level 1
Level 1
Posts: 7
Joined: Tue Dec 20, 2011 8:57 am

Post by sybi »

Hi vitamin,

As you suggested I upgraded to wine-1.3.35.
You'll have to reinstall it after upgrading Wine. Also how exactly are you installing it?
I downloaded the java install executable (jre-6u30-windows-i586-s.exe) from the sun java website and put it in ~/.wine/drive_c/users/Public/Desktop/. I open a terminal, cd in this directory and then did 'wine jre-6u30-windows-i586-s.exe'. It installed sucessfully ('wine java -version' returns 'java version "1.6.0_30"').

Besides, in winecfg, in the drivers tab, I added /media/cdrom0 in D: and I declared it as CD-ROM.

Finally, I tried to run the setup.exe from the CD-ROM to install Oracle9i Client, but I got the same errors than the ones in my first post.
sybi
Level 1
Level 1
Posts: 7
Joined: Tue Dec 20, 2011 8:57 am

Post by sybi »

In addition to my last post, I did what has been suggested in the recent test results for JRE in AppBD (http://appdb.winehq.org/objectManager.p ... n&iId=6626), i.e.:
It is necessary to uncheck "Allow Pixel Shader (if supported by hardware)" to run java software
and
it may be necessary to disable Vertex Shader Support to avoid D3D errors which may prevent a Java software to start
But none of these hints changed anything to my issue...
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Does
export J2D_D3D=false
help?
sybi
Level 1
Level 1
Posts: 7
Joined: Tue Dec 20, 2011 8:57 am

Post by sybi »

Does
export J2D_D3D=false
help?
I have done:
export J2D_D3D=false; wine setup.exe
but I got the same errors
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Unable to installe Oracle9i client with wine

Post by jjmckenzie »

On 12/21/11 4:13 AM, sybi wrote:
Hi vitamin,

As you suggested I upgraded to wine-1.3.35.
You'll have to reinstall it after upgrading Wine. Also how exactly are you installing it?
I downloaded the java install executable (jre-6u30-windows-i586-s.exe) from the sun java website and put it in ~/.wine/drive_c/users/Public/Desktop/. I open a terminal, cd in this directory and then did 'wine jre-6u30-windows-i586-s.exe'. It installed sucessfully ('wine java -version' returns 'java version "1.6.0_30"').
Something that I discovered today is that some Java programs will NOT
work with Java 6. Is it possible to start over and use Java 1.5/5 ?

James
sybi
Level 1
Level 1
Posts: 7
Joined: Tue Dec 20, 2011 8:57 am

Post by sybi »

Is it possible to start over and use Java 1.5/5 ?
I started over with different Java 1.5 updates:
1.5.0
1.5.0_10
1.5.0_19
1.5.0_22
But I still got the same errors.

Surprisingly, I have the same errors with and without java. I am wondering if I did not missed anything in wine configuration. Yet, when I install a java version, the command
wine java -version gives the correct java version. And when I remove java, the same command line returns wine: cannot find L"C:\\windows\\system32\\java.exe", which seems logical.
In the wine configuration panel, the virtual desktop is activated.
Locked