// ********************************************************************** // // Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** import Demo.*; public class Client { public static void main(String[] args) { try { Ice.Communicator communicator = Ice.Util.initialize(args); HelloPrx hello = HelloPrxHelper.checkedCast(communicator.stringToProxy("hello:tcp -h localhost -p 10000")); hello.sayHello(); communicator.destroy(); } catch(Ice.LocalException ex) { ex.printStackTrace(); System.exit(1); } } }