| Summary: | java/javamail needs jaf runtime dependency | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Dr. Jochen Raßler <jochen.rassler> | ||||
| Component: | Individual Port(s) | Assignee: | Alex Dupre <ale> | ||||
| Status: | Closed Unable to Reproduce | ||||||
| Severity: | Affects Some People | CC: | jochen.rassler | ||||
| Priority: | --- | ||||||
| Version: | Latest | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Dr. Jochen Raßler
2017-03-22 17:15:39 UTC
The JAF was needed only on Java6, all successive versions already includes the Java Activation Framework by default. I have OpenJDK 7 + OpenJDK 8 plus openJFX-devel plus JavaMail installed and could not find the activation.jar anywhere on my system. I needed to manually install jaf 1.1 to get JavaMail applications to run. If startet directly from eclipse (4.6 in my case) everything runs fine, because eclipse has jaf included. But running the application standalone it looks for activation.jar in the classpath, which was nowhere to find. So I personally don't see this bug as overcome by events. Please re-look into this issue. Maybe the build target may be modified to explicitly install the activation.jar into the classpath, which is /usr/local/share/java/classes on my system per default if you look into the JRE rt.jar file you'll find the same classes that are in the jaf.jar file, so I'm not sure how it cannot work for you. JavaMail explicitly looks for activation.jar so it needs activation.jar (which is provided by jaf 1.1 and jaf 1.1 does not provide a jaf.jar on my system, as I expected) or JavaMail needs to be reconfigured to look for the classes in rt.jar. Maybe they wrote their own classloader, which avoids the default classloader hierarchy mechanism... Ok, I'll have check and fix how javamail searches for activation.jar, because it shouldn't do it in that way. Can you provide a test case to reproduce the issue? Created attachment 181845 [details]
a test case for build dependencies
the test case is obsolete. Sorry for posting this one to fast, it currently doesn't clearly express the problem. I'm working on a better test case to clearly show the problem Any progress on the test case? |