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

Saturday, 26 April 2014

Java JDK_HOME Windows 7

 Aşağıdaki adımları takip ederek JAVA_HOME set edebilirsiniz.

Right-click the My Computer icon on your desktop and select Properties.

Click Advanced system settings link.

Click the Advanced tab.

Click the Environment Variables button.
Under System Variables, click New.

Enter the variable name as JAVA_HOME

Enter the variable value as the installation path for the Java Development Kit as something like this C:\Program Files\Java\jdk1.6.0_45



Saturday, 12 April 2014

Servlet Yaşam Döngüsü

  1. ilk olarak Servlet Class yüklenir.
  2. Servlet instance yaratılır.
  3. Servlet init() methodu çağırılır.
  4. Servlets service() methodu çağırılır.
  5. Servlets destroy() methodu çağırılır.
İlk 3 step sadece bir kez çağırılır hayat döngüsünde.İlk request geldiği zaman bir defa çağırılarak oluşturulur. 

Could not create the Java Virtual Machine hatası


 Belki sorununuzu çözebilir.

  • Click on Advanced Systems Settings
  • Then Environment Variables
  • Under System Variables, click New
  • In which give Variable Name as: _JAVA_OPTIONS
  • Variable Value: -Xmx1024m
  • Click OK