Not able to Run .exe file returning error

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
nitheen
Level 1
Level 1
Posts: 8
Joined: Thu May 19, 2011 6:59 am

Not able to Run .exe file returning error

Post by nitheen »

I Am trying to run an ERP application which is windows .exe file using wine.Im to trying run on ubuntu & Fedora, its a java based application.it will be really helpful if its solved and this will avoid mr to dependent on windows machine... below is error im getting..

[root@localhost Client]# wine ClientV2_6.exe
java.lang.ExceptionInInitializerError: Exception in thread "main" 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 javax.swing.ImageIcon.<init>(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.makeImageIcon(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.<init>(Unknown Source)
at br.rmi.client.properties.KeyShortCuts.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BaseApplicationThread.run(Unknown Source)
java.lang.NoClassDefFoundError
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 javax.swing.JFrame.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BrDialogue$MainFrame.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BrDialogue.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BrDiglogThread.run(Unknown Source)
java.lang.NoClassDefFoundError
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 javax.swing.ImageIcon.<init>(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.makeImageIcon(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.createFrameIcon(Unknown Source)
at br.rmi.clientbaseapplication.LoginThread.<init>(Unknown Source)
at br.rmi.clientbaseapplication.applicationsecurity.ApplicationSecurityManager.main(Unknown Source)
User avatar
triso
Level 2
Level 2
Posts: 37
Joined: Mon May 18, 2009 8:30 pm

Re: Not able to Run .exe file returning error

Post by triso »

nitheen wrote:I Am trying to run an ERP application which is windows .exe file using wine.
Which ERP app are you running? Have you looked it up in the appDB? Since the Windows client is written in Java there is a good chance that there is a native client for it.
nitheen
Level 1
Level 1
Posts: 8
Joined: Thu May 19, 2011 6:59 am

Post by nitheen »

ERP client Software is called ezbiz,im pretty much new to this wine so not sure where to put question.If you can guide me it will be highly helpful..

I need to ask some specific question in detail.

1)Are u saying me to query in appDB?
2)I have a ERP server running in windows XP, but many of my client machines are Ubuntu & Fedora so that trying to run ERP Client on Linux.
3)Now how to proceed further?

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

Re: Not able to Run .exe file returning error

Post by vitamin »

nitheen wrote:[root@localhost Client]# wine ClientV2_6.exe
java.lang.RuntimeException:
Unable to create a suitable default GraphicsConfiguration. Try changing your Display Settings.
2 things:
1. DO NOT run Wine as root! http://wiki.winehq.org/FAQ#run_as_root
2. Try in virtual desktop mode.

If above won't work, please specify what video card and drivers are you using?
nitheen
Level 1
Level 1
Posts: 8
Joined: Thu May 19, 2011 6:59 am

Post by nitheen »

Hi Vitamin,

Below are the steps i have done as you have asked me to do,

1. DO NOT run Wine as root!

As you had said i have run wine as user (shiva), then i got the output as below

[shiva@localhost Client]$ wine ClientV2_6.exe
fixme:msvcrt:MSVCRT__sopen : pmode 0x01b6 ignored
fixme:msvcrt:MSVCRT__sopen : pmode 0x01b6 ignored
Exception in thread "main" java.lang.NoClassDefFoundError
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 javax.swing.ImageIcon.<init>(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.makeImageIcon(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.createFrameIcon(Unknown Source)
at br.rmi.clientbaseapplication.LoginThread.<init>(Unknown Source)
at br.rmi.clientbaseapplication.applicationsecurity.ApplicationSecurityManager.main(Unknown Source)
java.lang.NoClassDefFoundError
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 javax.swing.JFrame.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BrDialogue$MainFrame.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BrDialogue.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BrDiglogThread.run(Unknown Source)
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 javax.swing.ImageIcon.<init>(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.makeImageIcon(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.<init>(Unknown Source)
at br.rmi.client.properties.KeyShortCuts.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BaseApplicationThread.run(Unknown Source)

2. Try in virtual desktop mode.

I took ssh to my laptop user like :

ssh - XY [email protected]

[shiva@localhost Client]$ wine ClientV2_6.exe
fixme:msvcrt:MSVCRT__sopen : pmode 0x01b6 ignored
fixme:msvcrt:MSVCRT__sopen : pmode 0x01b6 ignored
err:winediag:X11DRV_WineGL_InitOpenglInfo The Mesa OpenGL driver is using software rendering, most likely your OpenGL drivers haven't been installed correctly
Exception in thread "main" java.lang.NoClassDefFoundError
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 javax.swing.ImageIcon.<init>(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.makeImageIcon(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.createFrameIcon(Unknown Source)
at br.rmi.clientbaseapplication.LoginThread.<init>(Unknown Source)
at br.rmi.clientbaseapplication.applicationsecurity.ApplicationSecurityManager.main(Unknown Source)
java.lang.NoClassDefFoundError
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 javax.swing.JFrame.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BrDialogue$MainFrame.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BrDialogue.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BrDiglogThread.run(Unknown Source)
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 javax.swing.ImageIcon.<init>(Unknown Source)
at javax.swing.ImageIcon.<init>(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.makeImageIcon(Unknown Source)
at br.rmi.client.baseapplication.BrImageFile.<init>(Unknown Source)
at br.rmi.client.properties.KeyShortCuts.<init>(Unknown Source)
at br.rmi.clientbaseapplication.BaseApplicationThread.run(Unknown Source)


Video Card Detials :

For the command lscpi -v i got following output.

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
Subsystem: Dell Device 01d4
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at eff00000 (32-bit, non-prefetchable)
I/O ports at eff8
Memory at d0000000 (32-bit, prefetchable)
Memory at efec0000 (32-bit, non-prefetchable)
Expansion ROM at <unassigned> [disabled]
Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Kernel driver in use: i915
Kernel modules: i915

00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
Subsystem: Dell Device 01d4
Flags: bus master, fast devsel, latency 0
Memory at eff80000 (32-bit, non-prefetchable)
Capabilities: [d0] Power Management version 2

00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
Subsystem: Dell Device 01d4
Flags: bus master, fast devsel, latency 0, IRQ 21
Memory at efebc000 (64-bit, non-prefetchable)
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [130] Root Complex Link
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

For getting information of drivers i did the following

[root@localhost ~]# rpm -qa | grep drv
xorg-x11-drv-wacom-0.10.6-2.fc12.i686
xorg-x11-drv-tdfx-1.4.3-1.fc12.i686
xorg-x11-drv-s3virge-1.10.4-1.fc12.i686
xorg-x11-drv-aiptek-1.3.0-1.fc12.i686
xorg-x11-drv-rendition-4.2.2-4.fc12.i686
xorg-x11-drv-v4l-0.2.0-3.fc12.1.i686
xorg-x11-drv-sis-0.10.2-1.fc12.i686
xorg-x11-drv-siliconmotion-1.7.3-1.fc12.i686
xorg-x11-drv-vmware-10.16.7-2.fc12.i686
xorg-x11-drv-neomagic-1.2.4-2.fc12.i686
xorg-x11-drv-cirrus-1.3.2-1.fc12.i686
xorg-x11-drv-fpit-1.3.0-4.fc12.i686
xorg-x11-drv-penmount-1.4.0-4.fc12.i686
xorg-x11-drv-i740-1.3.2-1.fc12.i686
xorg-x11-drv-glint-1.2.4-1.fc12.i686
xorg-x11-drv-ati-firmware-6.13.0-0.21.20100219gite68d3a389.fc12.i686
xorg-x11-drv-vesa-2.3.0-1.fc12.i686
xorg-x11-drv-keyboard-1.4.0-2.fc12.i686
xorg-x11-drv-evdev-2.3.3-1.fc12.i686
xorg-x11-drv-hyperpen-1.3.0-3.fc12.i686
xorg-x11-drv-ast-0.89.9-1.fc12.i686
xorg-x11-drv-vmmouse-12.6.5-2.fc12.i686
xorg-x11-drv-acecad-1.4.0-1.fc12.i686
xorg-x11-drv-fbdev-0.4.1-1.fc12.i686
xorg-x11-drv-mouse-1.5.0-1.fc12.i686
xorg-x11-drv-trident-1.3.3-1.fc12.i686
xorg-x11-drv-r128-6.8.1-2.fc12.i686
xorg-x11-drv-i128-1.3.3-1.fc12.i686
xorg-x11-drv-sisusb-0.9.3-1.fc12.i686
xorg-x11-drv-ati-6.13.0-0.21.20100219gite68d3a389.fc12.i686
xorg-x11-drv-voodoo-1.2.3-1.fc12.i686
xorg-x11-drv-elographics-1.2.3-4.fc12.i686
xorg-x11-drv-savage-2.3.1-1.fc12.i686
xorg-x11-drv-nouveau-0.0.15-21.20091105gite1c2efd.fc12.i686
xorg-x11-drv-mach64-6.8.2-1.fc12.i686
xorg-x11-drv-openchrome-0.2.904-1.fc12.i686
xorg-x11-drv-dummy-0.3.3-1.fc12.i686
xorg-x11-drv-void-1.3.0-2.fc12.i686
xorg-x11-drv-geode-2.11.4.1-1.fc12.i686
xorg-x11-drv-synaptics-1.2.2-1.fc12.i686
xorg-x11-drv-intel-2.9.1-1.fc12.i686
xorg-x11-drv-nv-2.1.15-2.fc12.i686
xorg-x11-drv-apm-1.2.2-1.fc12.i686
xorg-x11-drv-mga-1.4.11-1.fc12.i686
xorg-x11-drv-mutouch-1.2.1-4.fc12.i686

I am using Fedora 12 & kernel is
2.6.31.5-127.fc12.i686.PAE.

If any information or troubleshooting steps to be done please let me know.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Post by jjmckenzie »

nitheen wrote:Hi Vitamin,

Below are the steps i have done as you have asked me to do,

1. DO NOT run Wine as root!

As you had said i have run wine as user (shiva), then i got the output as below

[shiva@localhost Client]$ wine ClientV2_6.exe
fixme:msvcrt:MSVCRT__sopen : pmode 0x01b6 ignored
fixme:msvcrt:MSVCRT__sopen : pmode 0x01b6 ignored
Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
These are Java errors. Is your Java installation correct?
I am using Fedora 12 & kernel is
2.6.31.5-127.fc12.i686.PAE.
Is there anyway possible to update to Fedora 15?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Post by jjmckenzie »

Also, can you provide your Wine version? I read through the thread and could not find it. The project recommends using the latest development version, wine-1.3.20, if you can.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Post by vitamin »

Use pastebin for your huge logs! Or your post will be removed.
nitheen wrote:Exception in thread "main" java.lang.NoClassDefFoundError
You didn't properly install java. Or the installation failed. Google says it's most likely that JAVA_HOME env var is not properly set.
nitheen wrote:2. Try in virtual desktop mode.
I took ssh to my laptop user like :
ssh - XY [email protected]
That's not what I meant. Wine virtual desktop. Start winecfg, graphics tab...
nitheen
Level 1
Level 1
Posts: 8
Joined: Thu May 19, 2011 6:59 am

Post by nitheen »

Hi all..

1) I have enabled virtual desktop option in winecfg and got the same error.
2) wine version is wine-1.2

in /usr/lib ...there are several version of java folder and they are empty.is this causing problem or how to set java home properly and where?if any things can be done? pls advice

In the mean time im am willing to install ubuntu 10.4 desktop os with latest wine version and try things out.

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

Post by vitamin »

nitheen wrote:2) wine version is wine-1.2
Too old, upgrade. Latest development version is wine-1.3.20.
nitheen wrote:in /usr/lib ...there are several version of java
You need windows java installed under Wine.
nitheen
Level 1
Level 1
Posts: 8
Joined: Thu May 19, 2011 6:59 am

Post by nitheen »

1)Latest development version is wine-1.3.20 Was installed and then installed java version of windows jre & jdk were installed using wine but getting the same issues:-(
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Not able to Run .exe file returning error

Post by jjmckenzie »

On Thu, May 26, 2011 at 10:17 PM, nitheen <[email protected]> wrote:
1)Latest development version is wine-1.3.20 Was installed and then installed java version of windows  jre & jdk were installed using wine but getting
the same issues:-(
Really dumb question, but what do you get when you run the following
command in a terminal window:

wine java -version

??

James McKenzie
nitheen
Level 1
Level 1
Posts: 8
Joined: Thu May 19, 2011 6:59 am

Post by nitheen »

When entered following command got the output as below.

[shiva@localhost ~]$ wine java-version
wine: cannot find L"C:\\windows\\system32\\java-version.exe"
Frédéric Delanoy

Not able to Run .exe file returning error

Post by Frédéric Delanoy »

On Tue, May 31, 2011 at 08:46, nitheen <[email protected]> wrote:
When entered following command got the output as below.

[shiva@localhost ~]$ wine java-version
wine: cannot find L"C:\\windows\\system32\\java-version.exe"
Put a space before -version
nitheen
Level 1
Level 1
Posts: 8
Joined: Thu May 19, 2011 6:59 am

Post by nitheen »

given space and got same out put
nitheen
Level 1
Level 1
Posts: 8
Joined: Thu May 19, 2011 6:59 am

Post by nitheen »

This is the java out put,

[shiva@localhost ~]$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.3) (fedora-43.1.8.3.fc12-i386)
OpenJDK Server VM (build 14.0-b16, mixed mode)
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Not able to Run .exe file returning error

Post by jjmckenzie »

On 6/1/11, nitheen <[email protected]> wrote:
This is the java out put,

[shiva@localhost ~]$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.3) (fedora-43.1.8.3.fc12-i386)
OpenJDK Server VM (build 14.0-b16, mixed mode)
Now try:

wine 'java -version'

Note: Type in the single quotes, they may be needed.

Also, have you installed Sun/Oracle Java for Windows in Wine? Wine
CANNOT access Java you installed in Linux.

James McKenzie
Locked