Results 1 to 8 of 8
- 08-20-2011, 08:15 AM #1
Crazy threads problem with Java on WINE
I'm stuck running a Windows app on WINE. The app embeds a JVM. I've installed the Oracle JVM. It works. So far so good.
The problem comes when one of my embedded Java routines tries to start a helper thread that runs some DB routines in the background while the main thread does some other processing. Sometimes it works perfectly. And when it works, it runs 50% faster than doing everything in one thread. But sometimes, the second thread just never starts. (I know this because I added a trace statement to the beginning of its run method.)
I've tried setting the main thread to MIN_PRIORITY and the helper thread to MAX_PRIORITY, to no avail.
Is there any other way I can coax the JVM to start the damn thead?
- 08-20-2011, 03:12 PM #2
Isn't WINE a MS Windows emulator for Unix/Linux boxes? Why don't you run a native JVM on those machines? Oracle has one for Linux boxes.
JosI have the stamina of a seal; I lie on the beach instead of running on it.
- 08-21-2011, 12:25 AM #3
The Windows app running in WINE can't embed the Linux JRE, so I had to install the Windows JRE inside WINE.
Apparently there are other issues with concurrency in the app. I gave up on the threaded version of my code.
- 08-21-2011, 10:06 AM #4
- 08-21-2011, 08:12 PM #5
Because I'm running a Windows app. It embeds a JVM and uses Java as its scripting language, but it's mostly a native Win32 app.
- 08-21-2011, 08:33 PM #6
- 08-22-2011, 03:14 AM #7
For better or worse, no. The only Microsoft product I own is a mouse.
- 08-23-2011, 11:53 PM #8
I've been using Ubuntu now for years and I have come to the following conclusion.
Windows apps are best run on Windows.
I generally have found a Linux app that does what the Windows app used to do for me. I also dual boot when I have a Windows app that I have to use on occasion.
Another option you have is to use VirtualBox. There you can run Windows while running Linux.If you aren't programming in Java, well that's just too bad.
I'd rather be using Ubuntu.
- By AlQassabi in forum Threads and SynchronizationReplies: 10Last Post: 03-04-2011, 11:29 AM
- By Quizzle23 in forum New To JavaReplies: 33Last Post: 02-24-2011, 09:00 AM
- By WineTamer in forum Jobs OfferedReplies: 0Last Post: 01-29-2010, 12:08 AM
- By amarenash23 in forum New To JavaReplies: 8Last Post: 12-30-2009, 04:39 PM
- By amith in forum Threads and SynchronizationReplies: 4Last Post: 07-10-2008, 07:46 AM