[jitsi-users] Issue Report: Compiling with JDK 8


#1

Hi together,

according to http://lists.jitsi.org/pipermail/users/2014-January/006151.html
you already know that Jitsi can not be compiled with JDK 8 because of an
naming conflict with java.util.Base64.

When discussing on mailing list JDK 8 was beta, now JDK 8 update 5 is final
for a longer time. But even nightly build can not be compiled with JDK 8. Are
you able to fix this problem or do I need to patch the source code by myself
if I want to compile Jitsi?

Regards

Karsten


#2

We'd look forward for having a patch that we could integrate to compile on
Java 8, as long as the same source will still compile on Java 6 (due to the
video issues on Mac).

Ingo

···

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of
Karsten Kochan
Sent: Samstag, 28. Juni 2014 02:24
To: users@jitsi.org
Subject: [jitsi-users] Issue Report: Compiling with JDK 8

Hi together,

according to http://lists.jitsi.org/pipermail/users/2014-January/006151.html
you already know that Jitsi can not be compiled with JDK 8 because of an
naming conflict with java.util.Base64.

When discussing on mailing list JDK 8 was beta, now JDK 8 update 5 is final
for a longer time. But even nightly build can not be compiled with JDK 8.
Are you able to fix this problem or do I need to patch the source code by
myself if I want to compile Jitsi?

Regards

Karsten

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#3

I tried by myself and replaced all problematic wildcard imports of java.util
in the source code with explicit ones. After that it could be compiled but
still doesn't run. It reports same issue on my system as the generic jar from
the website:

org.osgi.framework.BundleException: Unresolved constraint in bundle
net.java.sip.communicator.libjitsi [120]: Unable to resolve 120.0: missing
requirement [120.0] package; (package=javax.imageio)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1797)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
        at java.lang.Thread.run(Thread.java:745)

Full stacktrace is attached.

Regards

Karsten

jitsi.log (74.2 KB)

···

Am Samstag, 28. Juni 2014, 21:51:15 schrieben Sie:

We'd look forward for having a patch that we could integrate to compile on
Java 8, as long as the same source will still compile on Java 6 (due to the
video issues on Mac).

Ingo

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of
Karsten Kochan
Sent: Samstag, 28. Juni 2014 02:24
To: users@jitsi.org
Subject: [jitsi-users] Issue Report: Compiling with JDK 8

Hi together,

according to http://lists.jitsi.org/pipermail/users/2014-January/006151.html
you already know that Jitsi can not be compiled with JDK 8 because of an
naming conflict with java.util.Base64.

When discussing on mailing list JDK 8 was beta, now JDK 8 update 5 is final
for a longer time. But even nightly build can not be compiled with JDK 8.
Are you able to fix this problem or do I need to patch the source code by
myself if I want to compile Jitsi?

Regards

Karsten

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#4

I don't know why this happens, these imports should all already be present.
Have you tried to import the reported javax.something packages in the
manifest files of the mentioned bundles after your changes?
Or try to add javax.imageio to
https://github.com/jitsi/jitsi/blob/master/lib/felix.client.run.properties
-> org.osgi.framework.system.packages.extra (just for testing, not as a
permanent solution).

Also, did you run this from the master branch (with an updated Felix that
runs on Java 8) or with the 2.4 source snapshot?

Ingo

···

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of
Karsten Kochan
Sent: Sonntag, 29. Juni 2014 18:05
To: users@jitsi.org
Subject: Re: [jitsi-users] Issue Report: Compiling with JDK 8

I tried by myself and replaced all problematic wildcard imports of java.util
in the source code with explicit ones. After that it could be compiled but
still doesn't run. It reports same issue on my system as the generic jar
from the website:

org.osgi.framework.BundleException: Unresolved constraint in bundle
net.java.sip.communicator.libjitsi [120]: Unable to resolve 120.0: missing
requirement [120.0] package; (package=javax.imageio)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1797)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
        at java.lang.Thread.run(Thread.java:745)

Full stacktrace is attached.

Regards

Karsten

Am Samstag, 28. Juni 2014, 21:51:15 schrieben Sie:

We'd look forward for having a patch that we could integrate to
compile on Java 8, as long as the same source will still compile on
Java 6 (due to the video issues on Mac).

Ingo

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On
Behalf Of Karsten Kochan
Sent: Samstag, 28. Juni 2014 02:24
To: users@jitsi.org
Subject: [jitsi-users] Issue Report: Compiling with JDK 8

Hi together,

according to
http://lists.jitsi.org/pipermail/users/2014-January/006151.html
you already know that Jitsi can not be compiled with JDK 8 because of
an naming conflict with java.util.Base64.

When discussing on mailing list JDK 8 was beta, now JDK 8 update 5 is
final for a longer time. But even nightly build can not be compiled with

JDK 8.

Are you able to fix this problem or do I need to patch the source code
by myself if I want to compile Jitsi?

Regards

Karsten

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#5

You need to update the version of Felix. Felix has a list of system packages for each version of Java. The last time I looked, the version of Felix included in Jitsi had no list for Java 8. The current release of Felix does support Java 8.

···

On June 29, 2014 6:05:17 AM EDT, Karsten Kochan <karsten.kochan@kako-media.de> wrote:

I tried by myself and replaced all problematic wildcard imports of
java.util
in the source code with explicit ones. After that it could be compiled
but
still doesn't run. It reports same issue on my system as the generic
jar from
the website:

org.osgi.framework.BundleException: Unresolved constraint in bundle
net.java.sip.communicator.libjitsi [120]: Unable to resolve 120.0:
missing
requirement [120.0] package; (package=javax.imageio)
    at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)
      at org.apache.felix.framework.Felix.startBundle(Felix.java:1797)
       at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
       at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
       at java.lang.Thread.run(Thread.java:745)

Full stacktrace is attached.

Regards

Karsten

Am Samstag, 28. Juni 2014, 21:51:15 schrieben Sie:

We'd look forward for having a patch that we could integrate to

compile on

Java 8, as long as the same source will still compile on Java 6 (due

to the

video issues on Mac).

Ingo

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On

Behalf Of

Karsten Kochan
Sent: Samstag, 28. Juni 2014 02:24
To: users@jitsi.org
Subject: [jitsi-users] Issue Report: Compiling with JDK 8

Hi together,

according to

http://lists.jitsi.org/pipermail/users/2014-January/006151.html

you already know that Jitsi can not be compiled with JDK 8 because of

an

naming conflict with java.util.Base64.

When discussing on mailing list JDK 8 was beta, now JDK 8 update 5 is

final

for a longer time. But even nightly build can not be compiled with

JDK 8.

Are you able to fix this problem or do I need to patch the source

code by

myself if I want to compile Jitsi?

Regards

Karsten

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

------------------------------------------------------------------------

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#6

I have updated the Felix version some time ago. That’s why I asked which source package Karsten has used.

Ingo

···

From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of dsh+jitsi@dman13.dyndns.org
Sent: Dienstag, 1. Juli 2014 19:55
To: karsten.kochan@kako-media.de; Jitsi Users
Subject: Re: [jitsi-users] Issue Report: Compiling with JDK 8

You need to update the version of Felix. Felix has a list of system packages for each version of Java. The last time I looked, the version of Felix included in Jitsi had no list for Java 8. The current release of Felix does support Java 8.

On June 29, 2014 6:05:17 AM EDT, Karsten Kochan <karsten.kochan@kako-media.de> wrote:

I tried by myself and replaced all problematic wildcard imports of java.util
in the source code with explicit ones. After that it could be compiled but
still doesn't run. It reports same issue on my system as the generic jar from
the website:

org.osgi.framework.BundleException: Unresolved constraint in bundle
net.java.sip.communicator.libjitsi [120]: Unable to resolve 120.0: missing
requirement [120.0] package; (package=javax.imageio)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1797)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
        at java.lang.Thread.run(Thread.java:745)

Full stacktrace is attached.

Regards

Karsten

Am
Samstag, 28. Juni 2014, 21:51:15 schrieben Sie:
We'd look forward for having a patch that we could integrate to compile on
Java 8, as long as the same source will still compile on Java 6 (due to the
video issues on Mac).

Ingo

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of
Karsten Kochan
Sent: Samstag, 28. Juni 2014 02:24
To: users@jitsi.org
Subject: [jitsi-users] Issue Report: Compiling with JDK 8

Hi together,

according to http://lists.jitsi.org/pipermail/users/2014-January/006151.html
you already know that Jitsi can not be compiled with JDK 8 because of an
naming conflict with java.util.Base64.

When discu
ssing
on mailing list JDK 8 was beta, now JDK 8 update 5 is final
for a longer time. But even nightly build can not be compiled with JDK 8.
Are you able to fix this problem or do I need to patch the source code by
myself if I want to compile Jitsi?

Regards

Karsten

  _____

users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

  _____

users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#7

Hi all, thank you for your help.

I just checked the source package I used. It was the latest stable build. I
checkout out the latest master branch from git and patched the sources again.

This version starts also with Java 8. So it really seems to be the Felix
version, which cause the problem.

Thanks

···

Am Dienstag, 1. Juli 2014, 21:33:13 schrieb Ingo Bauersachs:

I have updated the Felix version some time ago. That’s why I asked which
source package Karsten has used.

Ingo

From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of
dsh+jitsi@dman13.dyndns.org Sent: Dienstag, 1. Juli 2014 19:55
To: karsten.kochan@kako-media.de; Jitsi Users
Subject: Re: [jitsi-users] Issue Report: Compiling with JDK 8

You need to update the version of Felix. Felix has a list of system packages
for each version of Java. The last time I looked, the version of Felix
included in Jitsi had no list for Java 8. The current release of Felix does
support Java 8.

On June 29, 2014 6:05:17 AM EDT, Karsten Kochan > <karsten.kochan@kako-media.de> wrote:

I tried by myself and replaced all problematic wildcard imports of java.util
in the source code with explicit ones. After that it could be compiled but
still doesn't run. It reports same issue on my system as the generic jar
from the website:

org.osgi.framework.BundleException: Unresolved constraint in bundle
net.java.sip.communicator.libjitsi [120]: Unable to resolve 120.0: missing
requirement [120.0] package; (package=javax.imageio)
        at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3564)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1797)
        at
org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192)
        at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266)
        at java.lang.Thread.run(Thread.java:745)

Full stacktrace is attached.

Regards

Karsten

Am
Samstag, 28. Juni 2014, 21:51:15 schrieben Sie:
We'd look forward for having a patch that we could integrate to compile on
Java 8, as long as the same source will still compile on Java 6 (due to the
video issues on Mac).

Ingo

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of
Karsten Kochan
Sent: Samstag, 28. Juni 2014 02:24
To: users@jitsi.org
Subject: [jitsi-users] Issue Report: Compiling with JDK 8

Hi together,

according to
http://lists.jitsi.org/pipermail/users/2014-January/006151.html you already
know that Jitsi can not be compiled with JDK 8 because of an naming
conflict with java.util.Base64.

When discu
ssing
on mailing list JDK 8 was beta, now JDK 8 update 5 is final
for a longer time. But even nightly build can not be compiled with JDK 8.
Are you able to fix this problem or do I need to patch the source code by
myself if I want to compile Jitsi?

Regards

Karsten

  _____

users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

  _____

users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users