WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: sun java issues (freenet)  (Read 2693 times)

Offline stealthc

  • Newbie
  • *
  • Posts: 2
sun java issues (freenet)
« on: January 05, 2011, 09:31:44 AM »
I've been having a hell of a time trying to get a setup I've been trying to pull off.

I've tried following posted instructions for installing sun java, but to no avail every single time it's produced nothing but mess with my install and I've had to revert.

I am trying to get a vbox image of tiny core with the following:

Sun Java
Apache
PHP
Freenet

Basically at this point I am trying to (for now) extend freenet website publishing functionality to include local php script execution; and I feel this could easily be done using this image with a few small changes to the freenet source code (and recompiled of course to just place files onto apache; rather than serve them through fproxy -- in fact fproxy can go).  I was going to configure shares but considering the webserver can share files it's not really necessary (the only thing I wouldn't mind having is a way (on the host machine, using some modifications to vbox to make it entirely headerless.

I was wondering, for now I should have the header so I can see what I am doing, but I was going to install a component onto the php server to allow for remote binary execution (that could get tricky).  I don't just want php out there, I want a method to put to use idle cpu time just like seti@home does.

Either way I expect things to go in phases -- 1st I must get a vbox image of tiny core with this software all working.  Once I have that I can really get into fiddling with things.  I was also going to install a multi-radio wifi mesh protocol so that people just like me can easily setup nodes by running a vbox image, which will produce a freenet connection.

One of my thoughts is that adding friends to a freenode setup is cumbersome.  There has got to be a better way to do this (and then it occurs to me that im software could help facilitate this process easily enough).

So there's my plan, but the lynchpin is that I must get sun java workin and all of the instructions that I've tried fails miserably.  It's funny because I can get as far as symlinking the firefox plug-in, which of course fails to be noticed by firefox.  Even though java supposedly installs, tried manually using sun's instructions, tried using the forum instructions, and tried using the appbrowser, I cannot get JAVA command to work from the terminal.  I don't care what version of java I get installed, so long as it allows me to install and run freenet.  Any ideas how I can get this figured out?

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: sun java issues (freenet)
« Reply #1 on: January 05, 2011, 10:30:51 AM »
Give more detail on exactly how you tried to install java and I can help. I use the following:

cd /usr/local
sed 's/^more/cat/' < jdk-6u23-linux-i586.bin > /tmp/jdk.bin
yes yes|sh /tmp/jdk.bin -noregister

Adding an /etc/profile.d/java.sh script with the following is also recommended:

export JAVA_HOME=/usr/local/jdk1.6.0_23
PATH=$PATH:$JAVA_HOME/bin

I can't help much with the plugins, but that should get you started.

Offline stealthc

  • Newbie
  • *
  • Posts: 2
Re: sun java issues (freenet)
« Reply #2 on: January 05, 2011, 12:40:30 PM »
well here's where I am currently stuck:
I've tried the installer for freenet and it tries to run but fails with the following error message:
libxtst (unable to find file) or something like that.

From what I have been told I need to install libx?  I tried libx11 seeing as the other ones say "testing"...

I just resetted and things are still not working.  I have no ideas as to why this wouldn't work.

exception in main thread "main" java.main.unsatisfiedlinkerror: /usr/java/jdk1.6.0_21/jre/lib/i386/xawt/
libmawt.so: libxtst.so.6 cannot open shared object file.

Offline danielibarnes

  • Hero Member
  • *****
  • Posts: 548
Re: sun java issues (freenet)
« Reply #3 on: January 05, 2011, 02:06:00 PM »
libXtst.so.6 is part of Xorg-7.4.tcz and Xorg-7.5-lib.tcz depending on which you use.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: sun java issues (freenet)
« Reply #4 on: January 05, 2011, 03:40:53 PM »
Adding an /etc/profile.d/java.sh script with the following is also recommended:

export JAVA_HOME=/usr/local/jdk1.6.0_23
PATH=$PATH:$JAVA_HOME/bin


Hmm, perhaps something of this style could be added to openjdk*.tcz, to avoid the manual post-install fiddling of users?
« Last Edit: January 05, 2011, 03:51:50 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)