It is a know problem of classworlds, see http://jira.codehaus.org/secure/ViewIssue.jspa?key=CLASSWORLDS-1
-- Alexei Barantsev, ISP RAS E-mail: [EMAIL PROTECTED] ICQ : 3959207 > -----Original Message----- > From: Jean-Luc Wasmer [mailto:[EMAIL PROTECTED] > Sent: Monday, December 08, 2003 11:40 PM > To: [EMAIL PROTECTED] > Subject: Uberjar and getPackage > > Hi, > > I have a problem when I run a project's uberjar : the > method getPackage() (defined in Class) returns null. > When I run the project in Eclipse I get the expected behaviour. > > Here's the output of the line > System.out.println(getClass() + " is in package " + > getClass().getPackage()); > > run by Eclipse: > class test.ProjectTest is in package package test > > run by java -jar project-test-1.0-uber.jar > class test.ProjectTest is in package null > > > JL > > > ------------------------------------------------------------ > --------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
