cs50 / libcs50-java

CS50 Library for Java
GNU General Public License v3.0
19 stars 11 forks source link

decide where to install library #6

Closed dmalan closed 8 years ago

dmalan commented 8 years ago

Makefile needs to be updated to have packages install cs50.jar and docs in some standard directories.

kzidane commented 8 years ago

@dmalan I think it's more typical to explicitly specify a classpath, but I know the goal may be to simplify things for students so that they don't have to to worry about classpaths, etc specially at the beginning.

per this document https://docs.oracle.com/javase/tutorial/ext/basics/install.html, the jar should go into /usr/java/packages/lib/ext, if we want it to be used by possibly several JREs on the system.

regarding docs, not sure if there's a standard directory for them (they typically exist online). e.g., IDEs often provide ways1 to manually attach source directories (or archives) and/or javadoc URLs (or archives) with a jar file to allow developers to see source code (e.g., while debugging) and docs (e.g., when hovering a method name, etc).


[1] Eclipse examples: http://stackoverflow.com/a/13857564/1797347 and http://stackoverflow.com/a/11579339/1797347!

dmalan commented 8 years ago

Sounds good. Want to tweak the Makefile accordingly?

kzidane commented 8 years ago

Will do.

kzidane commented 8 years ago

Done per #9!

dmalan commented 8 years ago

Thanks!