Set Path Windows

setting path php from xampp in windows,
you can tray this
1. open command prompt, clik run type cmd then enter
2. type ‘set PATH=%PATH%;C:\xampp\php’ then enter
3. check with type ‘php –version’

PHP 5.4.4 (cli) (built: Jun 13 2012 21:27:06)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

congratulation 😀

or

setting path java in windows 8 use command prompt
1. check path bin jdk java, for example i use jdk 7 update 15 ‘C:\Program Files\Java\jdk1.7.0_15\bin’
2. type “set PATH=%PATH%;”C:\Program Files\Java\jdk1.7.0_15\bin”
3. check with type ‘java -version’

java version “1.7.0_15”
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

congratulation 😀

Advertisements

Langsung Print Dengan Bahasa Java

sesuai permintaan mas gilang pada commentar Contoh Code Java Sederhana berikut saya sertakan source code dari bahasa java untuk Langsung Cetak Printer Dengan Bahasa Java moga bermanfaat dan silahkan di kembangkan sendiri, semangat… 😀

import java.awt.*;
import java.awt.event.*;
import java.awt.print.*;
import javax.swing.*;
public class JustPrint extends JPanel implements Continue reading

Munculkan Kotak Dialog Printer Dengan Java

sesuai permintaan mas gilang pada commentar Contoh Code Java Sederhana berikut saya sertakan source code dari bahasa java untuk menampilkan Kotak Dialog Printer Dengan Bahasa Java moga bermanfaat dan silahkan di kembangkan sendiri, semangat… 😀

import java.awt.*;
import java.awt.event.*;
import java.awt.print.*;
import javax.swing.*;
public class PrintDialog extends Panel implements Printable, Continue reading

Contoh code java sederhana

nama file : sample1.java
code :

public class sample1 {
public static void main(String[]args){
System.out.print(“Coding Java Pake’ Netbeans 6.8”);
}
}

output:
Coding Java Pake’ Netbeans 6.8

nama file : sample2.java
code :

public class sample2 {
public static void main(String[]args){
System.out.print(“Nama : “);
System.out.println(“netbeans.org”);
System.out.println(“Motto: Free is fun tapi sesuai aturan”);
System.out.print(” “);
}
} Continue reading