Adding a .class file to your Java project.

All I can say is Java class paths are a real pain in the butt. Recently I developed a Java Swing application using the JTwain library. The company I purchased the library from uses a .class file as their license. The only instructions were to put this file in your class path. It sounded simple enough but this was the first time I have ran across this and was unsure the correct way to get the class file in my project. After several failed attempts and many trips to “The Googles” I came up with the following solution. It is pretty simple and works great. I am using Netbeans IDE but the same concepts should be the same for Eclipse, JDeveloper, etc…

  • Create a new project. In Netbeans you want to create a Java Class Library project.



  • Next you want to copy your .class file into the src directory of your project.

Windows File Explorer - Projects src directory


Netbeans Project Explorer

  • Once you have the .class files in your src directory you can right click on your project select Clean and Build.


  • After you build the project you should see the jar file in your projects dist directory. You can simply add this jar file to your project just like any other jar file and it will automatically be in the class path.

Windows File Explorer - Projects dist directory

Google Wave looks pretty awesome.

Google Wave really looks like it could revolutionize web communications. I could definitely see this replacing email, IM, and other current web communication protocols. I will be keeping a close eye on this.

Google Wave is a product that helps users communicate and collaborate on the web. A “wave” is equal parts conversation and document, where users can almost instantly communicate and work together with richly formatted text, photos, videos, maps, and more. Google Wave is also a platform with a rich set of open APIs that allow developers to embed waves in other web services and to build extensions that work inside waves.

Here are some links for further reading.

JBoss announces new “RichFaces in Production” wiki page.

Today JBoss announced a new RichFaces in Production wiki page. It looks like it will be pretty helpful when trying to find information on RichFaces. Be sure and check it out.

Welcome to the wiki for the RichFaces project! This is a general ad hoc collection of information resources about RichFaces. Users are encouraged to donate meaningful documentation and information (like tips and tricks). Material on this wiki can be migrated to be part of the more formal documentation over time.