Include jopt-simple into classpath in eclipse

117 views
Skip to first unread message

James Z

unread,
Jan 29, 2012, 10:40:00 PM1/29/12
to Umple-Dev
The jopt-simple library code was added on for the umple command line
option parsing.
Andrew helped me set it up and we have confirmed it works when
compiled in the command line.
But there seem to be a issue of getting it to build with umple in the
eclipse.
I have been trying various method to include the jopt-simple code into
the buildpath, but haven't been working.

Currently the easiest fix is to just download the jar file and include
it separately into the lib folder and add it to eclipse like all the
other jar files. But I guess that may cause some inconsistency if we
are ever to change jopt-simple code, and have code redundancy.

So I was just wondering if anyone have a better idea to make it work
in eclipse.

Andrew Forward

unread,
Feb 1, 2012, 11:13:38 PM2/1/12
to umpl...@googlegroups.com
Can you import the jopt project into your environment and reference it directly?

I will take a look over the next few days, let me know if you found a solution apart from the jar reference.

- aforward

> --
> You received this message because you are subscribed to the Google Groups "Umple-Dev" group.
> To post to this group, send an email to umpl...@googlegroups.com.
> To unsubscribe from this group, send email to umple-dev+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/umple-dev?hl=en-GB.
>

mgar...@uottawa.ca

unread,
Feb 2, 2012, 12:12:07 PM2/2/12
to umpl...@googlegroups.com
Hi,

To fix this problem:

- I created a Java project called jopt-simple, import the sources of
folder named jopt-simple.
- I Added this project to cruise.umple as required project on the build path.
- However, my project jopt-simple gives me errors as there are missing jars.
Andrew, Where I can find these jars?

Also, the way I am setting up this new project is the correct way? We need
to update the documentation to reflect these latest changes.

Finally, I just committed the fixes for the Ecore generator.

Thanks,

Miguel G.

James Zhao

unread,
Feb 2, 2012, 1:02:33 PM2/2/12
to umpl...@googlegroups.com
Hi,
I think to fix the missing jar problem we just need to update the junit.jar file, I downloaded one from


And just add that jar to the jopt-simple project.
Then I also had to go to jopt-simple properties -> java build path -> source, and remove the jopt-simple/src/test.
This then seems to be make everything working good.

-- 
James H.T. Zhao

Reply all
Reply to author
Forward
0 new messages