Discussion:
Java on Linux with Freenet
b1yeag76
2003-08-07 21:45:03 UTC
Permalink
Hi. I'm using Mandrake Linux 9.1 non-commercial. I tried installing
Java 1.4.2 with NetBeans and then installing Freenet. Freenet said it
couldn't find Java (though it was definitely installed). Then I
uninstalled it and installed either 1.4.1 or 1.4.2 without NetBeans.
Both of the versions I installed were the J2SE programs. After
installing the version w/o netbeans I tried again and got the same error
message. That freenet could not find Java. Would someone please please
help me out with this. You see I'm not wanting to be some freeloader on
Freenet but open my Linux box as a Freenet server. People will be able
to download from my box at up to 320 Kbps and send files to it at 1.5
Mbps. So that's basically a T1 line I'm offering for server use. I
plan on making around 100-250 MBs file space available.

Anyhow, installing on Windows seems to be a lot easier than Linux. If
anyone can help me with installation (ie. walk this new Linux user
through the steps one by one) I could likely contribute to the Freenet
effort.

Thanks for your help,
Sincerely,


weshouldbegood [wsbg]
Greg Wooledge
2003-08-07 22:12:49 UTC
Permalink
Post by b1yeag76
Hi. I'm using Mandrake Linux 9.1 non-commercial. I tried installing
Java 1.4.2 with NetBeans and then installing Freenet. Freenet said it
couldn't find Java (though it was definitely installed). Then I
uninstalled it and installed either 1.4.1 or 1.4.2 without NetBeans.
Both of the versions I installed were the J2SE programs. After
installing the version w/o netbeans I tried again and got the same error
message. That freenet could not find Java.
Find out where your Java program is installed. Then make /usr/local/bin
a symbolic link to it.

For example, I have j2re1.4.1_03 from Sun. It's installed in
/usr/local/j2re1.4.1_03 and so the full path to the Java runtime
program itself is:

-rwxr-xr-x 1 root root 23572 Apr 30 21:10 /usr/local/j2re1.4.1_03/bin/java

If I were not running Debian (;-)), then I would use the following
command to do as I described:

ln -s /usr/local/j2re1.4.1_03/bin/java /usr/local/bin/java

You can confirm that you've done this correctly by running

java -version

at a command prompt. You should get the version number, etc. Once
you have java in your path like this, then Freenet should be able to
use it.
--
Greg Wooledge | "Truth belongs to everybody."
greg-***@public.gmane.org | - The Red Hot Chili Peppers
http://wooledge.org/~greg/ |
Krist van Besien
2003-08-08 15:53:33 UTC
Permalink
Post by b1yeag76
Hi. I'm using Mandrake Linux 9.1 non-commercial. I tried installing
Java 1.4.2 with NetBeans and then installing Freenet. Freenet said it
couldn't find Java (though it was definitely installed).
I did it like this:

I added:

JAVA_HOME=/opt/j2sdk1.4.2 #change if needed.
CLASSPATH=.:${JAVA_HOME}/jre/lib:${JAVA_HOME}/lib/tools.jar
JAVA=${JAVA_HOME}/bin/java

To the head of start-freenet.sh and stop-freenet.sh
(Just after the #!/bin/sh line)

(Change JAVA_HOME to wherever you've installed java)

Then everywhere in the script it says "java" I replaced it with $JAVA

Greetings,

Krist
--
---------------------------------------------------------------------
Krist van Besien krist-xBDahhJN+R+***@public.gmane.org
Bern, Switzerland
---------------------------------------------------------------------
"You know we're sitting on four million pounds of fuel, one nuclear
weapon and a thing that has 270,000 moving parts built by the lowest
bidder. Makes you feel good, doesn't it?" - Rockhound in Armageddon.
Continue reading on narkive:
Loading...