From: <php...@li...> - 2006-06-13 16:59:03
|
Hi, java it requires that the Java package hierarchy must match the Unix directory hierarchy. If you have a class foo.bar.Baz.class, this class must be placed in the directory foo/bar/ (on windows: foo\bar\). BTW: The URLClassLoader goes even further by requiring that a file url to a directory must end with a slash, even on windows. For example on windows loader = new URLClassLoader(); loader->addURLs(new URL[]{"file:c:\\directory\\")} will fail but loader = new URLClassLoader(); loader->addURLs(new URL[]{"file:c:\\directory/")} will succeed. > i m java newer. my compile procedure like this: > javac phptest.java > jar cvf phptest.jar phptest.class mkdir jl mv phptest.java jl javac jl/phptest.java jar cvf phptest.jar jl/*.class on windows: mkdir jl copy phptest.java jl\phptest.java javac jl\phptest.java jar cvf phptest.jar jl\*.class Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |