User:Hasan.wiki

Steps to Run a Java Program
1. Install JDK (google for the download link)

2. Add JDK's /bin directory to your %PATH% (google for that too)

3. Write a Java Program (here is a simple one: class Hello { public static void main(String args[]) { System.out.println("hello, world!"); } }

4. Save it as Hello.java

5. Type javac Hello.java (This compiles and creates the Bytecode)

6. Type java Hello (This executes the Bytecode in the VM)

eclipse shortcut
1. Ctrl + Shift + t = find classes

2. Ctrl + Shift + l = view all shortcut list

Ubuntu important command line
1. sudo sh shutdown.sh = restart tomcat server

2. sudo /etc/init.d/networking restart = restart server

Compile windows project using maven in ubuntu terminal
1. Go to project directory

2. ls -la, if exist .project please delete first this file

3. hasan@vesta-it-03:~/projects/branches$ mvn eclipse:eclipse -DdownloadSources=true

4. before run all this, be sure to checkout first in eclipse from svn.

5. after build the project using maven, open eclipse and import back all builed project in to package explorer.