Showing posts with label Java. Show all posts
Showing posts with label Java. Show all posts

Wednesday, 1 October 2008

HOWTO: Java conversions

Always need to convert one type to another? Hard to find it in the java api? Well, here is a quick "cheat-sheet" that will help you convert common types from one to another.

http://www.rgagnon.com/javadetails/java-0004.html

cheers,

Friday, 14 September 2007

How to make a JAR file?

Java is becoming popular as the days go by, however there is one problem. To execute java code, you need to run an java IDE, compile, and then run. With C/C++, its easy. You can make an executable and run it anywhere. Here is the easiest way to make a jar file:

  • Download Blue J IDE (just google bluej and download)
  • Open your java project with BlueJ
  • Under File Menu, select Create a Jar...
  • Select your main method for the jar file. You can also select to either source code or source libraries.
  • Select a file name and your done!

If you want to just double click on a JAR file and wanting it to run, just like any other exe, you must download Java Run Time Environment first. Just google it and download. Enjoy!