Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why is 'bin' in my package path

 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just did a simple jar build with ant and found when I import that jar to a separate project and all of the packages in my jar begin with bin.com.my.project vs. com.my.project.

I'm using eclipse and have all of my compled code in the bin directory (which explains why bin is there).

Do I need to rename my bin directory to com, or is there a way to work with ant such that my compiled code can continue to live in bin/com/my/project, yet the packages don't begin with bin?

Thanks!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds more like an issue with your eclipse setup than with ant, so I've moved this to the IDEs forum.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34178
340
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris,
Right click the project in Eclispe to view the properties. At the bottom of the build section, it allows you to say what folder the compiled code is in. Set this to bin and it will stop showing up separately in your package path.
 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for moving this to the correct spot!

I'm currently looking at my project properties and see that my Default Output Folder is set to myProject/bin.

So I think I have this set correctly
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand correctly, it's not the Eclipse project setting that are at fault, but your Ant script that builds the jar. It simply uses the wrong base folder. Can you show us the target you use for building the jar?
 
Chris Montgomery
Ranch Hand
Posts: 141
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct. I simply used a different ant example and the issue went away.

I tried providing my xml code, but it's not showing up properly in the browser.

chris
[ August 29, 2005: Message edited by: Chris Montgomery ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic