Java in Firefox

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
rockinup1231
Level 2
Level 2
Posts: 14
Joined: Fri Mar 07, 2008 8:34 pm

Java in Firefox

Post by rockinup1231 »

I installed Java 1.6 update 5 and Firefox. Firefox works "okay", and some elements like Flash objects (videos on youtube and cartoons on AlbinoBlackSheep to name some examples) work a bit faster than they do on the native linux version of Firefox, so I wanted to try Java. My test subject was RuneScape.

Well, after installing Java I set "java.exe" and "javaws.exe" to Windows 2000 mode for compatibility purposes. When I navigate to the page with the java app, Firefox hangs, and in the console it doesn't give any fixme's...

On the AppDB it says Java 1.6 works without issues other than not being uninstallable. I just wanted to know if anyone might have some ideas I could try to possibly get java to work right. It functions in command line when I enter "wine java.exe".

It's not critical for me to have java going in WINE, but I thought it wouldn't be a bad idea to ask incase someone knows more about this than me (which is more than 100% likely).

Thank you in advance. :D

EDIT: I should have mentioned I'm using wine version 0.9.59 in Kubuntu 7.10.
sjc1963
Level 2
Level 2
Posts: 16
Joined: Sat Feb 23, 2008 7:57 pm

Post by sjc1963 »

What has this got to do with WINE?

There is a Linux version of Firefox and Java you know.
James McKenzie

Java in Firefox

Post by James McKenzie »

sjc1963 wrote:
What has this got to do with WINE?

There is a Linux version of Firefox and Java you know.
Maybe because the poster wants to use Firefox and JAVA through Wine to
support a Windows program?

James McKenzie
sjc1963
Level 2
Level 2
Posts: 16
Joined: Sat Feb 23, 2008 7:57 pm

Re: Java in Firefox

Post by sjc1963 »

James McKenzie wrote:Maybe because the poster wants to use Firefox and JAVA through Wine to support a Windows program?

James McKenzie
Like what? Java programs work fine no matter the OS.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Java in Firefox

Post by vitamin »

sjc1963 wrote:
James McKenzie wrote:Maybe because the poster wants to use Firefox and JAVA through Wine to support a Windows program?

James McKenzie
Like what? Java programs work fine no matter the OS.
You know some one just have too much time on their hands. And they have nothing else to do.
Dan Kegel

Java in Firefox

Post by Dan Kegel »

On Sat, Apr 12, 2008 at 4:52 PM, vitamin <[email protected]> wrote:
You know some one just have too much time on their hands. And they have nothing else to do.
Like me. That's exactly the kind of think I like
doing; it's a good test of wine. If it doesn't work,
I file bugs. Like, oh, say
http://bugs.winehq.org/show_bug.cgi?id=4860
Perhaps that's what the original poster was thinking.

One can imagine a real scenario where this would
be useful. A user who wants to use one web browser
for everything, and is forced to use the windows version
of firefox by some awful windows-specific plugin,
might well want to install the Windows version of Java
and expect it to work.
- Dan
sjc1963
Level 2
Level 2
Posts: 16
Joined: Sat Feb 23, 2008 7:57 pm

Re: Java in Firefox

Post by sjc1963 »

Dan Kegel wrote:On Sat, Apr 12, 2008 at 4:52 PM, vitamin <[email protected]> wrote:
You know some one just have too much time on their hands. And they have nothing else to do.
Like me. That's exactly the kind of think I like
doing; it's a good test of wine. If it doesn't work,
I file bugs. Like, oh, say
http://bugs.winehq.org/show_bug.cgi?id=4860
Perhaps that's what the original poster was thinking.

One can imagine a real scenario where this would
be useful. A user who wants to use one web browser
for everything, and is forced to use the windows version
of firefox by some awful windows-specific plugin,
might well want to install the Windows version of Java
and expect it to work.
- Dan
And here I thought that Java was OS independent.
Dan Kegel

Java in Firefox

Post by Dan Kegel »

On Sun, Apr 13, 2008 at 2:35 AM, sjc1963 <[email protected]> wrote:
One can imagine a real scenario where this would
be useful. A user who wants to use one web browser
for everything, and is forced to use the windows version
of firefox by some awful windows-specific plugin,
might well want to install the Windows version of Java
and expect it to work.
And here I thought that Java was OS independent.
I'm not sure where you're coming from with that remark.
Is it a serious question, or are you just being witty?
If it's serious, I can try to explain.
- Dan
Christoffer Sørensen

Java in Firefox

Post by Christoffer Sørensen »

On Sun, Apr 13, 2008 at 1:52 AM, vitamin <[email protected]> wrote:
sjc1963 wrote:
James McKenzie wrote:
Maybe because the poster wants to use Firefox and JAVA through Wine to support a Windows program?
James McKenzie
Like what? Java programs work fine no matter the OS.
You know some one just have too much time on their hands. And they have nothing else to do.
Like someone posting on a mailing list where they should just ignore it.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Java in Firefox

Post by vitamin »

Christoffer Sørensen wrote:On Sun, Apr 13, 2008 at 1:52 AM, vitamin <[email protected]> wrote:
sjc1963 wrote:
James McKenzie wrote: Like what? Java programs work fine no matter the OS.
You know some one just have too much time on their hands. And they have nothing else to do.
Like someone posting on a mailing list where they should just ignore it.
Of course :D

I didn't say having extra free time and finding something to do is a bad thing. The thing is - one can always find a bug in Wine. The question is - are there are any real life apps that break because of this bug? Wine developers can't fix every possible bug in Wine. Only bugs that really do matter.

Unless of course you have that extra free time to find the cause of the problem and even possibly fix it yourself. Or at least create a test and make it a part of the Wine test suite.
sjc1963
Level 2
Level 2
Posts: 16
Joined: Sat Feb 23, 2008 7:57 pm

Re: Java in Firefox

Post by sjc1963 »

Dan Kegel wrote:On Sun, Apr 13, 2008 at 2:35 AM,
I'm not sure where you're coming from with that remark.
Is it a serious question, or are you just being witty?
If it's serious, I can try to explain.
- Dan
:roll:
Sergio Samayoa

Java in Firefox

Post by Sergio Samayoa »

And here I thought that Java was OS independent.
And it is.
Java code can be run on any OS IF there is JVM in such OS.
You should learn what really java is before throwing non-sense comments.
hendrik

Java in Firefox

Post by hendrik »

On Mon, Apr 14, 2008 at 08:40:19AM -0600, Sergio Samayoa wrote:
And here I thought that Java was OS independent.
And it is.
Java code can be run on any OS IF there is JVM in such OS.
You should learn what really java is before throwing non-sense comments.
The same Java source code, translated to the same Java bytecode, should
run pretty well anywhere. (I think there's some kind of micro-java for
very very timy machines, like cellphones, though.)

The catch is that someone has to have written a JVM for your OS. But
usually, someone already has. And within a browser, it would have
to be made available as a plugin for whatever browser you have.

Sun went to a lot of trouble to make Java run everywhere compatibly.

-- hendrik
James McKenzie

Java in Firefox

Post by James McKenzie »

sjc1963 wrote:
Dan Kegel wrote:
On Sat, Apr 12, 2008 at 4:52 PM, vitamin <[email protected]> wrote:

You know some one just have too much time on their hands. And they have nothing else to do.

Like me. That's exactly the kind of think I like
doing; it's a good test of wine. If it doesn't work,
I file bugs. Like, oh, say
http://bugs.winehq.org/show_bug.cgi?id=4860
Perhaps that's what the original poster was thinking.

One can imagine a real scenario where this would
be useful. A user who wants to use one web browser
for everything, and is forced to use the windows version
of firefox by some awful windows-specific plugin,
might well want to install the Windows version of Java
and expect it to work.
- Dan
And here I thought that Java was OS independent.

Java bytecode is OS independent, but you need a Java Runtime Engine or
Java Software Development Kit for the OS or bytecode cannot be run. So,
if you are running a windows emulator to reproduce the WindowsXP
environment, you also need a WindowsXP JRE in that enviroment or Java
bytecode programs cannot run. This DOES NOT APPLY TO JAVA PROGRAMS
COMPILED TO RUN 'NATIVELY' LIKE OPENOFFICE.ORG. These programs must
have a JRE, but the code runs natively and thus are compiled to the
environment.

So if you need to install a Windows JRE, you will need to go to
java.sun.com and download it. You will also need to set the windows
version to match the JRE you just obtained. If it will not install,
visit the Applications Database for workarounds and previous bug
reports. If a bug report does not exist for the environment you are
attempting to install Sun Java into, then please file a bug report and
link it into the Applications Database entry.

Thank you.

James McKenzie
Kari Hurtta

Java in Firefox

Post by Kari Hurtta »

"Sergio Samayoa" <[email protected]> writes
in gmane.comp.emulators.wine.user:
And here I thought that Java was OS independent.
And it is.
Java code can be run on any OS IF there is JVM in such OS.
You should learn what really java is before throwing non-sense comments.
Except, if there is JNI (Java Native Interface) used.

Some banks seems use java applets which use JNI.


/ Kari Hurtta


http://kks.cabal.fi/SampoApplet
rockinup1231
Level 2
Level 2
Posts: 14
Joined: Fri Mar 07, 2008 8:34 pm

Re: Java in Firefox

Post by rockinup1231 »

James McKenzie wrote:sjc1963 wrote:
Dan Kegel wrote:
On Sat, Apr 12, 2008 at 4:52 PM, vitamin <[email protected]> wrote:

Like me. That's exactly the kind of think I like
doing; it's a good test of wine. If it doesn't work,
I file bugs. Like, oh, say
http://bugs.winehq.org/show_bug.cgi?id=4860
Perhaps that's what the original poster was thinking.

One can imagine a real scenario where this would
be useful. A user who wants to use one web browser
for everything, and is forced to use the windows version
of firefox by some awful windows-specific plugin,
might well want to install the Windows version of Java
and expect it to work.
- Dan
And here I thought that Java was OS independent.

Java bytecode is OS independent, but you need a Java Runtime Engine or
Java Software Development Kit for the OS or bytecode cannot be run. So,
if you are running a windows emulator to reproduce the WindowsXP
environment, you also need a WindowsXP JRE in that enviroment or Java
bytecode programs cannot run. This DOES NOT APPLY TO JAVA PROGRAMS
COMPILED TO RUN 'NATIVELY' LIKE OPENOFFICE.ORG. These programs must
have a JRE, but the code runs natively and thus are compiled to the
environment.

So if you need to install a Windows JRE, you will need to go to
java.sun.com and download it. You will also need to set the windows
version to match the JRE you just obtained. If it will not install,
visit the Applications Database for workarounds and previous bug
reports. If a bug report does not exist for the environment you are
attempting to install Sun Java into, then please file a bug report and
link it into the Applications Database entry.

Thank you.

James McKenzie
Okay, that I can do. :D

And for the record, I DO have too much time on my hands. xD I didn't mean to press this on anyone, but I didn't know about where Java was currently in terms of working to begin with outside what the appDB says (which under the JRE category, it says it works if I remember right.)

Again, thanks for the help.
Timeout
Level 4
Level 4
Posts: 183
Joined: Sat Feb 23, 2008 12:45 pm

Post by Timeout »

Java IS working at the moment.
At least once you get the classes in your tmp directory. After that, no problem at least until a new installation of the o/s (where you loose the tmp files).
JRE is hanging, that's a pain for the installation but no more in my case (since the classes are still being created).
Locked