On Monday 04 January 2010 14:34:20 Matthew Toseland wrote:
> One theory for this is that icacls.exe is 64-bit on win64 and therefore isn't 
> a valid win32 app when called from 32-bit wrapper or AHK code. However, why 
> do we need to call icacls.exe at all in the new installer, given that we 
> don't create a user? And even if it fails, so what, why should that break 
> anything else?
> 
> Another theory is that there is difficulty in detecting the JVM on win64. One 
> solution is to let it pick it up from the registry, see my other mail - it 
> will only pick  up the 32-bit version, but that is okay, the 64-bit version 
> isn't autoupdated and may not be terribly reliable... However, in the below 
> log, it was attempted to hard-code the path to the 64-bit java exe (which 
> works for other people).
> 
> Thoughts? This is a blocker: Freenet must install reliably on 80% of win64 
> systems before releasing 0.8.0!
> 
> Also, Freenet must install reliably on Windows 7 before releasing 0.8.0. 
> Right now the installer doesn't support it.
> 
The actual conversation would be a good idea:

[05:57:19] <qwebirc24579> Hi!
[05:57:38] <qwebirc24579> Anybody out there willing to help a girl out?
[05:58:12] <evanbd> Ask away :)
[05:59:08] <qwebirc24579> I'm trying to install Freenet, but during 
installation, I keep getting a message saying that something is not a valid win 
32 application
[05:59:46] <qwebirc24579> Then it finishes installing and tells me that it is 
unable to connect and to reinstall
[06:00:08] <qwebirc24579> I'm using Vista
[06:00:11] <evanbd> Oh, great, win installer issues :/
[06:00:17] <evanbd> Not exactly me specialty.
[06:00:21] <evanbd> Post the exact error message?
[06:01:10] <qwebirc24579> icacls.exe is not a valid win 32 application
[06:01:26] <TheSeeker> is that the bit that's trying to create a new user?
[06:01:36] <TheSeeker> old winstaller?
[06:01:56] <qwebirc24579> I'm not sure...
[06:07:54] <evanbd> qwebirc24579: Where / when did you download the installer?
[06:08:29] <qwebirc24579> freenetproject.org
[06:09:09] <evanbd> Recently, I assume?
[06:09:13] <qwebirc24579> Then I tried a different one on source forge
[06:09:19] <qwebirc24579> yes, just a few minutes ago
[06:09:36] <qwebirc24579> i installed then uninstalled and installed again
[06:09:47] <evanbd> :/
[06:09:52] <evanbd> I have no clue, then.
[06:10:02] <qwebirc24579> aw
[06:10:04] <qwebirc24579> oh well
[06:10:13] <qwebirc24579> thanks anyway!
[06:10:17] <evanbd> You might try during UK/US daytime hours.  Or ask on the 
support list.
[06:10:43] <qwebirc24579> i will! :)
[06:10:47] <qwebirc24579> thanks
[19:57:42] <qwebirc50770> Hello?
[19:57:51] <DuClare> Hi?
[19:58:10] <qwebirc50770> I'm having installation issues with freenet and was 
wondering if someone could help
[19:59:00] <infinity0> go on
[19:59:39] <qwebirc50770> When I install, I get a message saying icacls.exe not 
a valid win32 application
[19:59:55] <qwebirc50770> Then when I try to run it, it tells me service did 
not respond to signal
[20:00:06] <qwebirc50770> I uninstalled and reinstalled
[20:00:45] <qwebirc50770> I'm using Vista and am trying to use the one on 
freenetproject.org
[20:02:43] <infinity0> lol
[20:02:53] <infinity0> you need some extra service thingy
[20:03:06] <infinity0> hang on
[20:03:26] <infinity0> qwebirc50770: well, i dunno about the stuff after icacls
[20:03:46] <infinity0> but icacls is some windows admin program that modifies 
file access properties
[20:04:12] <infinity0> i'm surprised the installer needs it, though :/
[20:04:47] <qwebirc50770> :(
[20:05:53] <infinity0> hmm, google suggests it should be part of a standard 
windows vista install...
[20:06:01] <infinity0> qwebirc50770: what "edition" of vista do you have?
[20:07:46] <qwebirc50770> Home Premium
[20:07:59] <qwebirc50770> (Sorry - I had to check)
[20:10:29] <digger3> infinity0: maybe a non-default installation folder that is 
causing it?
[20:10:37] <saces> qwebirc50770: 32 or 64 bit?
[20:10:45] <infinity0> qwebirc50770: hm, i basically have no idea, sorry. if 
you don't have icacls, searhc microsoft
[20:10:52] <infinity0> maybe you can download it from them
[20:11:22] <DuClare> If that doesn't work, try reinstalling the OS, or try 
installing another version
[20:12:51] <qwebirc50770> another version of freenet?
[20:13:06] <DuClare> Of Windows
[20:13:15] <digger3> DuClare: hardly a solution IMHO
[20:13:39] <qwebirc50770> Ah well.
[20:13:57] <digger3> qwebirc50770: 21:10 <@saces> qwebirc50770: 32 or 64 bit?
[20:14:15] <qwebirc50770> I'm not sure...
[20:14:51] <digger3> qwebirc50770: 
http://windows.microsoft.com/en-US/windows-vista/32-bit-and-64-bit-Windows-frequently-asked-questions
  (2nd option)
[20:15:10] <qwebirc50770> 64
[20:16:38] <saces> qwebirc50770: now check the java version for 32/64 bit
[20:17:05] <qwebirc50770> java version?
[20:17:24] <saces> 'java -version' on a command line tells it ;)
[20:20:03] <qwebirc50770> I'm sorry - I'm not sure how to do that. :(
[20:20:57] <saces> start->run program->cmd should open a command prompt
[20:21:47] * saces have never seen a vista or later desktop
[20:22:57] <saces> the type  'java -version'<ENTER> in it, this should print 
the the java version
[20:23:35] <saces> *then type
[20:24:46] <qwebirc50770> 32!
[20:24:48] <qwebirc50770> Yay!
[20:24:50] <qwebirc50770> :P
[20:29:11] <digger3> qwebirc50770: mixing 32bit java with 64bit windows _could_ 
be the cause of your problem
[20:29:22] <saces> http://java.sun.com/javase/downloads/widget/jdk6.jsp
[20:29:25] <digger3> qwebirc50770: try uninstalling java and then manually 
downloading it again from: 
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jre-6u17-oth-JPR
 at CDS-CDS_Developer
[20:29:43] <digger3> qwebirc50770: select 'windows x64' as the platform
[20:30:55] <qwebirc50770> Thank you!
[20:32:06] <evanbd> saces: What about the icacls problem?  Java also, or 
something else?
[20:33:11] <saces> evanbd: i guess the java-32-bit process have tried to create 
a 64-bit child
[20:34:12] <evanbd> saces: Hmm...  I've been wondering what the fix for the 
service did not respond issue was.
[20:34:53] <digger3> gtg
[20:35:05] <digger3> qwebirc50770: please let us know whether this resolves the 
issue
[20:35:16] <qwebirc50770> I will!qw
[20:37:57] <saces> evanbd: maybe wrong permissions due failed icacls call or so.
..
[21:04:42] <qwebirc20693> Hi again!
[21:05:25] <infinity0> hi
[21:05:29] <qwebirc20693> I don't know if the ones who were helping me with my 
installation problem are still out there, but I installed Java for 64 bit and 
no luck
[21:05:29] <infinity0> is it working now?
[21:05:37] <infinity0> you need to edit wrapper.conf
[21:05:46] <infinity0> iirc 64-bit windows doesn't automatically use java64
[21:06:01] <qwebirc20693> Oh
[21:06:05] <qwebirc20693> How do I do that?
[21:06:21] <infinity0> open up freenet/wrapper.conf, and where it says 
wrapper.java.command=java
[21:06:35] <infinity0> replace =java with =C:\where you installed java\java.exe
[21:06:52] <infinity0> something like  c:\java1.6---\bin\java.exe or something
[21:07:31] <infinity0> you might need quotes around the path, maybe
[21:09:26] <qwebirc20693> Gah, there's several folders with java.exe in them
[21:10:26] <infinity0> qwebirc20693: it should be the one in the "bin" folder i 
think
[21:10:45] <qwebirc20693> They're all in different "bin" folders
[21:10:52] <qwebirc20693> I'm not sure which one to choose
[21:11:04] <infinity0> qwebirc20693: can you take a screenshot of the folder 
tree and put it somewhere?
[21:11:15] <infinity0> or just describe it and put it on pastebin or smth
[21:11:16] <qwebirc20693> okay
[21:14:32] <qwebirc20693> <a 
href="http://s860.photobucket.com/albums/ab163/CEAS/?action=view&current=foldertree.jpg
[21:16:18] <infinity0> ooh those are the java updates
[21:16:34] <infinity0> for some stupid reason sun's java updates install as 
copies, instead of installing over the previous version
[21:16:39] <infinity0> you probably want to remove the old versions
[21:17:16] <infinity0> for now, just pick the newest one, which i guess is 
"jre1.6.0_07"
[21:17:23] <infinity0> java.exe should be in the bin/ subfolder of that
[21:17:32] <infinity0> oh, btw, you want to get a newer version
[21:17:40] <infinity0> 1.6_07 has some security holes in it iirc
[21:17:52] <infinity0> get the latest, which i think is 1.6-16 or something
[21:18:01] <kork> 17
[21:18:27] <qwebirc20693> Should I get now or keep going?
[21:18:42] <infinity0> get it now, to be safe
[21:18:50] <qwebirc20693> okay
[21:19:46] <infinity0> qwebirc20693: is the "jre6" a normal folder or a 
shortcut?
[21:19:59] <qwebirc20693> normal folder
[21:20:03] <infinity0> i have no idea if vista has symlinks yet but that would 
make more sense...
[21:20:04] <infinity0> oh, ok
[21:20:23] <qwebirc20693> i have two program files folders
[21:20:30] <qwebirc20693> i don't know why vista does this
[21:20:45] <infinity0> oh, it's to split up 64bit / 32bit programs
[21:20:57] <infinity0> there's some really hacked-up system to make sure they 
play nicely
[21:21:01] <qwebirc20693> i also have jre6 in a separate folder
[21:21:05] <qwebirc20693> oh
[21:21:32] <infinity0> if you want to do some cleaning up, just remove all the 
versions of java, then install a single one, the latest one from sun's website 
:p
[21:21:46] <qwebirc20693> okay, i'm going to try that
[21:22:19] <mrsteveman1> i think its called WinSxS
[21:22:34] <infinity0> "program files (x86)" is the 32bit and "program files" 
is teh 64bit programs
[21:24:00] <mrsteveman1> maybe sxs is their library thing
[21:24:13] <infinity0> yeah the DLL stuff
[21:24:20] <infinity0> my friend was complaining about it the other day
[21:24:45] <mrsteveman1> they've got something even more screwy planned to fix 
their dependency problems
[21:26:29] <infinity0> qwebirc20693: if you have other programs that depends on 
a 32-bit java, you should probably also install a 32-bit version. the 
32-bit/64-bit javas should play nicely with each other...
[21:26:40] <infinity0> sorry if that's confusing but that's the state of 
windows atm... ?.?
[21:28:09] <qwebirc20693> I will. Seriously, thanks for all this help
[21:30:00] <infinity0> np :)
[22:06:42] <qwebirc20693> Hi again!
[22:06:50] <qwebirc20693> How do I open wrapper.conf?
[22:08:53] <infinity0> qwebirc20693: oh notepad will do
[22:08:58] <infinity0> it's just a plain text file
[22:09:27] <qwebirc20693> haha, okay
[22:10:04] <qwebirc20693> which java.exe should I use - the one in Program 
Files (x86) or in Program Files?
[22:27:07] <qwebirc20693> It won't let me change the wrapper.conf file
[22:34:43] <infinity0> qwebirc20693: the one in Program Files, that's the 
64-bit version
[22:35:00] <infinity0> and, try running notepad as Administrator
[22:39:54] <qwebirc20693> thanks! It saved
[22:40:03] <TheSeeker> qwebirc20693: wrapper.conf should probably only be 
opened while the node isn't running
[22:40:39] <qwebirc20693> blah, it still didn't work.
[22:40:48] <qwebirc20693> I had the whole thing shut down
[22:41:04] <qwebirc20693> I haven't been able to get the thing to connect at 
all anyway ;;
[22:42:38] <infinity0> qwebirc20693: what do the last few lines in wrapper.log 
say?
[22:46:01] <qwebirc20693> It only has one line: STATUS | wrapper  | 2010/01/03 
15:03:54 | Freenet background service installed.
[22:46:27] <infinity0> qwebirc20693: and what happens when you try to run it?
[22:47:24] <qwebirc20693> Same thing as before: Service did not respond to 
signal
[22:48:41] <infinity0> qwebirc20693: is that with the freenet.exe or whatever 
it is?
[22:48:53] <qwebirc20693> Yes
[22:51:38] <infinity0> qwebirc20693: uh i have no idea, sorry
[22:51:50] <infinity0> normally when something goes wrong it should say so in 
wrapper.log :/
[22:52:41] <infinity0> what does the "wrapper.logfile.loglevel=" line say in 
wrapper.conf?
[22:53:44] <qwebirc20693> wrapper.logfile.loglevel=INFO
[22:55:53] <infinity0> yeah, mine too
[22:58:34] <infinity0> qwebirc20693: does icacls exist on the command line?
[22:58:42] <infinity0> just type in "icacls" and see what happens
[22:58:56] <qwebirc20693> What command line? (I'm such an idiot)
[22:59:18] <infinity0> the thing you used to run "java -version" earlier
[23:00:43] <qwebirc20693> I didn't do that.
[23:01:07] <infinity0> oh right, there was someone here earlier
[23:01:10] <infinity0> i thought that was you
[23:01:18] <infinity0> (20:23:13) saces: start->run program->cmd should open a 
command prompt
[23:01:23] <infinity0> then type "icacls" into it
[23:04:05] <infinity0> qwebirc20693: oh wait, you're not the one that had the 
"icacls" problem?
[23:04:08] <qwebirc20693> A black box with white text popped up then disappeared
[23:04:12] <qwebirc20693> Yes, I was the one
[23:04:40] <qwebirc20693> I have vista so I don't see run program when i click 
start
[23:05:03] <infinity0> oh right
[23:05:10] <qwebirc20693> but i found it
[23:05:14] <infinity0> it might be in "accessories"
[23:05:17] <infinity0> ah kk
[23:05:29] <qwebirc20693> i hit windows and r
[23:05:31] <infinity0> so when you typed in "icacls" do you mean another black 
box popped up then disappeared?
[23:05:45] <qwebirc20693> yes
[23:05:53] <qwebirc20693> too fast to read
[23:06:05] <infinity0> that should mean your system does have icacls, then :/
[23:06:16] <infinity0> gah
[23:06:31] <infinity0> uh you could try uninstalling then re-installing freenet 
i guess
[23:06:45] <infinity0> you might want to keep a copy of wrapper.conf because 
you'll have to re-do those changes
[23:07:22] <qwebirc20693> okay
[23:12:26] <qwebirc20693> same icacls problem. :(
[23:17:50] <infinity0> qwebirc20693: sigh, sorry i can't help any more with it. 
i don't run windows here... if you stick around, someone might have an answer 
though
[23:19:53] <qwebirc20693> That's okay. Thanks for working with me so much! I 
appreciate it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20100104/d084412c/attachment.pgp>

Reply via email to