Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#107090 - 24/07/2002 10:54 Associating a JAR file?
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Okay, I tried downloading the Sun Java Runtime Environment so that I could get mousewheel support in Jemplode.

It worked, but I hated having it on my system. Every time I surfed to a web page that contained java, everything would freeze up as it loaded the JRE. It was terribly slow.

So I de-installed the Sun JRE and everything works as it did before. Uses the JRE built into IE and works OK now.

However, having the Sun environment did one interesting thing: It allowed me to double-click on a JAR file and have it launch. This was neat.

Now that I've de-installed the Sun JRE, I can no longer double-click on a JAR file as JARs aren't associated with anything any more. If I wanted to associate JAR files with Microsoft's Java runtime, what executable would I associate them with?
_________________________
Tony Fabris

Top
#107091 - 24/07/2002 11:15 Re: Associating a JAR file? [Re: tfabris]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
In reply to:

So I de-installed the Sun JRE and everything works as it did before. Uses the JRE built into IE and works OK now.


I'm not really a Windows guy, but I do Java for my Day Job, and I thought that there was a checkbox item in IE's preferences dialog. So you can install Sun's VM but use the crappy, out-of-date JView one if you insist. (I do love supporting JView, honest).

Ah, yes - here it is:



Attachments
105591-ie-options-java.png (122 downloads)

_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#107092 - 24/07/2002 11:42 Re: Associating a JAR file? [Re: tms13]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Very interesting. Thanks for that info, it might have just solved all my problems in a way I didn't anticipate.
_________________________
Tony Fabris

Top
#107093 - 24/07/2002 12:58 Re: Associating a JAR file? [Re: tfabris]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
That's definitely the way to do things ... the Java Plugin = kind of crappy. I always install the latest VM and turn off the plugin in preferences.

Alternatively, you can add a registry entry for .jar:

HKEY_CLASSES_ROOT/.jar (Default),REGSZ=jarfile
HKEY_CLASSES_ROOT/jarfile/shell/open/command (Default),REG_SZ= "C:\pathtojavaw\javaw.exe" -jar "%1"

pathtojavaw could be c:\program files\jemplode 2.0\jre\bin if you don't have Java installed in any other place

ms

Top
#107094 - 24/07/2002 18:38 Re: Associating a JAR file? [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Okay, yeah, that did the trick. Thanks, tms13, it totally solved my problem.
_________________________
Tony Fabris

Top
#107095 - 25/07/2002 20:48 Re: Associating a JAR file? [Re: tfabris]
image
old hand

Registered: 28/04/2002
Posts: 770
Loc: Los Angeles, CA
also, when you first install JRE1.4, it will ask you if you want to use it for IE's runtime.. just uncheck, and you don't even have to deal w/ it..

Top
#107096 - 25/07/2002 20:54 Re: Associating a JAR file? [Re: mschrag]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Am I the only person that finds that the Sun plugin works about a hundred times better than the standard IE one? I mean, sure, it does take a second to load, but I bet that it's not much longer than the IE one, it's just less invisible. Plus, it works better.
_________________________
Bitt Faulk

Top
#107097 - 26/07/2002 05:41 Re: Associating a JAR file? [Re: wfaulk]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
In reply to:

Am I the only person that finds that the Sun plugin works about a hundred times better than the standard IE one?


Not at all - the JView VM that comes with IE is horribly buggy in many respects (don't ask me about modal dialogs, for instance). The cynical part of me is easily convinced that it's a deliberate ploy by MS to discredit Java, though they claim they are restricted by the current legal case to providing a broken, out-of-date implemention.
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#107098 - 26/07/2002 06:43 Re: Associating a JAR file? [Re: tms13]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
I will say that I misspoke a bit -- The problem with the Sun plugin (aside from the horrible startup time) is that a lot of people wrote applets that depend on MS's VM (idiosyncrosies of the VM, etc). For instance, the retarded bug tracking system our company uses requires the MSVM... Don't ask me why. So I can never turn on Sun's. However, having a 1.4 plugin is nice (builtin Swing). In fact, if I ever do an applet on-Empeg version of jEmplode, it will likely require 1.2+ plugin.

Top