Post a Job  |   Ask a Question?   |   Already registered? login or register
Ramakanth reddy
16/05/2015 06:16 AM

Yesterday class practices.I hope these may help anybody ...


how to set and get System variable values ----------------------------------- package com.core.ExtensionClassLoader; public class ExtensionClassLoaderTest { public static void main(String[] args) { System.out.println(System.getProperty("mykey")); } } run this program like this D:\Classloader>java -Dmykey=hai com.core.ExtensionClassLoader.ExtensionClassLoaderTest o/p:hai here we are setting system level variable which can be access within entire jvm
Spam    2 Comments

Ramakanth,reddy
16/05/2015 06:18:50
classpath ways 1.set classpath 2. -cp (switch) 3. -classpath (switch) 4. copy .class file

Ramakanth,reddy
16/05/2015 06:19:17
classpath ways 1.set classpath 2. -cp (switch) 3. -classpath (switch) 4. copy .class file

Languages :
xml