本文整理汇总了Java中net.sf.launch4j.config.Jre类的典型用法代码示例。如果您正苦于以下问题:Java Jre类的具体用法?Java Jre怎么用?Java Jre使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Jre类属于net.sf.launch4j.config包,在下文中一共展示了Jre类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addJre
import net.sf.launch4j.config.Jre; //导入依赖的package包/类
private void addJre(Jre jre) {
addWindowsPath(JRE_PATH, jre.getPath());
addTrue(BUNDLED_JRE_64_BIT, jre.getBundledJre64Bit());
addTrue(BUNDLED_JRE_AS_FALLBACK, jre.getBundledJreAsFallback());
addText(JAVA_MIN_VER, jre.getMinVersion());
addText(JAVA_MAX_VER, jre.getMaxVersion());
addText(JDK_PREFERENCE, String.valueOf(jre.getJdkPreferenceIndex()));
addInteger(RUNTIME_BITS, jre.getRuntimeBitsIndex() + 1);
addInteger(INITIAL_HEAP_SIZE, jre.getInitialHeapSize());
addInteger(INITIAL_HEAP_PERCENT, jre.getInitialHeapPercent());
addInteger(MAX_HEAP_SIZE, jre.getMaxHeapSize());
addInteger(MAX_HEAP_PERCENT, jre.getMaxHeapPercent());
StringBuffer options = new StringBuffer();
if (jre.getOptions() != null && !jre.getOptions().isEmpty()) {
addSpace(options);
append(options, jre.getOptions(), " ");
}
addText(JVM_OPTIONS, options.toString());
}
示例2: addJre
import net.sf.launch4j.config.Jre; //导入依赖的package包/类
private void addJre(Jre jre) {
addWindowsPath(JRE_PATH, jre.getPath());
addText(JAVA_MIN_VER, jre.getMinVersion());
addText(JAVA_MAX_VER, jre.getMaxVersion());
addText(JDK_PREFERENCE, String.valueOf(jre.getJdkPreferenceIndex()));
addInteger(INITIAL_HEAP_SIZE, jre.getInitialHeapSize());
addInteger(INITIAL_HEAP_PERCENT, jre.getInitialHeapPercent());
addInteger(MAX_HEAP_SIZE, jre.getMaxHeapSize());
addInteger(MAX_HEAP_PERCENT, jre.getMaxHeapPercent());
StringBuffer options = new StringBuffer();
if (jre.getOptions() != null && !jre.getOptions().isEmpty()) {
addSpace(options);
append(options, jre.getOptions(), " ");
}
addText(JVM_OPTIONS, options.toString());
}
示例3: addJre
import net.sf.launch4j.config.Jre; //导入依赖的package包/类
private void addJre(Jre jre) {
addWindowsPath(JRE_PATH, jre.getPath());
addText(JAVA_MIN_VER, jre.getMinVersion());
addText(JAVA_MAX_VER, jre.getMaxVersion());
addText(JDK_PREFERENCE, String.valueOf(jre.getJdkPreferenceIndex()));
addInteger(INITIAL_HEAP_SIZE, jre.getInitialHeapSize());
addInteger(INITIAL_HEAP_PERCENT, jre.getInitialHeapPercent());
addInteger(MAX_HEAP_SIZE, jre.getMaxHeapSize());
addInteger(MAX_HEAP_PERCENT, jre.getMaxHeapPercent());
StringBuffer options = new StringBuffer();
if (jre.getOptions() != null && !jre.getOptions().isEmpty()) {
addSpace(options);
append(options, jre.getOptions(), " ");
}
addText(JVM_OPTIONS, options.toString());
}
示例4: JreFormImpl
import net.sf.launch4j.config.Jre; //导入依赖的package包/类
public JreFormImpl(Bindings bindings, JFileChooser fc) {
_jdkPreferenceCombo.setModel(new DefaultComboBoxModel(new String[] {
Messages.getString("jdkPreference.jre.only"),
Messages.getString("jdkPreference.prefer.jre"),
Messages.getString("jdkPreference.prefer.jdk"),
Messages.getString("jdkPreference.jdk.only")}));
_runtimeBitsCombo.setModel(new DefaultComboBoxModel(new String[] {
Messages.getString("runtimeBits.64"),
Messages.getString("runtimeBits.64And32"),
Messages.getString("runtimeBits.32And64"),
Messages.getString("runtimeBits.32")}));
bindings.add("jre.path", _jrePathField)
.add("jre.bundledJre64Bit", _bundledJre64BitCheck)
.add("jre.bundledJreAsFallback", _bundledJreAsFallbackCheck)
.add("jre.minVersion", _jreMinField)
.add("jre.maxVersion", _jreMaxField)
.add("jre.jdkPreferenceIndex", _jdkPreferenceCombo, Jre.DEFAULT_JDK_PREFERENCE_INDEX)
.add("jre.runtimeBitsIndex", _runtimeBitsCombo, Jre.DEFAULT_JDK_PREFERENCE_INDEX)
.add("jre.initialHeapSize", _initialHeapSizeField)
.add("jre.initialHeapPercent", _initialHeapPercentField)
.add("jre.maxHeapSize", _maxHeapSizeField)
.add("jre.maxHeapPercent", _maxHeapPercentField)
.add("jre.options", _jvmOptionsTextArea);
_varCombo.setModel(new DefaultComboBoxModel(new String[] {
"EXEDIR", "EXEFILE", "PWD", "OLDPWD", "JREHOMEDIR",
"HKEY_CLASSES_ROOT", "HKEY_CURRENT_USER", "HKEY_LOCAL_MACHINE",
"HKEY_USERS", "HKEY_CURRENT_CONFIG" }));
_varCombo.addActionListener(new VarComboActionListener());
_varCombo.setSelectedIndex(0);
_propertyButton.addActionListener(new PropertyActionListener());
_optionButton.addActionListener(new OptionActionListener());
_envPropertyButton.addActionListener(new EnvPropertyActionListener(_envVarField));
_envOptionButton.addActionListener(new EnvOptionActionListener(_envVarField));
}
示例5: JreFormImpl
import net.sf.launch4j.config.Jre; //导入依赖的package包/类
public JreFormImpl(Bindings bindings, JFileChooser fc) {
_jdkPreferenceCombo.setModel(new DefaultComboBoxModel(new String[] {
Messages.getString("jdkPreference.jre.only"),
Messages.getString("jdkPreference.prefer.jre"),
Messages.getString("jdkPreference.prefer.jdk"),
Messages.getString("jdkPreference.jdk.only")}));
_runtimeBitsCombo.setModel(new DefaultComboBoxModel(new String[] {
Messages.getString("runtimeBits.64"),
Messages.getString("runtimeBits.64And32"),
Messages.getString("runtimeBits.32")}));
bindings.add("jre.path", _jrePathField)
.add("jre.bundledJre64Bit", _bundledJre64BitCheck)
.add("jre.minVersion", _jreMinField)
.add("jre.maxVersion", _jreMaxField)
.add("jre.jdkPreferenceIndex", _jdkPreferenceCombo, Jre.DEFAULT_JDK_PREFERENCE_INDEX)
.add("jre.runtimeBitsIndex", _runtimeBitsCombo, Jre.DEFAULT_JDK_PREFERENCE_INDEX)
.add("jre.initialHeapSize", _initialHeapSizeField)
.add("jre.initialHeapPercent", _initialHeapPercentField)
.add("jre.maxHeapSize", _maxHeapSizeField)
.add("jre.maxHeapPercent", _maxHeapPercentField)
.add("jre.options", _jvmOptionsTextArea);
_varCombo.setModel(new DefaultComboBoxModel(new String[] {
"EXEDIR", "EXEFILE", "PWD", "OLDPWD", "JREHOMEDIR",
"HKEY_CLASSES_ROOT", "HKEY_CURRENT_USER", "HKEY_LOCAL_MACHINE",
"HKEY_USERS", "HKEY_CURRENT_CONFIG" }));
_varCombo.addActionListener(new VarComboActionListener());
_varCombo.setSelectedIndex(0);
_propertyButton.addActionListener(new PropertyActionListener());
_optionButton.addActionListener(new OptionActionListener());
_envPropertyButton.addActionListener(new EnvPropertyActionListener(_envVarField));
_envOptionButton.addActionListener(new EnvOptionActionListener(_envVarField));
}
示例6: addJre
import net.sf.launch4j.config.Jre; //导入依赖的package包/类
private void addJre(Jre jre) {
addWindowsPath(JRE_PATH, jre.getPath());
addTrue(BUNDLED_JRE_64_BIT, jre.getBundledJre64Bit());
addText(JAVA_MIN_VER, jre.getMinVersion());
addText(JAVA_MAX_VER, jre.getMaxVersion());
addText(JDK_PREFERENCE, String.valueOf(jre.getJdkPreferenceIndex()));
String runtimeBits = jre.getRuntimeBits();
int use64Bits = runtimeBits == Jre.RUNTIME_BITS_64 || runtimeBits == Jre.RUNTIME_BITS_64_AND_32
? USE_64_BIT_RUNTIME : 0;
int use32Bits = runtimeBits == Jre.RUNTIME_BITS_32 || runtimeBits == Jre.RUNTIME_BITS_64_AND_32
? USE_32_BIT_RUNTIME : 0;
addInteger(RUNTIME_BITS, use64Bits | use32Bits);
addInteger(INITIAL_HEAP_SIZE, jre.getInitialHeapSize());
addInteger(INITIAL_HEAP_PERCENT, jre.getInitialHeapPercent());
addInteger(MAX_HEAP_SIZE, jre.getMaxHeapSize());
addInteger(MAX_HEAP_PERCENT, jre.getMaxHeapPercent());
StringBuffer options = new StringBuffer();
if (jre.getOptions() != null && !jre.getOptions().isEmpty()) {
addSpace(options);
append(options, jre.getOptions(), " ");
}
addText(JVM_OPTIONS, options.toString());
}
示例7: JreFormImpl
import net.sf.launch4j.config.Jre; //导入依赖的package包/类
public JreFormImpl(Bindings bindings, JFileChooser fc) {
_jdkPreferenceCombo.setModel(new DefaultComboBoxModel(new String[] {
Messages.getString("jdkPreference.jre.only"),
Messages.getString("jdkPreference.prefer.jre"),
Messages.getString("jdkPreference.prefer.jdk"),
Messages.getString("jdkPreference.jdk.only")}));
bindings.add("jre.path", _jrePathField)
.add("jre.minVersion", _jreMinField)
.add("jre.maxVersion", _jreMaxField)
.add("jre.jdkPreferenceIndex", _jdkPreferenceCombo,
Jre.DEFAULT_JDK_PREFERENCE_INDEX)
.add("jre.initialHeapSize", _initialHeapSizeField)
.add("jre.initialHeapPercent", _initialHeapPercentField)
.add("jre.maxHeapSize", _maxHeapSizeField)
.add("jre.maxHeapPercent", _maxHeapPercentField)
.add("jre.options", _jvmOptionsTextArea);
_varCombo.setModel(new DefaultComboBoxModel(new String[] {
"EXEDIR", "EXEFILE", "PWD", "OLDPWD",
"HKEY_CLASSES_ROOT", "HKEY_CURRENT_USER", "HKEY_LOCAL_MACHINE",
"HKEY_USERS", "HKEY_CURRENT_CONFIG" }));
_varCombo.addActionListener(new VarComboActionListener());
_varCombo.setSelectedIndex(0);
_propertyButton.addActionListener(new PropertyActionListener());
_optionButton.addActionListener(new OptionActionListener());
_envPropertyButton.addActionListener(new EnvPropertyActionListener(_envVarField));
_envOptionButton.addActionListener(new EnvOptionActionListener(_envVarField));
}