Archived
This forum has been archived. Please start a new discussion on GitHub.
Testing the "printer" example in java?
zyoracle
in Help Center
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?
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?
0
Comments
-
This might help
Hi ,
I think that you must have found the solution by now but I think that you have yet to add the ice jar file.
This can be done by right clicking the Project on the Navigator window of Eclipse3.1 and going to properties. select java Build path and then select the Libraries Tab.
There the jar file can be added either through "Add Jars" or "Add External Jars" and add the Ice.jar
Cheers,
Narendranath0
