Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I develop my own Java Library? [closed]

Tags:

java

Are there any good tutorials / starting points you can suggest for me to develop my own Java libraries?

(I'm thinking about developing a small graphics library at the moment.)

like image 470
bremmS Avatar asked Jun 27 '11 17:06

bremmS


1 Answers

How can I develop my own Java Library?

As you probably know a Java library is usually simply a jar-file containing some utility classes, aimed to solve problems at a higher level of abstraction than what the classes in the Java Platform API does. So, technically speaking you simply write the classes you would find useful to have in your library, compile them, jar them up and write some good documentation.

Are there any good tutorials / starting points you can suggest for me to develop my own Java libraries?

Writing useful libraries is a tricky business though. Rather than thinking in terms of what would be a nice design internally, you should think about what would be a nice design for the client to use.

I suggest you google for java api design. Here are a few useful hits:

  • Java API Design Guidelines
  • Beautiful API Design
  • The Java Tutorials: API Design
like image 70
aioobe Avatar answered Oct 20 '22 09:10

aioobe