UNLV-ShaneD / unlvCS473kilo

5 stars 4 forks source link

Imported the necessary Charting APIs. #7

Closed dabinett closed 12 years ago

dabinett commented 12 years ago

Go here: http://code.google.com/p/charts4j/downloads/list to download the necessary JAR files (Version 1.3) Since everyone has a C:\ drive, put it in the root so this doesn't break on other people's machines by being in exotic locations on each.

Go to Project -> Properties -> Java Build Path -> Add External JARs and pick the 2 JARs found in the zip file, put by you on the root of C:. If someone could get the Javadoc for charts4j-1.3.jar to work with this that'd help me. I have the Javadoc pointed to where I think it should be but it doesn't work. Thanks.

UNLV-ShaneD commented 12 years ago

Why not put the jars in the project directory - say include/ Then we can just use relative paths.

It /is/ MIT licensed, so we can pretty much do whatever we want with it.

UNLV-ShaneD commented 12 years ago

Where is HomeController.java? Also, sorry about the confusion, but onBudget has problems with Maven and Roo - we're working off of offBudget. I'll remove onBudget from the repository.

Please import to offBudget with source and use a relative path for the charting API.

For future reference, if a project is not MIT licensed or GNU GPL'd, we may need to use an external path so that we don't accidentally push copyrighted stuff to GitHub. In this case, use "../proprietaryLibs/" as the relative folder (to back out of the directories on Git). In any case, make sure to check the license first. Note that if we do use a GNU GPL'd library, we have to be careful to comply with special requirements in that license. So put up an issue if you want to use a GPL'd library.

dabinett commented 12 years ago

Umm, offbudget is supposed to be better? Onbudget had no errors for me and offbudget throws a bunch of these: SEVERE: Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response

and these: SEVERE: Servlet.service() for servlet [offbudget] in context with path [/offbudget] threw exception [Request processing failed; nested exception is org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layouts/default.jspx'.] with root cause java.lang.IllegalStateException: getOutputStream() has already been called for this response

and others... The server works but...

EDIT: Hmm... ran it again and I didn't get anything. I hate Web Programming.

UNLV-ShaneD commented 12 years ago

onBudget kept having Version required errors whenever I tried to use the Roo console. I couldn't get a scaffolding up.

I'm having no problems with onBudget. You're using the vFabric TC Server instead of Tomcat, right? The home page should look like this: example

dabinett commented 12 years ago

"I'm having no problems with onBudget"... you mean offBudget? Maybe I wasn't clear but when I ran it agan I got no exceptions or anything. Regardless, I still had that webpage. Yes I'm using the VMware thing. Now I have merge conflicts. Looks like I get to start over.

UNLV-ShaneD commented 12 years ago

Yes, I meant no problems with offBudget. I'd like to help you, but you haven't pushed any source code to your repository - I only see a class file.

dabinett commented 12 years ago

I... haven't? I see offbudget in my repository with all the .java files and everything else. Oops, forgot the m from ".com" when cloning.

UNLV-ShaneD commented 12 years ago

What commands are you using to add files with git? git add -u git add . etc.

dabinett commented 12 years ago

Good f---ing God. I don't know what the hell happened. I ended up deleting everything associated with this including my repo just to start over. And I still haven't even touched any damn code. Where would I put those JARs? and what's /include? I've never used Java before and have no idea how that relates to "include 'header.h' " from C++.

And uh, "git add"? I've never used that command before. I rarely even use the bash.

UNLV-ShaneD commented 12 years ago

From what I understand, the JARs can go anywhere - their (relative/absolute) location must be listed in the project's classpath. For convenience, since I noted that the JAR you want to use is under the MIT License (very liberal), we can just put it with the rest of the project files. I suggested using a folder called "include/" - perhaps maybe "lib/" would make more sense (i.e. offbudget/include/ or offbudget/lib/). We could name the folder "kellysPoolHall/" - it doesn't really matter.

After you add the JAR to the classpath, you just type code that uses classes from that JAR and import the new classes with Eclipse's automatic import thingy (CTRL+SHIFT+O)

As for Git + Bash...I wouldn't use anything other than Bash. There are a few key commands: git pull git add git commit git push ...and, as always, heavy use of Google is involved. It...it just seems to come with the field...but that's the fun part, right?

Also, believe me; I'm frustrated with Spring, too.