Re: What is openjdk equivalent of javaws.jar
Vincent Fourmond wrote: On Mon, Nov 9, 2009 at 11:23 AM, Andrew Haley wrote: Sure, but that only works for installed packages, whereas its utility would be much greater if it was based on some index of the jars available in the Debian archive... (for the record, apt-file is a utility that tells you which packages are installing a named file). Fair enough. I find the various combinations of dpkg and apt utterly baffling, but that's just me! I know I shouldn't be here really. :-) You spy ;-) ! Uh yeah. Andrew. -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: What is openjdk equivalent of javaws.jar
Hello, On Mon, Nov 9, 2009 at 11:23 AM, Andrew Haley wrote: >> Sure, but that only works for installed packages, whereas its >> utility would be much greater if it was based on some index of the >> jars available in the Debian archive... (for the record, apt-file is a >> utility that tells you which packages are installing a named file). > > Fair enough. I find the various combinations of dpkg and apt utterly > baffling, but that's just me! I know I shouldn't be here really. :-) You spy ;-) ! > Seriously though, that script is *very* useful. I hope you find it so > too. I never said it wasn't - it's just that it's reasonably easy to come up with a solution of this kind (probably less complete, though), for local files than to have something done over the whole archive. I'll give it a try some day... Cheers, Vincent -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: What is openjdk equivalent of javaws.jar
Hello ! On Mon, Nov 9, 2009 at 11:21 AM, Onkar Shinde wrote: >> ~ zipinfo /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar | grep >> SingleInstanceListener >> -rw 1.0 fat 185 b- stor 09-Oct-12 10:59 >> javax/jnlp/SingleInstanceListener.class > > What is version of JRE that you are using? I checked yesterday on > Debian testing with following command and didn't get any output. > jar -tf /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar |grep > SingleInstanceListener ~/tmp dpkg -l | grep openjdk ii openjdk-6-jre 6b16-1.6.1-2 OpenJDK Java runtime, using Hotspot JIT ii openjdk-6-jre-headless 6b16-1.6.1-2 OpenJDK Java runtime, using Hotspot JIT (hea ii openjdk-6-jre-lib 6b16-1.6.1-2 OpenJDK Java runtime (architecture independe Cheers, Vincent -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: What is openjdk equivalent of javaws.jar
On Mon, 2009-11-09 at 15:08 +0530, Onkar Shinde wrote: > Hi, > > I am trying to package a software (sweethome3d) which uses some > classes from javax.jnlp package. When I searched on javacio.us the > results indicated that the classes I am looking for are part of > javaws.jar. This file is currently available only in Sun JRE package > in Debian. > Can anyone help me locate the openjdk equivalent of javaws.jar from > Sun JRE package? The particular class I am looking for is > javax.jnlp.SingleInstanceListener. OpenJDK doesn't come with java webstart. Sun seems to prefer to keep this proprietary. But luckily the OpenJDK package in Debian is based on IcedTea (http://icedtea.classpath.org/) which comes with a free alternative implementation based on netx. You can find the classes in rt.jar (although based on what you say above maybe they should go in a separate jar file, if so, please file a bug report). Cheers, Mark -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: What is openjdk equivalent of javaws.jar
Vincent Fourmond wrote: This raises a problem which I've hit quite a few times already: it is a currently pain to find which java package holds which java classes. It would be quite great to have the equivalent of apt-file for java classes ;-)... (and that shouldn't be too difficult to write, actually - I just do not currently have the time). This should do it. Andrew. #!/bin/sh # # loc Find a class or package # # Usage: loc [-l] class-pattern [dirname] #-lUse system locate command instead of find. In that case, loc # will ignore any directory to be searched. # Example: # # $ loc -l org.objectweb.jonas.common.JProp # /var/lib/jonas/demoserver/ejbjars/autoload/mejb.jar # /var/lib/jonas/lib/common/ow_jonas_bootstrap.jar # /var/lib/jonas/eclipseserver/ejbjars/autoload/mejb.jar # /var/lib/jonas/ejbjars/autoload/mejb.jar # /var/cache/jonas/work/ejbjars/jonas/mejb_2005.09.15-17.01.52.jar # /usr/src/redhat/BUILD/jonas-4.3.3/jonas/classes/common/org/objectweb/jonas/common/JProp.class MODE=$1 if test "$MODE" == "-l"; then COMMAND='(locate \*.jar ; locate \*.war)' shift else COMMAND='(find "$FOO" -name \*.jar -follow ; find "$FOO" -name \*.zip -follow ; find "$FOO" -name \*.war -follow)' fi FOO=$2 if test "x$FOO" == "x"; then FOO=/usr/share/java fi eval "$COMMAND" 2>/dev/null | while read i; do if (jar tf $i 2>/dev/null | grep $1) > /dev/null 2>&1 ; then echo $i fi done if test "$MODE" != "-l"; then find "$FOO" -name '*.class' 2>/dev/null | grep $1 else locate \*.class | grep $1 fi
Re: What is openjdk equivalent of javaws.jar
On Mon, Nov 9, 2009 at 3:50 PM, Vincent Fourmond wrote: > Hello > > On Mon, Nov 9, 2009 at 11:15 AM, Andrew Haley wrote: >> Vincent Fourmond wrote: >> >>> This raises a problem which I've hit quite a few times already: it is >>> a currently pain to find which java package holds which java classes. >>> It would be quite great to have the equivalent of apt-file for java >>> classes ;-)... (and that shouldn't be too difficult to write, actually >>> - I just do not currently have the time). >> >> This should do it. > > Sure, but that only works for installed packages, whereas its > utility would be much greater if it was based on some index of the > jars available in the Debian archive... (for the record, apt-file is a > utility that tells you which packages are installing a named file). Thierry Carrez wrote a utility like that sometime back. More details at https://wiki.ubuntu.com/JavaTeam/JavaContents Onkar -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: What is openjdk equivalent of javaws.jar
Hello On Mon, Nov 9, 2009 at 11:15 AM, Andrew Haley wrote: > Vincent Fourmond wrote: > >> This raises a problem which I've hit quite a few times already: it is >> a currently pain to find which java package holds which java classes. >> It would be quite great to have the equivalent of apt-file for java >> classes ;-)... (and that shouldn't be too difficult to write, actually >> - I just do not currently have the time). > > This should do it. Sure, but that only works for installed packages, whereas its utility would be much greater if it was based on some index of the jars available in the Debian archive... (for the record, apt-file is a utility that tells you which packages are installing a named file). Cheers, Vincent -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: What is openjdk equivalent of javaws.jar
Vincent Fourmond wrote: On Mon, Nov 9, 2009 at 11:15 AM, Andrew Haley wrote: Vincent Fourmond wrote: This raises a problem which I've hit quite a few times already: it is a currently pain to find which java package holds which java classes. It would be quite great to have the equivalent of apt-file for java classes ;-)... (and that shouldn't be too difficult to write, actually - I just do not currently have the time). This should do it. Sure, but that only works for installed packages, whereas its utility would be much greater if it was based on some index of the jars available in the Debian archive... (for the record, apt-file is a utility that tells you which packages are installing a named file). Fair enough. I find the various combinations of dpkg and apt utterly baffling, but that's just me! I know I shouldn't be here really. :-) Seriously though, that script is *very* useful. I hope you find it so too. Andrew. -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: What is openjdk equivalent of javaws.jar
On Mon, Nov 9, 2009 at 3:22 PM, Vincent Fourmond wrote: > Hello, > > On Mon, Nov 9, 2009 at 10:38 AM, Onkar Shinde wrote: >> I am trying to package a software (sweethome3d) which uses some >> classes from javax.jnlp package. When I searched on javacio.us the >> results indicated that the classes I am looking for are part of >> javaws.jar. This file is currently available only in Sun JRE package >> in Debian. >> Can anyone help me locate the openjdk equivalent of javaws.jar from >> Sun JRE package? The particular class I am looking for is >> javax.jnlp.SingleInstanceListener. > > zipinfo suggests that it is provided "by default" by openjdk: > > ~ zipinfo /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar | grep > SingleInstanceListener > -rw 1.0 fat 185 b- stor 09-Oct-12 10:59 > javax/jnlp/SingleInstanceListener.class What is version of JRE that you are using? I checked yesterday on Debian testing with following command and didn't get any output. jar -tf /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar |grep SingleInstanceListener Onkar -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Re: What is openjdk equivalent of javaws.jar
Hello, On Mon, Nov 9, 2009 at 10:38 AM, Onkar Shinde wrote: > I am trying to package a software (sweethome3d) which uses some > classes from javax.jnlp package. When I searched on javacio.us the > results indicated that the classes I am looking for are part of > javaws.jar. This file is currently available only in Sun JRE package > in Debian. > Can anyone help me locate the openjdk equivalent of javaws.jar from > Sun JRE package? The particular class I am looking for is > javax.jnlp.SingleInstanceListener. zipinfo suggests that it is provided "by default" by openjdk: ~ zipinfo /usr/lib/jvm/java-6-openjdk/jre/lib/rt.jar | grep SingleInstanceListener -rw 1.0 fat 185 b- stor 09-Oct-12 10:59 javax/jnlp/SingleInstanceListener.class On the other hand, I don't have any idea of whether this class is functional or not. The relatively small size might suggest otherwise. This raises a problem which I've hit quite a few times already: it is a currently pain to find which java package holds which java classes. It would be quite great to have the equivalent of apt-file for java classes ;-)... (and that shouldn't be too difficult to write, actually - I just do not currently have the time). Cheers, Vincent -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
What is openjdk equivalent of javaws.jar
Hi, I am trying to package a software (sweethome3d) which uses some classes from javax.jnlp package. When I searched on javacio.us the results indicated that the classes I am looking for are part of javaws.jar. This file is currently available only in Sun JRE package in Debian. Can anyone help me locate the openjdk equivalent of javaws.jar from Sun JRE package? The particular class I am looking for is javax.jnlp.SingleInstanceListener. Onkar -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org