Re: [freenet-support] How to force freenet to use a non-default java

2010-09-08 Thread Dennis Nezic
On Wed, 8 Sep 2010 22:10:22 -0400, Uriel Carrasquilla wrote:
> 
> 
> > Edit the "wrapper.java.command=java" line
> > in the wrapper.conf file.
> 
> 
> I must be doing something wrong.
> I started from scratch by deleting the freenet directory followed by
> a "tar -xzvf freenet...tar.gz". Then, I changed wrapper.con file as
> follow: wrapper.java.command=$HOME/bin/java
> [...]
> Could it be that "$HOME" is causing problems?

Could be. Try not using variables, but instead /home/fullpath/bin/java.
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] How to force freenet to use a non-default java

2010-09-08 Thread Uriel Carrasquilla


> Edit the "wrapper.java.command=java" line
> in the wrapper.conf file.


I must be doing something wrong.
I started from scratch by deleting the freenet directory followed by a "tar 
-xzvf freenet...tar.gz".
Then, I changed wrapper.con file as follow:
wrapper.java.command=$HOME/bin/java

I did an "ls $HOME/bin/java" to confirm.
Then, I ran "$HOME/bin/java -version" to confirm it is SUN's 1.6 version.

When I tried to run "./run.sh start", it gave me the default Linux Open JVM 
(that I cannot change since I don't have root access).

I started from scratch again, "tar, followed by modify wrapper.conf".
This time, I went into "run.sh" and every call to java, I changed to 
"$HOME/bin/java".
Then, I did the same with ./freenet/bin/1run.sh and changed very called to java 
to $HOME/bin/java.

At this point I did a "cd ./freenet" and typed:
./bin/1run.sh

Everything was looking great until I got a message:  crontab command not found. 
 Well, I don't have crontab and I won't be getting it from my hosting company.
I verified by typing "which crontab", the failing command.

I thought, well, I will just have to start freenet (./run.sh start) every time 
I reboot (or put in my own profile).

I proceeded to do a "./run.sh status".
I was told freenet was not running.
I proceeded to "./run.sh start"

Got the following messages:
Starting freenet 0.7

When I do the ./run.sh status:  no luck, it is not running.

When I look at "freenet.ini", it is very small with only 7 lines.

By the way, for some reason I can only have 128M for my JVM.
I went into wrapper.conf and the line the comments tell me to change (I removed 
the # in the 1st column), I ended the line with "MaxPermSize=128m".

When I looked at ./log/wrapper.log, there is a message saying unable to start 
JVM.  It is repeated quite a few times along with no such file or directory.
I doubled checked that I can run Java:
$HOME/bin/java -version

Could it be that "$HOME" is causing problems?
Could it be that I need to type "/$HOME" in all the files?

I promise to put together the documentation once we get this project going.

Thank you all for your help so far.






___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] How to force freenet to use a non-default java

2010-09-08 Thread Uriel Carrasquilla

> Don't do that. Edit the "wrapper.java.command=java" line
> in the wrapper.conf file.

This is a nice clean solution.  Thank you.
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] How to force freenet to use a non-default java

2010-09-08 Thread Romain Dalmaso
On Wed, Sep 8, 2010 at 4:00 AM,   wrote:
> If you're
> launching with the shell script (is there a launcher shell script anymore?),
> you could just change where it calls java and hardcode your own location as
> above.

Don't do that. It's stupid. Edit the "wrapper.java.command=java" line
in the wrapper.conf file.
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe


Re: [freenet-support] How to force freenet to use a non-default java

2010-09-07 Thread urza9814
If you're running the jar directly, you could just hardcode the path to Java
in front of it. i.e. instead of typing 'java -jar freenet.jar' you could
type something like '~/bin/java -jar freenet.jar'...and you could put that
into a shell script or some kind of shortcut to make it easier. If you're
launching with the shell script (is there a launcher shell script anymore?),
you could just change where it calls java and hardcode your own location as
above. If you're already launching Freenet from a shortcut of some type, try
right-clicking or looking around for some way to edit the command that it's
running and make the changes I've suggested above.

I realize this is all bit vague - I haven't used 0.7 (well, tried it a few
times, always returned to 0.5), and I also don't know what kind of system
you're running, but hopefully that will give you a general idea. If you have
any specific issues or questions about what I've said, I may be able to help
you out further.

On Tue, Sep 7, 2010 at 9:43 PM, Eric Chadbourne
wrote:

> On 09/07/2010 08:33 PM, Uriel Carrasquilla wrote:
> > I don't have root access to my machine.
> > I installed Sun Java 1.6 in my own user directory.
> > I created a java a soft link in $HOME/bin.
> > But I cannot put $HOME/bin ahead of the other libraries in $PATH.
> > How can I force freenet to use the java version in $HOME/bin?
> >
> > Or if this is not the right approach, what would suggest?
>
> at terminal can you export JAVA_HOME and then type env and see what it
> says?
>
> alternatively can you specify which java version to use when starting
> freenet?  off the top of my head i can't remember how to do this at
> terminal.  i have two versions of java installed and gnome let's me
> select which version to use when i right click on the jar.
>
> hope that helps,
> eric c
>
>
> ___
> Support mailing list
> Support@freenetproject.org
> http://news.gmane.org/gmane.network.freenet.support
> Unsubscribe at
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
> Or mailto:support-requ...@freenetproject.org?subject=unsubscribe
>



-- 
Brian Flowers
Co-coordinator and Webmaster, PSU Amnesty International
http://clubs.psu.edu/up/amnesty

President, PSU Students for a Sensible Drug Policy
http://PennStateSSDP.org

Vice President,PSU Linux Users Group
http://clubs.psu.edu/up/lug

Secretary and Webmaster, PSU Amateur Radio Club
http://www.clubs.psu.edu/up/k3cr/

President and Webmaster, PSU ACLU
http://clubs.psu.edu/up/aclu

Webmaster, PSU College Libertarians
http://www.clubs.psu.edu/up/libertarians/
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe

Re: [freenet-support] How to force freenet to use a non-default java

2010-09-07 Thread Eric Chadbourne
On 09/07/2010 08:33 PM, Uriel Carrasquilla wrote:
> I don't have root access to my machine.
> I installed Sun Java 1.6 in my own user directory.
> I created a java a soft link in $HOME/bin.
> But I cannot put $HOME/bin ahead of the other libraries in $PATH.
> How can I force freenet to use the java version in $HOME/bin?
> 
> Or if this is not the right approach, what would suggest?

at terminal can you export JAVA_HOME and then type env and see what it says?

alternatively can you specify which java version to use when starting
freenet?  off the top of my head i can't remember how to do this at
terminal.  i have two versions of java installed and gnome let's me
select which version to use when i right click on the jar.

hope that helps,
eric c



signature.asc
Description: OpenPGP digital signature
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe

[freenet-support] How to force freenet to use a non-default java

2010-09-07 Thread Uriel Carrasquilla
I don't have root access to my machine.
I installed Sun Java 1.6 in my own user directory.
I created a java a soft link in $HOME/bin.
But I cannot put $HOME/bin ahead of the other libraries in $PATH.
How can I force freenet to use the java version in $HOME/bin?

Or if this is not the right approach, what would suggest?
___
Support mailing list
Support@freenetproject.org
http://news.gmane.org/gmane.network.freenet.support
Unsubscribe at http://emu.freenetproject.org/cgi-bin/mailman/listinfo/support
Or mailto:support-requ...@freenetproject.org?subject=unsubscribe