/srv/irclogs.ubuntu.com/2007/08/28/#ubuntu-java.txt

happyface_0hi again jamesstansell12:48
jamesstansellhi happy12:51
happyface_0jamesstansell: I think I may just remove 6.10 and put on 7.0412:53
jamesstansellthat sounds like a good option12:54
jamesstansellare you thinking to upgrade or install fresh?12:54
happyface_0I have to install fresh12:54
happyface_0since its USB12:54
jamesstansellbtw, I saw you mentioned eclipse - is that the main thing you wanted to run?12:54
happyface_0yes12:54
happyface_0which won't work without JRE12:55
happyface_0or JDK12:55
jamesstansellthe package in the archive should run OK with the default JDK (gcj or whatever) but since you mentioned 3.3 I guess it wouldn't have been in the archive12:56
happyface_0yes, the package ran OK12:58
happyface_0but I could not compile and it didn't recognise any syntax12:58
jamesstansell:( probably closely related issues ...12:59
jamesstansellI hadn't heard of livedistro.org before - thanks for the link01:01
happyface_0:)01:02
jamesstansellyou said it required a new install - doesn't it ever support an upgrade?01:03
happyface_0maybe, but I need a custom Feisty because the normal one has a glitch where you can't save stuff when using USB01:04
jamesstansellah - ok01:07
=== doko_ [n=doko@dslb-088-073-095-215.pools.arcor-ip.net] has joined #ubuntu-java
happyface_0This iso is 820mb... I wonder if I'l have to burn it to DVD: (01:11
jamesstanselltoo big for a CD - I assume your USB is big enough though?01:12
happyface_0yes01:12
happyface_04GB01:16
=== ytojack [n=ytojack@59.35.246.248] has joined #ubuntu-java
happyface_0be back later, jamesstansell... hopefully in feisty 01:51
=== AfC [n=andrew@office.syd.operationaldynamics.com] has joined #ubuntu-java
=== happyface_0 [n=dasuidha@d36-116-216.home1.cgocable.net] has joined #ubuntu-java
=== AfC [n=andrew@office.syd.operationaldynamics.com] has joined #ubuntu-java
=== ytojack [n=ytojack@59.35.246.248] has joined #ubuntu-java
=== Starting logfile irclogs/ubuntu-java.log
=== ubuntulog [i=ubuntulo@ubuntu/bot/ubuntulog] has joined #ubuntu-java
=== Topic for #ubuntu-java: Ubuntu Java packaging matters. For Java coding questions please visit ##java
=== Topic (#ubuntu-java): set by vil at Thu Aug 2 16:35:04 2007
=== AfC [n=andrew@office.syd.operationaldynamics.com] has joined #ubuntu-java
=== vil [n=lada@ubuntu/member/vil] has joined #ubuntu-java
=== AfC [n=andrew@office.syd.operationaldynamics.com] has joined #ubuntu-java
=== Nicke [n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se] has joined #ubuntu-java
=== dharrigan [n=david@host12.williamhill.co.uk] has joined #ubuntu-java
=== happyface [n=Dave@d36-116-216.home1.cgocable.net] has joined #ubuntu-java
=== happyface [n=Dave@d36-116-216.home1.cgocable.net] has joined #ubuntu-java
=== Nicke [n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se] has joined #ubuntu-java
=== Nicke [n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se] has joined #ubuntu-java
=== AfC [n=andrew@office.syd.operationaldynamics.com] has joined #ubuntu-java
=== ytojack [n=ytojack@219.131.116.225] has joined #ubuntu-java
=== ytojack [n=ytojack@219.131.116.225] has joined #ubuntu-java
=== thepenguin37 [n=Ekolay@85.100.120.199] has joined #ubuntu-java
=== thepenguin37 [n=Ekolay@85.100.120.199] has left #ubuntu-java []
=== ytojack [n=ytojack@59.35.111.245] has joined #ubuntu-java
=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-java
=== jamesstansell [n=james@wsip-24-249-157-103.tu.ok.cox.net] has joined #ubuntu-java
=== ytojack [n=ytojack@218.15.102.72] has joined #ubuntu-java
=== tmarble [i=tmarble@nat/sun/x-a6d7b50e10f76eae] has joined #ubuntu-java
tmarbledoko_: have you taken packages.ubuntu.com down for maintenance?05:40
jamesstanselltmarble: don't know about earlier, but packages.ubuntu.com seems to be up now06:09
tmarblethanks, yes, it is -- several people reported unusually long response times (but whatever it was has been fixed)06:09
=== vil [n=vladimir@ubuntu/member/vil] has joined #ubuntu-java
happyfacehi, jamesstansell 09:10
happyfaceI'm now in 7.04, and still get the same error installing sun-java6-bin09:10
happyfaceso I'm guessing it might be a USB drive problem for some reason09:10
jamesstansellmaybe properties of the filesystem?09:12
happyfacewho knows09:12
happyfaceI just need it to work, though :(09:12
happyfacewhat to do... what to do... 09:13
viljamesstansell, can I help?09:18
happyfacehelp with what?09:20
vilhe seems to have some sort of problem with installing sun java package09:23
happyfacelet me find that forum post09:24
happyfaceok, I found it... vil I'm having the same problem with 6.10 and 7.04 (both run from USB drive, though) http://ubuntuforums.org/showthread.php?t=41485109:29
vilhappyface, let me take a look09:31
happyfaceok09:31
happyfacethanks... but I'l brb in 10 mins09:31
jamesstansellhi vil - I had just been trying to help happyface09:49
jamesstansellhere's a little more about what he wants to do: http://ubuntuforums.org/showpost.php?p=3263924&postcount=12509:52
jamesstansellexcept he doesn't care about the sun download if the package would install and run for him09:53
vilhappyface, are you running on i386 or amd64?09:53
jamesstansellhe's 32 bit09:53
jamesstansellbut running on a 4GB USB drive09:54
vilalso, if you need java just to run eclipse, you can stick to gcj although it is considerably slower09:54
vilI don't see a problem with USB  drive09:54
happyfacehi I'm back09:54
happyfacevil, gcj opens up eclipse, but syntax correction and compiling doesn't seem to work09:55
happyfaceunless I'm missing a gcj- dev kit thing09:55
=== jamesstansell wonders if there's a separate ecj package needed?
vilwell, it might be handy to have sun java09:56
vilbut the problem you are reporting is rather strange09:56
vilafaik you don't need stand-alone ecj package to run eclipse09:56
jamesstansellecj-gcj --> standalone version of the Eclipse Java compiler (native version)09:57
vilthe problem is that when it tries to install the sun-java it also runs it for a reason, but doesn't find the needed library libjli.so09:57
happyfaceyes exactly09:57
vilat my system 09:58
vilvladimir@sirius:/usr/lib/jvm/java-6-sun/bin$ ldd java09:58
vil        linux-gate.so.1 =>  (0xffffe000)09:58
vil        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f15000)09:58
vil        libjli.so => /usr/lib/jvm/java-6-sun-1.6.0.02/jre/bin/../lib/i386/jli/libjli.so (0xb7f0c000)09:58
vil        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f07000)09:58
vil        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dbd000)09:58
vil        /lib/ld-linux.so.2 (0xb7f46000)09:58
happyface java -version09:58
happyfacejava: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory09:58
vilso can you do ldd /usr/lib/jvm/java-6-sun/bin/java ?09:58
happyfaceno09:59
happyfaceI only have up to /bin09:59
happyfacenvm hold on09:59
happyface        linux-gate.so.1 =>  (0xffffe000)09:59
happyface        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f6b000)09:59
happyface        libjli.so => not found09:59
happyface        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f66000)09:59
happyface        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e25000)09:59
happyface        /lib/ld-linux.so.2 (0xb7f8f000)09:59
jamesstansellmy feisty install shows :/usr/lib/jvm/java-6-sun/bin$ ldd java10:00
jamesstansell        linux-gate.so.1 =>  (0xffffe000)10:00
jamesstansell        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f7e000)10:00
jamesstansell        libjli.so => /usr/lib/jvm/java-6-sun-1.6.0.00/jre/bin/../lib/i386/jli/libjli.so (0xb7f75000)10:00
jamesstansell        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f70000)10:00
jamesstansell        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e2f000)10:00
jamesstansell        /lib/ld-linux.so.2 (0xb7fa3000)10:00
viljamesstansell, that looks good actually10:00
jamesstansellhappyface: do you have a /usr/bin/java today?10:01
vilcan you try to run /usr/lib/jvm/java-6-sun/bin/java ?10:01
vil /usr/bin/java is just a symlink10:01
happyfaceI ran it with -version10:01
happyfaceand got the libjli.so thing10:01
vilI mean if jamesstansell can run it with full path specified, because his ldd looks fine10:02
jamesstansellmine runs fine10:03
happyfacegod damn libjli.so... it's breaking my balls10:03
jamesstansell/usr/lib/jvm/java-6-sun/bin/java -version10:03
jamesstanselljava version "1.6.0"10:03
jamesstansellJava(TM) SE Runtime Environment (build 1.6.0-b105)10:03
jamesstansellJava HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)10:03
jamesstansellhappyface: what does "locate libjli.so" give you?10:04
happyfacelocate: warning: database /var/lib/slocate/slocate.db' is more than 8 days old10:04
happyfaceI'l have to update my database10:05
happyfacelocate -u?10:05
jamesstansellsounds right10:06
vilhappyface, I would suggest to reinstall sun-java6-*10:07
happyface?10:07
happyfaceit does the same error10:07
happyfaceif I reinstall10:08
happyfacelocate libjli.so10:08
happyface/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/jli/libjli.so10:08
jamesstansellI think you might have an issue with the shared lib linker10:09
=== ageorgo [n=tarvid@pha-84-242-86-50.karneval.cz] has joined #ubuntu-java
jamesstansellwell, I expected "ldconfig -p |grep jvm" to show me something but it has no output10:11
happyfacesame10:12
viljamesstansell, the same here10:12
vil:)10:12
happyfaceany other ideas guys?10:13
jamesstansellsomehow though it's getting  /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/jli/ in the LD path for me (and the similar one for vil's version) but not getting it for you10:13
jamesstansellthe java command used to be a shell wrapper but I see it's an ELF file now10:14
jamesstansellis your /usr partition ext3?10:16
happyfacewell, I'm using casper-rw10:17
happyfacebut bsically its ex210:17
jamesstansellfound https://bugs.launchpad.net/bugs/8459110:19
happyfacebug 8459110:19
happyfaceno no10:19
happyfaceI have a patched feisty with persistence working10:19
jamesstansellso this is what that patch was supposed to address?10:20
happyfaceyes10:20
happyfaceit uses some casper files from 6.10 in 7.0410:20
happyfacehttp://www.livedistro.org/release-announcements/gnu/linux-releases/ubuntu-feisty-fawn-patches-for-persistence10:21
happyfaceI'm using iso #210:21
vilhappyface, the best I can think of right now is to try10:22
vilstrace /usr/lib/jvm/java-6-sun-1.6.0.00/bin/java10:23
vilto see, where it fails10:23
happyfaceugh10:23
happyfaceso much output10:23
happyfacehttp://p.opsat.net/v/xi10:24
happyfacedoes that help you decipher anything, vil?10:27
vilhappyface, can you also do10:28
jamesstansellis there anything in /cow/usr/lib/jvm/java-6-sun-1.6.0.00/jre/bin/../jre/lib/i386/jli ? seems like earlier locate found the libjli.so there, right?10:28
vilstrings /usr/lib/jvm/java-6-sun-1.6.0.00/bin/java | grep jli10:28
happyfacelocate libjli.so10:29
happyface/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/jli/libjli.so10:29
happyfacelibjli.so10:29
happyface$ORIGIN/../lib/i386/jli:$ORIGIN/../jre/lib/i386/jli10:29
happyfaceI don't have a /cow10:29
jamesstansellthe /cow/... path had jre/bin/../jre which ends up being jre/jre which isn't right ?10:30
jamesstansell /cow came from the strace output10:31
happyfaceI'm not sure what you mean10:32
happyfacebut there is libjli.so in /usr/lib/jvm/java-6-sun-1.6.0.00/jre/bin/../lib/i386/jli  for me10:32
jamesstanselland thats where this points:  $ORIGIN/../lib/i386/jli10:33
vilhappyface, if you look at that strace output, there are lots of lines begining with /cow10:33
jamesstansellI see it now earlier in the strace output10:33
vilthat is the problem10:34
happyfaceah10:34
happyfaceyea, it says no file or directory10:34
jamesstanselldoes the jvm ship with some library static linked that the persistence patch fixes for apps that use the system shared library?10:35
jamesstansellie for file lookups?10:35
happyfaceI have no idea10:37
jamesstansellthis seems to be where it starts going wrong10:40
jamesstansellreadlink("/proc/self/exe", "/cow/usr/lib/jvm/java-6-sun-1.6.0.00/jre/bin/java"10:40
vilhappyface, now I have also found that cow is something from casper10:40
villooks like #ubuntu-motu might be a better place to search for help10:40
happyfacehmm10:41
happyfacewhat's motu10:41
jamesstansell"masters of the universe"10:41
happyfaceI mean... what's the channel for10:41
vilmotus are developers of all kinds10:42
vilhere people focus mainly on java10:42
viland this is more about linker and casper10:42
happyfaceok10:43
jamesstansellalthough it might have a great deal to do with sun-java6 packaging10:44
vilanyway, if nobody answers you, feel free to come back10:44
vilI have already spent enough time with it to be currious how it ends ;)10:44
jamesstanselltoo bad icedtea isn't further along - can't really recommend that to you yet10:44
viljamesstansell, doko_ would be surely gald to hear you comments10:45
jamesstansellwell, honestly, it might be as good a thing to try as any ...10:46
happyfacevil, where does your strace output point to10:46
vil?10:46
jamesstansellhere's my strace output - http://p.opsat.net/v/xj10:50
happyfaceok10:57
happyfacehey jamesstansell and vil, motu pointed me to https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/103933/comments/810:58
jamesstansell:)10:59
happyfacebut still doesn't help me10:59
vilhappyface, imo that's not wrong that it uses relative path for lib look up11:01
vilI still suspect that casper thing11:01
happyfacethis isn't worth it... maybe I'l try gcj more11:03
jamesstanselldoes "LD_LIBRARY_PATH=/usr/lib/jvm/java-6-sun/jre/lib java -version" do anything different?11:04
happyfaceno :(11:06
=== jamesstansell was afraid of that
=== happyface is afraid of everything
jamesstansellwhat does "LD_TRACE_LOADED_OBJECTS java" give you?11:09
jamesstanselloops - meant "LD_TRACE_LOADED_OBJECTS=1 java"11:09
happyfacebash: LD_TRACE_LOADED_OBJECTS: command not found11:10
happyfaceyea hah11:10
vilhappyface, can you also show us the output of the mount command?11:10
happyfaceLD_TRACE_LOADED_OBJECTS=1 java11:10
happyfaceoops11:10
happyface        linux-gate.so.1 =>  (0xffffe000)11:10
happyface        libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb7f82000)11:10
happyface        libjli.so => not found11:10
happyface        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f7d000)11:10
happyface        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e3c000)11:10
vilthe bug is suggesting that remounting /proc helps11:10
happyface        /lib/ld-linux.so.2 (0xb7fa6000)11:10
jamesstansellsame libjli.so not found11:11
viland the strace logs shows that it all starts at /proc11:11
vilreadlink("/proc/self/exe", "/cow/usr/lib/jvm/java-6-sun-1.6.0.00/jre/bin/java", 4096) = 4911:11
happyfaceunionfs on / type unionfs (rw)11:11
happyfaceproc on /proc type proc (rw,noexec,nosuid,nodev)11:11
happyfacevarrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)11:11
happyfacevarlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)11:11
happyfaceprocbususb on /proc/bus/usb type usbfs (rw)11:11
happyfaceudev on /dev type tmpfs (rw,mode=0755)11:11
happyfacedevshm on /dev/shm type tmpfs (rw)11:11
happyfacedevpts on /dev/pts type devpts (rw,gid=5,mode=620)11:11
happyfacelrm on /lib/modules/2.6.17-10-generic/volatile type tmpfs (rw)11:11
happyfacetmpfs on /tmp type tmpfs (rw,nosuid,nodev)11:11
happyfacebinfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)11:11
jamesstansellI guess that adding an extra mount for /usr/lib/jvm might help11:12
vil"Making sure that the /proc was correctly mounted in the chroot caused the error to go away."11:12
vilnot sure what that means...11:12
happyfacelet me ask motu11:13
jamesstansell"mount --bind olddir newdir" or maybe "mount --rbind olddir newdir"11:13
jamesstansellwhere olddir is /usr/lib/jvm and newdir is /tmp/jvm11:13
happyface/tmp/jvm?11:15
jamesstansellthen try /tmp/jvm/java-6-sun/bin/java -version11:15
jamesstansellmust mkdir /tmp/jvm before the bind command11:15
jamesstansellsudo mount --bind /usr/lib/jvm /tmp/jvm11:15
happyfacesame error11:18
happyfacelibjli.so11:18
vilhappyface, my guess is that your casper runs in a chroot located at /cow11:19
viland readlink("/proc/self/exe", "/cow/usr/lib/jvm/java-6-sun-1.6.0.00/jre/bin/java", 4096) = 49 gives the java binary feeling that it the jvm is installed at /cow/...11:20
vilhowever, I have no idea how to fix that11:21
vilthe problem is not in sun java itself11:21
jamesstansellI think the problem was before the readlink call - whatever gave the java command the /cow/... to start with11:22
jamesstansellhoped the mount --bind might get around that11:22
jamesstansellI'm not sure how --rbind is different11:22
jamesstansellor what a "proper way" to mount /proc in a /cow chroot would be11:23
vilsee you guys11:23
happyfacebye11:24
jamesstansellsee you11:24
jamesstansellhappyface: ltrace java -version    ?11:25
happyfaceI removed sun-java6 for now11:26
happyfaceall I want is eclipse working in the end... so I'm trying gcj11:26
happyfaceeven though I think it uses an outdated java version11:26
jamesstansellthe feisty version might not have the java5 stuff enabled yet - I'm not sure11:28
=== kmxdot [n=skald@208.104.151.215] has joined #ubuntu-java
=== happyface [n=Dave@d36-116-216.home1.cgocable.net] has joined #ubuntu-java
happyfacewell12:05
happyfacesupposedly eclipse uses up too much memory anyway... I guess I'l find a liter editor12:06

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!