CSC207-DSSL
Would you like to react to this message? Create an account in a few clicks or log in to continue.

JAR issue.

4 posters

Go down

JAR issue. Empty JAR issue.

Post  daniel Fri Nov 12, 2010 1:47 pm

guys. im running out of ideas. i don't know what to do with this JAR problem anymore.

the jar runs, it contains all of our packaged classes, it contains the Jsoup and keyword-extractor-app libraries.

it does not work when you put in a url. it runs, then stops. it looks like it doesn't load the gate stuff.

here's the error:

Code:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: gate/creole/ResourceInstantiationException
   at facultyfinder.extractor.KWExtractor.<init>(KWExtractor.java:48)

we may possibly need to reference the gate resource in the project... but i don't know how this gate stuff works

here's the jar: http://www.mediafire.com/?if3gqrvqtapdh3g

unzip it and run the jar file

daniel
Admin

Posts : 87
Join date : 2010-10-08

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  daniel Sat Nov 13, 2010 1:01 am

ok here's what i've found out, and not found out:

1. JAR contains all packages, so it's not a package problem
2. when running "java -jar group08.FacultyFinder.jar" in any command line, it says NoClassDefFound on the KeywordExtractorImpl, which is a class in the keyword extractor app. in line 48 of our KWExtractor.
3. I've tried running the jar in both Mac OS and Windows, no go.
4. I've copied the library which contains our libraries into the root of the jar, no go.


daniel
Admin

Posts : 87
Join date : 2010-10-08

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  daniel Sat Nov 13, 2010 2:36 am

edit: sorry for the late text >.> i didnt realize it was nearly 2AM... i thought it was still 11:30 ish....... sorry >.<

Anyways. It is done.

1. All the jars required by the Keyword-extractor-app.jar needed to be defined in the Class Path of the project.
2. Whatever the directory of the project, cannot have any space in the path. i.e.: C:\Documents and Settings\
3. the compiled project was missing the KeywordExtractorApp folder, which contained the gate folder, which itself contained gate-site.xml, gate-user.xml and plugins folder. this is REQUIRED for gate to function.
4. I've tested with both Windows and Mac.
5. It needs the lib folder.

In the repository, you will find a new folder called "FINAL-RELEASE" containing a zip file.

*Save the zip file somewhere NOT in the workspace of the project!*

unzip it and do a test with our normal test cases please:

Run it as an executable, as if it were netbeans. If Windows, check C:/temp/Group08-FacultyFinder for two files FMDATA.xml and RSDATA.xml. If Mac, check /temp/Group08-FacultyFinder for the same two files.

SHOULD THINGS NOT WORK, you can debug it by doing the following:

In Windows, run DOS, cd into the directory of the jar, run "java -jar group08.facultyfinder.jar"
In Mac, just open a terminal and do the same.
Run the tests again

You will find that the output is exactly the same as the output in netbeans, telling you where the errors are.

If there are errors, post them up in here, if not, let me know, so I can send Petersen an email with the jar location.

do we still need to figure out if we want to allow others to review our code?

daniel
Admin

Posts : 87
Join date : 2010-10-08

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  Steven Sat Nov 13, 2010 2:00 pm

So while I was testing I noticed that the user document didn't come up when I clicked the help button.

The help doc file was located in the "docs" folder. It's called "helpDoc.jpg"; I'm guessing the contents of the doc folder were not accounted for when making the .jar file, and that's why the jar file does not have a copy of helpDoc.jpg?

Steven
Admin

Posts : 16
Join date : 2010-10-11

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  Lenny Sat Nov 13, 2010 2:13 pm

wtf command line doesnt recognize 'java'?
k well havent tested the jar yet but as for submitting our code for critique...
id say sure but we'll need to clean up and put in comments the rest of the comments. i already have that done for the comparer, extractor, models package, and the throwables package.

Lenny
Admin

Posts : 65
Join date : 2010-10-08

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  daniel Sat Nov 13, 2010 2:28 pm

ok i've fixed it. a second release is in the repository.

the issue was that in the UI, it was explicitly set as "..//group08.facultyfinder//docs//helpDoc.jpg"

due to jarring the project, there is no longer a folder called "group08.facultyfinder". i've changed it to "docs/helpDoc.jpg" and added a docs folder with ONLY the image, no diagram no status etc.

again i've tested it with windows and mac, please double test because i might have missed some stuff (like that lol). once done, let me know, or send me a text, and ill zip it up and send it to the prof asap.

daniel
Admin

Posts : 87
Join date : 2010-10-08

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  daniel Sat Nov 13, 2010 2:32 pm

sorry hold up... committing is being stupid..... can't commit yet

daniel
Admin

Posts : 87
Join date : 2010-10-08

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  daniel Sat Nov 13, 2010 2:49 pm

there it should be uploaded to repository now

daniel
Admin

Posts : 87
Join date : 2010-10-08

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  daniel Sat Nov 13, 2010 5:11 pm

can i send this revision to the prof?

daniel
Admin

Posts : 87
Join date : 2010-10-08

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  sadia Sat Nov 13, 2010 7:10 pm

you don't have to send him anything, do you?

isn't it enough if we just have it in the repo?

sadia
Admin

Posts : 75
Join date : 2010-10-10

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  Lenny Sat Nov 13, 2010 11:51 pm

im pretty sure he wants a jar
the repository is for assignment 3 ppl to see.
if it seems fine to u daniel go ahead and submit it. im still havin trouble just running jars Razz
commandline sez i dont have java but i swear i do (how else would i run java files right?)

Lenny
Admin

Posts : 65
Join date : 2010-10-08

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  sadia Sun Nov 14, 2010 2:42 am

Lenny wrote:im pretty sure he wants a jar
the repository is for assignment 3 ppl to see.
if it seems fine to u daniel go ahead and submit it. im still havin trouble just running jars Razz
commandline sez i dont have java but i swear i do (how else would i run java files right?)

ah, okay.

yeah, i'm having trouble running jar files too.
something with setting "java 6" as the default ... version of java, or something, i don't know. xD

but i think steven checked it over too?
so i'm guessing it should be fine.

sadia
Admin

Posts : 75
Join date : 2010-10-10

Back to top Go down

JAR issue. Empty Re: JAR issue.

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum