JAR issue.
4 posters
Page 1 of 1
JAR issue.
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:
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
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
Re: JAR issue.
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.
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
Re: JAR issue.
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?
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
Re: JAR issue.
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?
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
Re: JAR issue.
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.
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
Re: JAR issue.
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.
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
Re: JAR issue.
sorry hold up... committing is being stupid..... can't commit yet
daniel- Admin
- Posts : 87
Join date : 2010-10-08
Re: JAR issue.
there it should be uploaded to repository now
daniel- Admin
- Posts : 87
Join date : 2010-10-08
Re: JAR issue.
you don't have to send him anything, do you?
isn't it enough if we just have it in the repo?
isn't it enough if we just have it in the repo?
sadia- Admin
- Posts : 75
Join date : 2010-10-10
Re: JAR issue.
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
commandline sez i dont have java but i swear i do (how else would i run java files right?)
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
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
Re: JAR issue.
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
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
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum