5381N/A/*
5381N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
5381N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5381N/A *
5381N/A * This code is free software; you can redistribute it and/or modify it
5381N/A * under the terms of the GNU General Public License version 2 only, as
5381N/A * published by the Free Software Foundation. Oracle designates this
5381N/A * particular file as subject to the "Classpath" exception as provided
5381N/A * by Oracle in the LICENSE file that accompanied this code.
5381N/A *
5381N/A * This code is distributed in the hope that it will be useful, but WITHOUT
5381N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5381N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5381N/A * version 2 for more details (a copy is included in the LICENSE file that
5381N/A * accompanied this code).
5381N/A *
5381N/A * You should have received a copy of the GNU General Public License version
5381N/A * 2 along with this work; if not, write to the Free Software Foundation,
5381N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5381N/A *
5381N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5381N/A * or visit www.oracle.com if you need additional information or have any
5381N/A * questions.
5381N/A */
5381N/A
5381N/Aimport java.util.prefs.Preferences;
5381N/A
5381N/A/**
5381N/A *
5381N/A * @author khazra
5381N/A * First class called by CheckUserPrefsStorage.sh to create and
5381N/A * store a user preference
5381N/A */
5381N/A
5381N/Apublic class CheckUserPrefFirst {
5381N/A
5381N/A public static void main(String[] args) throws Exception {
5381N/A Preferences prefs = Preferences.userNodeForPackage(CheckUserPrefFirst.class);
5381N/A prefs.put("Check", "Success");
5381N/A prefs.flush();
5381N/A }
5381N/A}
5381N/A