For two days i has been search how to run a program written in java language by using Command Prompt. Below is the tutorial about how to that....
1) create a directory with src\ and tests\ in it (the tests is optional if you are not using JUnit).
2) assuming you have "package myjava;" at the top of your files (and make sure that this is what your prof wants, it becomes a pain to mark things if they are not in the right place), make a src\myjava directory (and if you are doing junit a tests\myjava directory).
3) copy your files into the src\myjava directory
4) delete your NetBeans project and recreate it as a new on with exising sources. When you are setting up the src (and optional test) directories add the src\ (and optionally the tests) directory. DO NOT add the src\myjava directory or it won't work in NetBeans.
5) make a directory called classes\ (so you you have src\ classes\, and maybe \tests all in the same place)
6) on the command line type javac -d classes -cp classes src/myjava/*.java * -d tells the compiler where to put the .class files * -cp tells the compiler where to look for classfiles * src/myjava/*.java tells it to compile all of the .java files in src/myjava
7) run it via java -cp classes myjava.Main * -cp classes tells it to look in the classes directory for the .class files * myjava.Main is the name of the class to run
Wednesday, July 22, 2009
Monday, July 20, 2009
Minimize application to system tray...
This time i want to share with you about useful software named TrayIt! this software is used for minimized the program to system tray...
TrayIt! allows to save Taskbar space for minimized windows. For each application which applies TrayIt! it creates a small icon in the System Tray. (System Tray area is located near the Clock). When application's window is minimized this icon represents the application on the Taskbar instead of the regular "minimized rectangle".
Screen shot of TrayIt!
1)Interface of TrayIt! application.
2) You can place the application to the tray by click the Mnimize icon at right top of the application window
3) The Application are minimized to the system trat at clock.
Dowload the TrayIt! application by clicking the download icon below.
Labels:
Perisian
Saturday, July 18, 2009
File Anti-Copy
It is so long time not update my blog..busy with my project...
ok this time i want to share a useful software..this software can prevent somebody to steel a file or copy paste from your pc.. just read the simple explanation of File Anti-Copy..happy download..
File Anti-Copy is a anti-copy security utility working at the Windows kernel level.
Without your password, nobody can copy your files away. This guarantees the program will never lose your data. File Anti-Copy is an Easy To Use security software. First run FileAntiCopy.exe and login. Default username is "admin", password is "admin". After login you will see the main form. You can setup File Anti-Copy here. We suggest you choose the "Autostart Anti-Copy" that will protect your files and data more powerful. And you can set the status of File Anti-Copy here or change the login username and password. When you want to copy files, just log in File Anti-Copy and set the status "Inactive" and click OK.
Screen shoot of File Anti-Copy
1) Log in to File Anti-Copy
2) main interface of Anti-Copy
Click the icon below to download.
password : www.ithotnews.com
ok this time i want to share a useful software..this software can prevent somebody to steel a file or copy paste from your pc.. just read the simple explanation of File Anti-Copy..happy download..
File Anti-Copy is a anti-copy security utility working at the Windows kernel level.
Without your password, nobody can copy your files away. This guarantees the program will never lose your data. File Anti-Copy is an Easy To Use security software. First run FileAntiCopy.exe and login. Default username is "admin", password is "admin". After login you will see the main form. You can setup File Anti-Copy here. We suggest you choose the "Autostart Anti-Copy" that will protect your files and data more powerful. And you can set the status of File Anti-Copy here or change the login username and password. When you want to copy files, just log in File Anti-Copy and set the status "Inactive" and click OK.
Screen shoot of File Anti-Copy
1) Log in to File Anti-Copy
2) main interface of Anti-Copy
Click the icon below to download.
password : www.ithotnews.com
Labels:
Perisian
Subscribe to:
Posts (Atom)