Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6573 > unrolled thread

java.net.IDN jar for JDK 1.5?

Started byJan Burse <janburse@fastmail.fm>
First post2011-07-26 12:24 +0200
Last post2011-07-27 19:29 -0400
Articles 6 — 3 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  java.net.IDN jar for JDK 1.5? Jan Burse <janburse@fastmail.fm> - 2011-07-26 12:24 +0200
    Re: java.net.IDN jar for JDK 1.5? lewbloch <lewbloch@gmail.com> - 2011-07-26 14:28 -0700
      Re: java.net.IDN jar for JDK 1.5? Jan Burse <janburse@fastmail.fm> - 2011-07-26 23:33 +0200
    Re: java.net.IDN jar for JDK 1.5? Arne Vajhøj <arne@vajhoej.dk> - 2011-07-26 18:27 -0400
      Re: java.net.IDN jar for JDK 1.5? Jan Burse <janburse@fastmail.fm> - 2011-07-27 09:37 +0200
        Re: java.net.IDN jar for JDK 1.5? Arne Vajhøj <arne@vajhoej.dk> - 2011-07-27 19:29 -0400

#6573 — java.net.IDN jar for JDK 1.5?

FromJan Burse <janburse@fastmail.fm>
Date2011-07-26 12:24 +0200
Subjectjava.net.IDN jar for JDK 1.5?
Message-ID<j0m4k8$4kk$1@news.albasani.net>
Dear All,

Just noticed that JDK 1.6 has the new class java.net.IDN,
which provides Namerep and Punycode.

Any .jar file around that can be used to add this
functionality (this class) to JDK 1.5?

Best Regards

[toc] | [next] | [standalone]


#6597

Fromlewbloch <lewbloch@gmail.com>
Date2011-07-26 14:28 -0700
Message-ID<da03d4ab-1a71-4cff-93ba-5eea813672e3@q11g2000yqm.googlegroups.com>
In reply to#6573
On Jul 26, 3:24 am, Jan Burse <janbu...@fastmail.fm> wrote:
> Dear All,
>
> Just noticed that JDK 1.6 has the new class java.net.IDN,
> which provides Namerep and Punycode.
>
> Any .jar file around that can be used to add this
> functionality (this class) to JDK 1.5?

I don't find one with a quick trip to Google, although it looks like
there might be a com.sun.* package out there somewhere that has it.

You are aware that Java 5 has been retired for nearly two years now,
right?

"J2SE 5.0 End of Service Life Notice

"J2SE 5.0 reached its End of Service Life (EOSL) on November 3, 2009,
which is the date of the final publicly available update of version
5.0 (J2SE 5.0 Update 22) ..."
<http://www.oracle.com/technetwork/java/javase/downloads/index-jdk5-
jsp-142662.html>

That means that it's missing several bug and security updates that
have made it into Java 6.

--
Lew

[toc] | [prev] | [next] | [standalone]


#6598

FromJan Burse <janburse@fastmail.fm>
Date2011-07-26 23:33 +0200
Message-ID<j0nbs4$67i$1@news.albasani.net>
In reply to#6597
lewbloch schrieb:
> On Jul 26, 3:24 am, Jan Burse<janbu...@fastmail.fm>  wrote:
>> Dear All,
>>
>> Just noticed that JDK 1.6 has the new class java.net.IDN,
>> which provides Namerep and Punycode.
>>
>> Any .jar file around that can be used to add this
>> functionality (this class) to JDK 1.5?
>
> I don't find one with a quick trip to Google, although it looks like
> there might be a com.sun.* package out there somewhere that has it.
>
> You are aware that Java 5 has been retired for nearly two years now,
> right?
>
> "J2SE 5.0 End of Service Life Notice
>
> "J2SE 5.0 reached its End of Service Life (EOSL) on November 3, 2009,
> which is the date of the final publicly available update of version
> 5.0 (J2SE 5.0 Update 22) ..."
> <http://www.oracle.com/technetwork/java/javase/downloads/index-jdk5-
> jsp-142662.html>
>
> That means that it's missing several bug and security updates that
> have made it into Java 6.
>
> --
> Lew

I guess you are preaching to the converted?
Its not me who is using JDK 1.5, but some
supplier of mine. And I need to create layer,
that works accross JDK 1.5 and JDK 1.6.

Bye

[toc] | [prev] | [next] | [standalone]


#6602

FromArne Vajhøj <arne@vajhoej.dk>
Date2011-07-26 18:27 -0400
Message-ID<4e2f3f6c$0$302$14726298@news.sunsite.dk>
In reply to#6573
On 7/26/2011 6:24 AM, Jan Burse wrote:
> Just noticed that JDK 1.6 has the new class java.net.IDN,
> which provides Namerep and Punycode.
>
> Any .jar file around that can be used to add this
> functionality (this class) to JDK 1.5?

GNU libidn has a Java implementation.

Arne

[toc] | [prev] | [next] | [standalone]


#6608

FromJan Burse <janburse@fastmail.fm>
Date2011-07-27 09:37 +0200
Message-ID<j0of8d$dj5$1@news.albasani.net>
In reply to#6602
Arne Vajhøj schrieb:
> On 7/26/2011 6:24 AM, Jan Burse wrote:
>> Just noticed that JDK 1.6 has the new class java.net.IDN,
>> which provides Namerep and Punycode.
>>
>> Any .jar file around that can be used to add this
>> functionality (this class) to JDK 1.5?
>
> GNU libidn has a Java implementation.
>
> Arne
>
>
http://www.gnu.org/software/libidn/
They write: A native Java and C# port is included.

Does it mean the Java lib just calls C? Or is
it a pure Java implementation? I am thinking
about bundling the jar with an applet, so when
it uses some native component then it would be
problematic.

There is indeed some sun lib which has for
example Punycode:

	package sun.net.idn;
	public final class Punycode;

But using such libraries does not work,
because for example an Oracle applet does bar
the package sun.* from use in an applet. One will
get an exception. Which makes sense, since different
applet provides might have different internal
libraries.

I guess sun.net.idn is old, judging from the change log:
http://www.docjar.com/html/api/sun/net/idn/Punycode.java.html

Maybe there is a com.ibm.icu jar?

Bye



[toc] | [prev] | [next] | [standalone]


#6621

FromArne Vajhøj <arne@vajhoej.dk>
Date2011-07-27 19:29 -0400
Message-ID<4e309f62$0$304$14726298@news.sunsite.dk>
In reply to#6608
On 7/27/2011 3:37 AM, Jan Burse wrote:
> Arne Vajhøj schrieb:
>> On 7/26/2011 6:24 AM, Jan Burse wrote:
>>> Just noticed that JDK 1.6 has the new class java.net.IDN,
>>> which provides Namerep and Punycode.
>>>
>>> Any .jar file around that can be used to add this
>>> functionality (this class) to JDK 1.5?
>>
>> GNU libidn has a Java implementation.

> http://www.gnu.org/software/libidn/
> They write: A native Java and C# port is included.
>
> Does it mean the Java lib just calls C? Or is
> it a pure Java implementation? I am thinking
> about bundling the jar with an applet, so when
> it uses some native component then it would be
> problematic.

I assume that native Java means pure Java.

> There is indeed some sun lib which has for
> example Punycode:
>
> package sun.net.idn;
> public final class Punycode;
>
> But using such libraries does not work,
> because for example an Oracle applet does bar
> the package sun.* from use in an applet. One will
> get an exception. Which makes sense, since different
> applet provides might have different internal
> libraries.
>
> I guess sun.net.idn is old, judging from the change log:
> http://www.docjar.com/html/api/sun/net/idn/Punycode.java.html
>
> Maybe there is a com.ibm.icu jar?

I still think libidn is your best option.

Arne

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web