Hello everyone,
I'm wondering if the JamVM 1.5.0 which is provided by you, using ipkg install jamvm, is compiled with sockets enabled? Since I'm trying to get a java application that's using sockets working, but it's giving me an error that "Socket newSocket = new Socket(Proxy.NO_PROXY);" is an Unknown Method.
Is there a way to solve this problem? Can I just recompile the JamVm source code, and are there special things that I should do when I try to rebuild the JamVm? Like other settings that should be enabled???
Kind regards, and thanks in advance!
Jan Pannecoeck

Re: JamVM 1.5.0 with Sockets
As far as I know, there is no possibility to switch sockets of in jamvm. After all it is just the VM. The implementation of the classes is more relevant to the classpath implementation. As far as I can tell from the specs at Sun, there is no call to socket() with only one parameter, unless you provide your own socket implementation. Does the call to new Socket() also fail, when it is used without parameters or with new Socket(host, port) also fail?
We used sockets in Java several times successfully.
Re: JamVM 1.5.0 with Sockets
Hello,
Well the fact is that I'm using the Smack API (for XMPP communication) and the Socket call is in their code. But I do have the code and this is that code-part:
Socket newSocket = new Socket(Proxy.NO_PROXY);
newSocket.connect(new InetSocketAddress(host,port));
And in Sun's API there is that constructor for Socket where you can enter a Proxy... But then again, I've no clue if the Gnu Classpath is providing this method or not... I'll check that too.
Anyhow, thanks for your response! That's again one of the thinks I can check off from my list! :-)
Kind regards,
Jan Pannecoeck
Re: JamVM 1.5.0 with Sockets
Well I guess I found the problem:
# constructor java.net.Socket(java.net.Proxy): missing in classpath
(I found this somewhere on the internet..)