env: windows xp, jdk5.0, eclipse3.1, apache-ant-1.6.4
Ice-2.1.1(vc71)
steps:
1, do what the "readme.txt" said, and run printer example in the demoj folder.
------ok
2 , create two projects-"client" and "server" in eclipse,copy the source code
correctlly,add the "Ice.jar" into projects, run in eclipse...
------ok, the server printed "Hello World!"
3, create the jar file using eclipse-export tool, and i get "server.jar" whose MANIFEST.MF points the right mainclass and the jar does not contain the
Ice.lib
------ok
4, in the cmd window, enter the right dir, "java -jar .\server.jar",run...
-----wrong, "Exception in thread "main" java.lang.NoClassDefFoundError: Ice/Object"
question: it seems that i can not find Ice/Object class, but all envs has been configed correctlly followed by "readme.txt",why please?

Reply With Quote