Jar exporter seems to have a problem [message #27609] |
Tue, 15 February 2005 20:12  |
Eclipse User |
|
|
|
Originally posted by: jason.burrows.gmail.com
Hi all -
I'm trying to export a project into a jar file for execution, but Eclipse
seems to have trouble when your class files are not located at the root of
the project directory.
For example, lets say my project is in <eclipse>/workspace/project and I
have my output (class files) going to
<eclipse>/workspace/project/output/classfiles/.
When I make a jar file using 'File>export', it will create the jar file
(although it can't find any 'main class' even if the only class I'm
exporting has a main menthod and runs fine in eclipse), but the resulting
jar file will put the class files under /output/classfiles. For example,
if I have a class called com.mypackage.myclass, then myclass.class will
apear in the jar file at:
/output/classfiles/com/mypackage/myclass.class
I can't seem to find any way in the export wizard to tell it that the
classes start relative to a certain location - even though the project
acknowledges this and will run them fine.
I am perfectly able to create the jar file myself, but this is for a very
large project and it would really save me a lot of time if I could get
this feature in Eclipse to work for me (as there are lots of classes that
I don't need to include and the GUI for this is very handy).
Please let me know if you need clarification on my problem.
Using Eclipse 3.1M4 with JDK 1.5.0_01 (enums all over the place, can't
move back on either version).
Thanks
Jason
|
|
|
Re: Jar exporter seems to have a problem [message #28516 is a reply to message #27609] |
Fri, 18 February 2005 09:50  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Jason wrote:
> Hi all -
>
> I'm trying to export a project into a jar file for execution, but
> Eclipse seems to have trouble when your class files are not located at
> the root of the project directory.
>
> For example, lets say my project is in <eclipse>/workspace/project
> and I have my output (class files) going to
> <eclipse>/workspace/project/output/classfiles/.
>
> When I make a jar file using 'File>export', it will create the jar
> file (although it can't find any 'main class' even if the only class
> I'm exporting has a main menthod and runs fine in eclipse), but the
> resulting jar file will put the class files under /output/classfiles.
> For example, if I have a class called com.mypackage.myclass, then
> myclass.class will apear in the jar file at:
>
> /output/classfiles/com/mypackage/myclass.class
>
> I can't seem to find any way in the export wizard to tell it that the
> classes start relative to a certain location - even though the project
> acknowledges this and will run them fine.
>
> I am perfectly able to create the jar file myself, but this is for a
> very large project and it would really save me a lot of time if I
> could get this feature in Eclipse to work for me (as there are lots of
> classes that I don't need to include and the GUI for this is very handy).
>
> Please let me know if you need clarification on my problem.
In order to have someone fix or even look at the problem you'll have to
file a bug report using bugzilla (https://bugs.eclipse.org/bugs/).
Dani
>
> Using Eclipse 3.1M4 with JDK 1.5.0_01 (enums all over the place, can't
> move back on either version).
>
> Thanks
> Jason
>
|
|
|
Powered by
FUDForum. Page generated in 0.05836 seconds