Closed
Bug 333485
Opened 20 years ago
Closed 19 years ago
MozillaInterfaces*.jar in dist/bin/sdk/lib
Categories
(Core Graveyard :: Java to XPCOM Bridge, defect)
Core Graveyard
Java to XPCOM Bridge
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: glandium, Assigned: jhpedemonte)
Details
MozillaInterfaces.jar and MozillaInterfaces-src.jar are installed in dist/bin/sdk/lib. It would make more sense for them to be installed in dist/lib/sdk/lib so that they get shipped with the sdk tarball, not the xulrunner (or anything else that includes javaxpcom) application tarball.
On a side note, these files (and the javaxpcom.jar file) are not installed by make install.
| Reporter | ||
Comment 1•20 years ago
|
||
woops they already are installed in dist/sdk/lib, which is fine, but are they any useful in the application tarball (dist/bin/sdk/lib) ? MozillaInterfaces-src.jar is indeed not, MozillaInterfaces.jar might, at least for the Glue part that should be separated (cf. bug #328901). OTOH, this is runtime, not sdk, so if the glue is useful, it should just go in dist/bin, not dist/bin/sdk/lib.
| Assignee | ||
Comment 2•20 years ago
|
||
These files are installed in dist/bin/sdk/lib so that people who download XULRunner can make use of them. Since there is currently no SDK release (should be remedied soon, I believe), the decision was made to ship them with XULRunner. Once the SDK ships, we can remove MozillaInterfaces-src.jar, although I think we should still ship MozillaInterfaces.jar (even split in two) with XULRunner.
| Reporter | ||
Comment 3•20 years ago
|
||
since the MozillaInterfaces.jar is not part of the sdk, but of the runtime, it should not live in sdk/lib in the application tarball, don't you think ?
| Assignee | ||
Comment 4•20 years ago
|
||
Now that I think about it, MozillaInterfaces.jar is somewhat special in that a Java app would need to pull it in in order to use, much in the same way a C++ app compiles against xpcomglue. So yes, both files should probably ship with the SDK and not with XULRunner.
bsmedberg, what do you think?
Comment 5•20 years ago
|
||
As far as I understand it both of these are intended for the SDK, and we only put them in dist/bin/sdk for the time being since we don't have the SDK build system in place yet. They are not part of the XULRunner runtime.
| Reporter | ||
Comment 6•20 years ago
|
||
The thing is... if I take the TestJavaProxy test, and try it, I need both javaxpcom.jar and MozillaInterfaces.jar at runtime. One would expect to only require javaxpcom.jar...
| Assignee | ||
Comment 7•20 years ago
|
||
(In reply to comment #6)
> The thing is... if I take the TestJavaProxy test, and try it, I need both
> javaxpcom.jar and MozillaInterfaces.jar at runtime.
Correct. A Java developer codes against the interfaces and bootstrapping classes in MozillaInterfaces.jar. Under the covers, it loads javaxpcom.jar and the JNI file, but this is irrelevant to the Java dev; he should only concern himself with what is in MozillaInterfaces.jar.
| Reporter | ||
Comment 8•20 years ago
|
||
but in that case, the MozillaInterfaces.jar file should be in the runtime as well as in the SDK...
| Assignee | ||
Comment 9•20 years ago
|
||
No, MozillaInterfaces.jar shouldn't be in the runtime (and wouldn't be used there). A Java program links against, and would need to ship, MozillaInterfaces.jar, which is used to find and load an installed XULRunner (the runtime).
| Assignee | ||
Comment 10•19 years ago
|
||
In the check in to bug 333618, I removed the Makefile lines that copied these jars into dist/bin/sdk/lib. So closing this bug.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Updated•11 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•