PDA

View Full Version : Installation problems...



AySz88
03-05-2005, 11:30 AM
I'm doing a manual install without making it a service... java.exe doesn't seem to run at all; I don't think I have any ITClient.jar, the link on the download page gives me a ITClient.zip that seems buggy because it has a few zero-size files.

I changed java to "C:\Program Files\Java\jre1.5.0\bin\java.exe... because my computer won't recognize java. Is there something I'm doing wrong with the batch file?

islandNT.bat :

cd "C:\Program Files\DHE"
:begin
start /low /b /wait "C:\Program Files\Java\jre1.5.0\bin\java.exe
-Djava.security.policy=java.policy -jar ITClient.jar 139.184.166.27
KingKong AySz88 -i 30 -c 60 AySz88@aol.com"
#goto begin


Output:

C:\Program Files\DHE>"C:\Program Files\DHE\islandNT.bat"

C:\Program Files\DHE>cd "C:\Program Files\DHE"

C:\Program Files\DHE>start /low /b /wait "C:\Program Files\Java\jre1.5.0\bin\jav
a.exe -Djava.security.policy=java.policy -jar ITClient.jar 139.184.166.27 KingKo
ng AySz88 -i 30 -c 60 AySz88@aol.com"
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

IronBits
03-05-2005, 11:46 AM
Change all references of 139.184.166.27 to dhep.dbestern.com

AySz88
03-05-2005, 12:57 PM
Didn't fix anything...



C:\Program Files\DHE>cd "C:\Program Files\DHE"

C:\Program Files\DHE>start /low /b /wait "C:\Program Files\Java\jre1.5.0\bin\jav
a.exe -Djava.security.policy=java.policy -jar ITClient.jar dhep.dbestern.com Kin
gKong AySz88 -i 30 -c 60 AySz88@aol.com"
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

rshepard
03-05-2005, 02:59 PM
If you don't have the ITClient.jar file , it won't run. Also, you have to change the setting to dhep.dbestern.com in the java.policy file as well as the batch file.

AySz88
03-05-2005, 04:13 PM
Clicking on those links on the download page gives me ITClient.zip instead of ITClient.jar for some reason.

Bok
03-05-2005, 04:27 PM
There isn't an ITClient.zip in the directory??? Do you mean the IslandNT.zip ?

I've fixed the java.policy file on the site to point to dhep.dbestern.com as well.

Bok :D

AySz88
03-05-2005, 09:16 PM
Huh? I downloaded the batch file and ITClient.zip, I have no ITClient.jar and can't find any file named ITClient.jar in ITClient.zip.

Bok
03-05-2005, 09:25 PM
Are you totally sure it's ITclient.zip, remembering that winzip will open the .jar files as they are in fact just another form of compression anyway.

Perhaps you have explorer set not to show file extensions and are just presuming that it is a zip file because it is associated with winzip ? I apologize if this is not the case but I'm just confused because there really isn't an ITclient.zip on the website that I can see looking on the server itself.

Bok

AySz88
03-05-2005, 09:41 PM
It's apparently a (semi)valid .zip as I can extract some .class files from there...

I'm clicking on http://www.cogs.susx.ac.uk/users/mmg20/files/ITClient.jar on http://www.cogs.susx.ac.uk/users/mmg20/dhe/download.php and getting redirected to a ITClient.zip ...

Explorer is showing extensions, and it's definately shows a zip extension. Inside the .zip are the folders distrit, META_INF, and a file distrit. distrit contains the folder client, and the files Task.class, InteractiveTaskServer.class, InteractiveTask.class, and the file client. client contains InteractiveTaskClient.class and InteractiveTaskClient$1.class. META_INF contains MANIFEST.MF.

[edit] No offense taken; I just want this to work. :p

Bok
03-05-2005, 09:45 PM
Weird,

I click on that link and it gives me the .jar

Are you using a download manager at all ? Grasping at straws!!

However, that is the old site, though that will not change this problem.

new site is

http://dhep.dbestern.com

Bok

AySz88
03-05-2005, 09:48 PM
Same problem with the new site....
No download manager... I have UltimateZip installed; could there be some sort of weird behavior there?

[edit] What happens if you just rename that jar to a zip? Are they in fact the same file?

IronBits
03-05-2005, 10:30 PM
Right click on the link, and choose 'save as'

AySz88
03-05-2005, 10:45 PM
Still shows up as a .zip. I'm suspecting they're actually the same file, just UltimateZip or something doing something screwy with the extension.

michaelgarvie
03-07-2005, 05:03 PM
Java JAR files ARE zip files, just rename it back to .jar.

:cheers: miguel

AySz88
03-08-2005, 02:24 AM
Did that, still not working.... It still doesn't seem to be running java.exe for any significant amount of time because it doesn't show up on task manager at all.

I also tried it without the start command at the beginning, and got this:

C:\Program Files\DHE>"C:\Program Files\Java\jre1.5.0\bin\java.exe" -Djava.securi
ty.policy=java.policy -jar ITClient.jar dhep.dbestern.com KingKong AySz88 -i 30
-c 60 AySz88@aol.com
Interact period is 30 minutes.
Connect period is 60 minutes.
Trying to get task from server //dhep.dbestern.com/KingKong
InteractiveTaskClient exception: access denied (java.net.SocketPermission dhep.d
bestern.com resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission d
hep.dbestern.com resolve)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at java.net.InetSocketAddress.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown S
ource)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at distrit.client.InteractiveTaskClient.connectLoop(InteractiveTaskClien
t.java:85)
at distrit.client.InteractiveTaskClient.main(InteractiveTaskClient.java:
248)

:cry:

Bok
03-08-2005, 08:01 AM
That looks like you either haven't got the java.policy file or have got it but haven't changed it to point to dhep.dbestern.com or it's in the wrong place.

Bok

AySz88
03-08-2005, 09:23 PM
Oops, forgot I redownloaded it while I was trying to fix it.

All right, *now* it works. Thanks everyone!

(the link at the top when you click the banner from this page is still pointing at the old place, btw)


FYI, I had to change the batch file to...

start /low /wait C:\Progra~1\Java\jre1.5.0\bin\java.exe -Djava.security.policy=java.policy -jar ITClient.jar dhep.dbestern.com KingKong AySz88 -i 30 -c 60 AySz88@aol.com

Bok
03-08-2005, 09:33 PM
Good spot!

Fixed now :)

Bok :cheers: