0
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;
 
 
public class Sysdetail {
 
    public static void main(String args[]) {
        Properties systemProps = System.getProperties();
        Set<Entry<Object, Object>> sets = systemProps.entrySet();
        System.out.println("systems properties:");
        for(Entry<Object,Object> entry : sets) {
            System.out.println("name: " + entry.getKey() + ", value: " + entry.getValue());
        }
    }
}

Edited by peter_budo: Keep it Organized - For easy readability, always wrap programming code within posts in [code] (code blocks)

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by stultuske
0

by addressing the correct jdbc drivers, and using the correct code while passing on the correct information, such as username and password.
whether or not your program uses properties files has nothing to do with the accessing of a database.
you might want to take a look at this site, you'll find some explanations about the use of jdbc there.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.