I want to use Apache Commons on the server, but the code is using the packages in gwt-dev.jar.

47 views
Skip to first unread message

Mohammad Al-Quraian

unread,
Apr 28, 2013, 9:42:58 AM4/28/13
to google-we...@googlegroups.com
I want to use this class RandomStringUtils, I included the Apache Commons jar in the server side, but my code/ide refers to the ones in the gwt-dev.jar, which won't work because it's not copied to the server. I tried to reorder the libraries in the build path but it didn't help.

How can I avoid this issue?

Patrick Tucker

unread,
Apr 28, 2013, 9:15:39 PM4/28/13
to google-we...@googlegroups.com
Once on the server the jars in a directory are loaded in alphabetic order if not specified otherwise. You can try renaming the jar to make it come first.

Mohammad Al Quraian

unread,
Apr 29, 2013, 2:34:52 PM4/29/13
to google-we...@googlegroups.com
The thig is whenever I use a class from that package the IDE would link to the gwt-dev.jar. It's seem to be a conflict issue, there might be an easy solution but I have no knowledge of it.

On Monday April 29. 2013 at 4:18 AM, Patrick Tucker <tuck...@gmail.com> wrote:

Once on the server the jars in a directory are loaded in alphabetic order if not specified otherwise. You can try renaming the jar to make it come first.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Web Toolkit" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/v5UhdnWvyQA/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Sent from Mailbird - it's faster
Reply all
Reply to author
Forward
0 new messages