HnH + Skype

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

HnH + Skype

Postby ramones » Tue Sep 09, 2014 7:42 am

Not sure if anyone will be able to assist, but I'll try my luck.

So random applications and stuff can be merged with Skype to forward the desired messages there if needed and so can Haven. Application works through API, where info is sent to Skype, where in first time you should get a pop-up, asking you to allow or not allow the application to use the Skype. When you allow it, application will then use Skype and be able to forward messages through it.

I managed to get one working on a laptop with XP 32 bit system, newest Skype version, but am unable to get it working on current laptop with 64bit Win7 system (not that I know if OS plays any role here). Problem I have is, that I don't even receive the pop-up in Skype asking me to allow application to run. I can however go manually to options - advanced settings - manage applications and I can see the application there, can set it on "allow", tho this does not change anything except that visually its now set to allow. It still does not work and I'm getting same error as before: Skype message failed, com.skype.NotAttachedException.

Anyone knows what the problem might be? I've tried 5.0, 6.1, 6.5, 6.18, 6.20, 3.8 and even Skype portable version of Skype and they all have same problem.

Image
W8 - Hermitage
W7 - Emerald City
W6 - Gomorrah
W5 - Pandemonium
W4 - Angkor
W3 - Angkor
User avatar
ramones
 
Posts: 3053
Joined: Fri Jul 09, 2010 10:03 pm
Location: I am a man who walks alone'

Re: HnH + Skype

Postby borka » Tue Sep 09, 2014 6:53 pm

just guessing but it might give you hints:

Skype got installed as admin and now you're running it as normal user (?)

problems with 32 Bit skype4java code on 64 Bit Windows (?)

put Skype pathes in Windows Environment
Check the directory namely release under skype directory and append the absolute path of the release directory to PATH environmental variable.
skype.jar and swt.jar of release directory should be placed under CLASSPATH environment variable.

aus dem skype4java sourcecode:
NotAttachedException.java

Code: Select all
package com.skype;
/**
* Exception which is thrown when the connection the SKYPE Client isn't in place.
* @author Koji Hisano
*/
public class NotAttachedException extends SkypeException {
/**
* Serial UID needed for all serialisation objects.
*/
private static final long serialVersionUID = -4191519326969230719L;
/**
* Constructor.
*
*/
NotAttachedException() {
}
}


good way to look into source code here: https://github.com/deathmarine/BukkitSkype
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: HnH + Skype

Postby ramones » Wed Sep 10, 2014 10:39 am

Thanks for all possible solutions :)

The one that worked was to replace "java" with full path "C:\Program Files\Java\jre8\bin\java.exe" in run.bat and it found java and it works now!
W8 - Hermitage
W7 - Emerald City
W6 - Gomorrah
W5 - Pandemonium
W4 - Angkor
W3 - Angkor
User avatar
ramones
 
Posts: 3053
Joined: Fri Jul 09, 2010 10:03 pm
Location: I am a man who walks alone'

Re: HnH + Skype

Postby Xcom » Wed Sep 10, 2014 1:03 pm

After helping out trying to fix the issue it happened to be as simple as adding the full JRE path to the run.bat. Very odd how the game could find the java path and run the game but the skype API couldn't. The Environment Variables didn't have the java path either so I'm totally confused to how the client could run at all if skype had issues finding the java.exe.


The fix was as simple as changing the following in the run.bat.

From:
java -Xms512m -Xmx1024m -jar haven.jar moltke.seatribe.se
To:
"C:\Program Files\Java\jre8\bin\java.exe" -Xms512m -Xmx1024m -jar haven.jar moltke.seatribe.se
User avatar
Xcom
 
Posts: 1105
Joined: Wed Dec 14, 2011 1:43 pm

Re: HnH + Skype

Postby borka » Thu Sep 11, 2014 4:30 pm

Is only jre8 installed ?
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: HnH + Skype

Postby ramones » Fri Sep 12, 2014 6:23 am

No, I have jre7 folder too, which probably ended up confusing it :)
W8 - Hermitage
W7 - Emerald City
W6 - Gomorrah
W5 - Pandemonium
W4 - Angkor
W3 - Angkor
User avatar
ramones
 
Posts: 3053
Joined: Fri Jul 09, 2010 10:03 pm
Location: I am a man who walks alone'

Re: HnH + Skype

Postby jordancoles » Fri Sep 12, 2014 4:54 pm

Pras! Now Ramones's ramchecking bot will work again!

Good work team lol
Duhhrail wrote:No matter how fast you think you can beat your meat, Jordancoles lies in the shadows and waits to attack his defenseless prey. (tl;dr) Don't afk and jack off. :lol:

Check out my pro-tips thread
Image Image Image
User avatar
jordancoles
 
Posts: 14015
Joined: Sun May 29, 2011 6:50 pm
Location: British Columbia, Canada

Re: HnH + Skype

Postby Magisticus » Fri Sep 12, 2014 5:00 pm

How on earth could the client run without the java path??? would like to know, very bizarre
Magisticus
 
Posts: 117
Joined: Fri May 20, 2011 2:25 pm
Location: Tavistock, Devon, UK

Re: HnH + Skype

Postby borka » Fri Sep 12, 2014 5:23 pm

Being set active in Java Control Panel i.e. http://www.havenandhearth.com/forum/vie ... 40#p491840
(in windows environment you'll find an entry for Path like C:\Program Files\Java,Javapath then)

and you can set path + variables yourself in Windows environment i.e.
Image
Last edited by borka on Fri Sep 12, 2014 5:37 pm, edited 1 time in total.
Avatar by SacreDoom
Java 8 - manually downloads - good to check for actual versions url here:
viewtopic.php?f=42&t=40331
Remember what the dormouse said: Feed your head Feed your head
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: HnH + Skype

Postby Magisticus » Fri Sep 12, 2014 5:33 pm

ok nvm i have diff version of java control panel then, ty anyway answers my q
Magisticus
 
Posts: 117
Joined: Fri May 20, 2011 2:25 pm
Location: Tavistock, Devon, UK

Next

Return to The Wizards' Tower

Who is online

Users browsing this forum: Google [Bot] and 3 guests