- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我们的 Eclipse e4 应用程序需要很长时间才能启动。
我已经在 VisualVM
中对其进行了分析,该应用程序的加载时间大约为 30 秒。
主要原因是使用 LoggerFactory.getLogger(Example.class) 创建一个新的记录器并初始化 spring 上下文(扫描类)。
创建记录器大约需要 10 秒,这是非常长的。我想知道这是否与延迟加载 bundle 有关,在加载之前它会被阻塞。
我添加了一个 .options
文件来显示加载包所需的时间。
8ms to load the activator of org.eclipse.osgi_3.14.0.v20190517-1309 [0]
38ms to load and start the activator of org.eclipse.osgi_3.14.0.v20190517-1309 [0]
Time to load bundles: 23
4ms to load the activator of org.eclipse.equinox.simpleconfigurator_1.3.200.v20181101-1115 [1]
369ms to load and start the activator of org.eclipse.equinox.simpleconfigurator_1.3.200.v20181101-1115 [1]
368ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.simpleconfigurator"; type="osgi.bundle"; version:Version="1.3.200.v20181101-1115"; singleton:="true" [id=1]
369ms for total start time of osgi.identity; osgi.identity="org.eclipse.osgi"; type="osgi.bundle"; version:Version="3.14.0.v20190517-1309"; singleton:="true" [id=0]
2ms to load the activator of org.apache.felix.scr_2.1.14.v20190123-1619 [26]
12ms to load and start the activator of org.apache.felix.scr_2.1.14.v20190123-1619 [26]
12ms for total start time of osgi.identity; osgi.identity="org.apache.felix.scr"; type="osgi.bundle"; version:Version="2.1.14.v20190123-1619" [id=26]
1ms to load the activator of org.eclipse.equinox.common_3.10.400.v20190516-1504 [76]
6ms to load and start the activator of org.eclipse.equinox.common_3.10.400.v20190516-1504 [76]
6ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.common"; type="osgi.bundle"; version:Version="3.10.400.v20190516-1504"; singleton:="true" [id=76]
0ms to load the activator of org.eclipse.equinox.event_1.5.100.v20190528-1257 [78]
5ms to load and start the activator of org.eclipse.equinox.event_1.5.100.v20190528-1257 [78]
23ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.event"; type="osgi.bundle"; version:Version="1.5.100.v20190528-1257" [id=78]
0ms for total start time of osgi.identity; osgi.identity="com.ibm.icu"; type="osgi.bundle"; version:Version="64.2.0.v20190507-1337" [id=6]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.ant.core"; type="osgi.bundle"; version:Version="3.5.400.v20190510-0606"; singleton:="true" [id=31]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.compare.core"; type="osgi.bundle"; version:Version="3.6.500.v20190519-2354" [id=32]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.contenttype"; type="osgi.bundle"; version:Version="3.7.300.v20190215-2048"; singleton:="true" [id=34]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.databinding"; type="osgi.bundle"; version:Version="1.7.400.v20190513-2118" [id=35]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.databinding.property"; type="osgi.bundle"; version:Version="1.7.0.v20190510-1100" [id=38]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.expressions"; type="osgi.bundle"; version:Version="3.6.400.v20190518-1240"; singleton:="true" [id=39]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.filesystem"; type="osgi.bundle"; version:Version="1.7.400.v20190518-1151"; singleton:="true" [id=40]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.jobs"; type="osgi.bundle"; version:Version="3.10.400.v20190506-1457"; singleton:="true" [id=42]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.resources"; type="osgi.bundle"; version:Version="3.13.400.v20190505-1655"; singleton:="true" [id=43]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.variables"; type="osgi.bundle"; version:Version="3.4.500.v20190510-0549"; singleton:="true" [id=46]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.draw2d"; type="osgi.bundle"; version:Version="3.10.100.201606061308" [id=47]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.contexts"; type="osgi.bundle"; version:Version="1.8.100.v20190518-1217" [id=49]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.di"; type="osgi.bundle"; version:Version="1.7.200.v20190506-1457" [id=50]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.di.extensions"; type="osgi.bundle"; version:Version="0.15.300.v20190213-1308"; singleton:="true" [id=52]
0ms to load the activator of org.eclipse.e4.core.di_1.7.200.v20190506-1457 [50]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.di"; type="osgi.bundle"; version:Version="1.7.200.v20190506-1457" [id=50]
0ms to load the activator of org.eclipse.e4.core.di.extensions.supplier_0.15.300.v20190506-1457 [53]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.di.extensions.supplier"; type="osgi.bundle"; version:Version="0.15.300.v20190506-1457" [id=53]
19ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.di.extensions.supplier"; type="osgi.bundle"; version:Version="0.15.300.v20190506-1457" [id=53]
2ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.services"; type="osgi.bundle"; version:Version="2.1.400.v20181215-2145"; singleton:="true" [id=54]
1ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.tools.services"; type="osgi.bundle"; version:Version="4.8.200.v20181022-1512" [id=56]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.bindings"; type="osgi.bundle"; version:Version="0.12.500.v20190510-1100"; singleton:="true" [id=57]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.css.swt"; type="osgi.bundle"; version:Version="0.13.500.v20190513-2118"; singleton:="true" [id=59]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.css.swt.theme"; type="osgi.bundle"; version:Version="0.12.300.v20190510-1100"; singleton:="true" [id=60]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.di"; type="osgi.bundle"; version:Version="1.2.600.v20190510-1100" [id=61]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.model.workbench"; type="osgi.bundle"; version:Version="2.1.400.v20190513-2118"; singleton:="true" [id=62]
1ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.services"; type="osgi.bundle"; version:Version="1.3.500.v20190513-2118"; singleton:="true" [id=63]
2ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench"; type="osgi.bundle"; version:Version="1.10.0.v20190529-1505"; singleton:="true" [id=65]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench.addons.swt"; type="osgi.bundle"; version:Version="1.3.500.v20190513-2118"; singleton:="true" [id=66]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench.renderers.swt"; type="osgi.bundle"; version:Version="0.14.700.v20190517-1525"; singleton:="true" [id=67]
1ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench.swt"; type="osgi.bundle"; version:Version="0.14.600.v20190513-2118"; singleton:="true" [id=68]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.emf.common"; type="osgi.bundle"; version:Version="2.16.0.v20190528-0845"; singleton:="true" [id=70]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.emf.ecore"; type="osgi.bundle"; version:Version="2.18.0.v20190528-0845"; singleton:="true" [id=71]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.emf.ecore.change"; type="osgi.bundle"; version:Version="2.14.0.v20190528-0725"; singleton:="true" [id=72]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.emf.ecore.xmi"; type="osgi.bundle"; version:Version="2.16.0.v20190528-0725"; singleton:="true" [id=73]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.app"; type="osgi.bundle"; version:Version="1.4.200.v20190516-1504"; singleton:="true" [id=74]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.bidi"; type="osgi.bundle"; version:Version="1.2.0.v20190514-1046"; singleton:="true" [id=75]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.preferences"; type="osgi.bundle"; version:Version="3.7.400.v20190516-1504"; singleton:="true" [id=81]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.registry"; type="osgi.bundle"; version:Version="3.8.400.v20190516-1504"; singleton:="true" [id=83]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.util"; type="osgi.bundle"; version:Version="1.1.200.v20181008-1820" [id=86]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.help"; type="osgi.bundle"; version:Version="3.8.400.v20190423-0921"; singleton:="true" [id=89]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.team.core"; type="osgi.bundle"; version:Version="3.8.600.v20190519-2354"; singleton:="true" [id=103]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.ui"; type="osgi.bundle"; version:Version="3.113.0.v20190513-2118"; singleton:="true" [id=105]
1ms for total start time of osgi.identity; osgi.identity="org.eclipse.ui.workbench"; type="osgi.bundle"; version:Version="3.115.0.v20190521-1602"; singleton:="true" [id=106]
1ms to load the activator of org.eclipse.equinox.registry_3.8.400.v20190516-1504 [83]
154ms to load and start the activator of org.eclipse.equinox.registry_3.8.400.v20190516-1504 [83]
154ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.registry"; type="osgi.bundle"; version:Version="3.8.400.v20190516-1504"; singleton:="true" [id=83]
0ms to load the activator of org.eclipse.equinox.preferences_3.7.400.v20190516-1504 [81]
19ms to load and start the activator of org.eclipse.equinox.preferences_3.7.400.v20190516-1504 [81]
19ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.preferences"; type="osgi.bundle"; version:Version="3.7.400.v20190516-1504"; singleton:="true" [id=81]
175ms to load the activator of org.eclipse.core.runtime_3.15.300.v20190508-0543 [45]
0ms to load the activator of org.eclipse.core.contenttype_3.7.300.v20190215-2048 [34]
3ms to load and start the activator of org.eclipse.core.contenttype_3.7.300.v20190215-2048 [34]
3ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.contenttype"; type="osgi.bundle"; version:Version="3.7.300.v20190215-2048"; singleton:="true" [id=34]
0ms to load the activator of org.eclipse.core.jobs_3.10.400.v20190506-1457 [42]
20ms to load and start the activator of org.eclipse.core.jobs_3.10.400.v20190506-1457 [42]
21ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.jobs"; type="osgi.bundle"; version:Version="3.10.400.v20190506-1457"; singleton:="true" [id=42]
0ms to load the activator of org.eclipse.equinox.app_1.4.200.v20190516-1504 [74]
10ms to load and start the activator of org.eclipse.equinox.app_1.4.200.v20190516-1504 [74]
10ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.app"; type="osgi.bundle"; version:Version="1.4.200.v20190516-1504"; singleton:="true" [id=74]
218ms to load and start the activator of org.eclipse.core.runtime_3.15.300.v20190508-0543 [45]
218ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.runtime"; type="osgi.bundle"; version:Version="3.15.300.v20190508-0543"; singleton:="true" [id=45]
1ms to load the activator of org.eclipse.equinox.console_1.3.300.v20190516-1504 [77]
1ms to load the activator of org.apache.felix.gogo.runtime_1.1.0.v20180713-1646 [24]
9ms to load and start the activator of org.apache.felix.gogo.runtime_1.1.0.v20180713-1646 [24]
10ms for total start time of osgi.identity; osgi.identity="org.apache.felix.gogo.runtime"; type="osgi.bundle"; version:Version="1.1.0.v20180713-1646" [id=24]
1ms to load the activator of org.apache.felix.gogo.shell_1.1.0.v20180713-1646 [25]
8ms to load and start the activator of org.apache.felix.gogo.shell_1.1.0.v20180713-1646 [25]
8ms for total start time of osgi.identity; osgi.identity="org.apache.felix.gogo.shell"; type="osgi.bundle"; version:Version="1.1.0.v20180713-1646" [id=25]
0ms to load the activator of org.apache.felix.gogo.command_1.0.2.v20170914-1324 [23]
4ms to load and start the activator of org.apache.felix.gogo.command_1.0.2.v20170914-1324 [23]
4ms for total start time of osgi.identity; osgi.identity="org.apache.felix.gogo.command"; type="osgi.bundle"; version:Version="1.0.2.v20170914-1324" [id=23]
34ms to load and start the activator of org.eclipse.equinox.console_1.3.300.v20190516-1504 [77]
33ms for total start time of osgi.identity; osgi.identity="org.eclipse.equinox.console"; type="osgi.bundle"; version:Version="1.3.300.v20190516-1504" [id=77]
Starting application: 1090
1ms to load the activator of org.eclipse.e4.ui.workbench.swt_0.14.600.v20190513-2118 [68]
2ms to load and start the activator of org.eclipse.e4.ui.workbench.swt_0.14.600.v20190513-2118 [68]
2ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench.swt"; type="osgi.bundle"; version:Version="0.14.600.v20190513-2118"; singleton:="true" [id=68]
0ms to load the activator of org.eclipse.e4.ui.model.workbench_2.1.400.v20190513-2118 [62]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.model.workbench"; type="osgi.bundle"; version:Version="2.1.400.v20190513-2118"; singleton:="true" [id=62]
0ms to load the activator of org.eclipse.e4.core.services_2.1.400.v20181215-2145 [54]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.services"; type="osgi.bundle"; version:Version="2.1.400.v20181215-2145"; singleton:="true" [id=54]
1ms to load the activator of org.eclipse.e4.ui.workbench_1.10.0.v20190529-1505 [65]
3ms to load and start the activator of org.eclipse.e4.ui.workbench_1.10.0.v20190529-1505 [65]
2ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench"; type="osgi.bundle"; version:Version="1.10.0.v20190529-1505"; singleton:="true" [id=65]
0ms to load the activator of org.eclipse.e4.core.contexts_1.8.100.v20190518-1217 [49]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.contexts"; type="osgi.bundle"; version:Version="1.8.100.v20190518-1217" [id=49]
0ms to load the activator of org.eclipse.e4.ui.services_1.3.500.v20190513-2118 [63]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.services"; type="osgi.bundle"; version:Version="1.3.500.v20190513-2118"; singleton:="true" [id=63]
1ms to load the activator of org.eclipse.e4.tools.services_4.8.200.v20181022-1512 [56]
1ms to load and start the activator of org.eclipse.e4.tools.services_4.8.200.v20181022-1512 [56]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.tools.services"; type="osgi.bundle"; version:Version="4.8.200.v20181022-1512" [id=56]
0ms to load the activator of org.eclipse.e4.ui.di_1.2.600.v20190510-1100 [61]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.di"; type="osgi.bundle"; version:Version="1.2.600.v20190510-1100" [id=61]
0ms to load the activator of com.ibm.icu_64.2.0.v20190507-1337 [6]
0ms for total start time of osgi.identity; osgi.identity="com.ibm.icu"; type="osgi.bundle"; version:Version="64.2.0.v20190507-1337" [id=6]
57ms to load the activator of org.eclipse.emf.common_2.16.0.v20190528-0845 [70]
57ms to load and start the activator of org.eclipse.emf.common_2.16.0.v20190528-0845 [70]
57ms for total start time of osgi.identity; osgi.identity="org.eclipse.emf.common"; type="osgi.bundle"; version:Version="2.16.0.v20190528-0845"; singleton:="true" [id=70]
2ms to load the activator of org.eclipse.emf.ecore_2.18.0.v20190528-0845 [71]
20ms to load and start the activator of org.eclipse.emf.ecore_2.18.0.v20190528-0845 [71]
19ms for total start time of osgi.identity; osgi.identity="org.eclipse.emf.ecore"; type="osgi.bundle"; version:Version="2.18.0.v20190528-0845"; singleton:="true" [id=71]
1ms to load the activator of org.eclipse.emf.ecore.xmi_2.16.0.v20190528-0725 [73]
1ms to load and start the activator of org.eclipse.emf.ecore.xmi_2.16.0.v20190528-0725 [73]
1ms for total start time of osgi.identity; osgi.identity="org.eclipse.emf.ecore.xmi"; type="osgi.bundle"; version:Version="2.16.0.v20190528-0725"; singleton:="true" [id=73]
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [bundleresource://3.fwk1318822808:154/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [bundleresource://3.fwk1318822808:331/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
1ms to load the activator of org.eclipse.core.resources_3.13.400.v20190505-1655 [43]
105ms to load and start the activator of org.eclipse.core.resources_3.13.400.v20190505-1655 [43]
104ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.resources"; type="osgi.bundle"; version:Version="3.13.400.v20190505-1655"; singleton:="true" [id=43]
1ms to load the activator of org.eclipse.core.filesystem_1.7.400.v20190518-1151 [40]
1ms to load and start the activator of org.eclipse.core.filesystem_1.7.400.v20190518-1151 [40]
1ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.filesystem"; type="osgi.bundle"; version:Version="1.7.400.v20190518-1151"; singleton:="true" [id=40]
0ms to load the activator of org.eclipse.e4.ui.workbench.addons.swt_1.3.500.v20190513-2118 [66]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench.addons.swt"; type="osgi.bundle"; version:Version="1.3.500.v20190513-2118"; singleton:="true" [id=66]
5ms to load the activator of org.eclipse.ui.workbench_3.115.0.v20190521-1602 [106]
1ms to load the activator of org.eclipse.ui_3.113.0.v20190513-2118 [105]
2ms to load and start the activator of org.eclipse.ui_3.113.0.v20190513-2118 [105]
2ms for total start time of osgi.identity; osgi.identity="org.eclipse.ui"; type="osgi.bundle"; version:Version="3.113.0.v20190513-2118"; singleton:="true" [id=105]
21ms to load and start the activator of org.eclipse.ui.workbench_3.115.0.v20190521-1602 [106]
20ms for total start time of osgi.identity; osgi.identity="org.eclipse.ui.workbench"; type="osgi.bundle"; version:Version="3.115.0.v20190521-1602"; singleton:="true" [id=106]
1ms to load the activator of org.eclipse.core.expressions_3.6.400.v20190518-1240 [39]
1ms to load and start the activator of org.eclipse.core.expressions_3.6.400.v20190518-1240 [39]
1ms for total start time of osgi.identity; osgi.identity="org.eclipse.core.expressions"; type="osgi.bundle"; version:Version="3.6.400.v20190518-1240"; singleton:="true" [id=39]
0ms to load the activator of org.eclipse.e4.ui.workbench.renderers.swt_0.14.700.v20190517-1525 [67]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.workbench.renderers.swt"; type="osgi.bundle"; version:Version="0.14.700.v20190517-1525"; singleton:="true" [id=67]
0ms to load the activator of org.eclipse.e4.ui.bindings_0.12.500.v20190510-1100 [57]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.bindings"; type="osgi.bundle"; version:Version="0.12.500.v20190510-1100"; singleton:="true" [id=57]
0ms to load the activator of org.eclipse.e4.core.di.extensions_0.15.300.v20190213-1308 [52]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.core.di.extensions"; type="osgi.bundle"; version:Version="0.15.300.v20190213-1308"; singleton:="true" [id=52]
0ms to load the activator of org.eclipse.e4.ui.css.swt.theme_0.12.300.v20190510-1100 [60]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.css.swt.theme"; type="osgi.bundle"; version:Version="0.12.300.v20190510-1100"; singleton:="true" [id=60]
0ms to load the activator of org.eclipse.e4.ui.css.swt_0.13.500.v20190513-2118 [59]
0ms to load and start the activator of org.eclipse.e4.ui.css.swt_0.13.500.v20190513-2118 [59]
0ms for total start time of osgi.identity; osgi.identity="org.eclipse.e4.ui.css.swt"; type="osgi.bundle"; version:Version="0.13.500.v20190513-2118"; singleton:="true" [id=59]
Application started in : 38177ms
这可能是什么原因造成的?
配置
最佳答案
第一次正常需要一分钟,之后应用程序应该在几秒钟内启动。
请让我看看您的插件以及插件的配置以供审核。
关于java - 启动缓慢 - Eclipse e4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57187823/
我正在编写一个具有以下签名的 Java 方法。 void Logger(Method method, Object[] args); 如果一个方法(例如 ABC() )调用此方法 Logger,它应该
我是 Java 新手。 我的问题是我的 Java 程序找不到我试图用作的图像文件一个 JButton。 (目前这段代码什么也没做,因为我只是得到了想要的外观第一的)。这是我的主课 代码: packag
好的,今天我在接受采访,我已经编写 Java 代码多年了。采访中说“Java 垃圾收集是一个棘手的问题,我有几个 friend 一直在努力弄清楚。你在这方面做得怎么样?”。她是想骗我吗?还是我的一生都
我的 friend 给了我一个谜语让我解开。它是这样的: There are 100 people. Each one of them, in his turn, does the following
如果我将使用 Java 5 代码的应用程序编译成字节码,生成的 .class 文件是否能够在 Java 1.4 下运行? 如果后者可以工作并且我正在尝试在我的 Java 1.4 应用程序中使用 Jav
有关于why Java doesn't support unsigned types的问题以及一些关于处理无符号类型的问题。我做了一些搜索,似乎 Scala 也不支持无符号数据类型。限制是Java和S
我只是想知道在一个 java 版本中生成的字节码是否可以在其他 java 版本上运行 最佳答案 通常,字节码无需修改即可在 较新 版本的 Java 上运行。它不会在旧版本上运行,除非您使用特殊参数 (
我有一个关于在命令提示符下执行 java 程序的基本问题。 在某些机器上我们需要指定 -cp 。 (类路径)同时执行java程序 (test为java文件名与.class文件存在于同一目录下) jav
我已经阅读 StackOverflow 有一段时间了,现在我才鼓起勇气提出问题。我今年 20 岁,目前在我的家乡(罗马尼亚克卢日-纳波卡)就读 IT 大学。足以介绍:D。 基本上,我有一家提供簿记应用
我有 public JSONObject parseXML(String xml) { JSONObject jsonObject = XML.toJSONObject(xml); r
我已经在 Java 中实现了带有动态类型的简单解释语言。不幸的是我遇到了以下问题。测试时如下代码: def main() { def ks = Map[[1, 2]].keySet()
一直提示输入 1 到 10 的数字 - 结果应将 st、rd、th 和 nd 添加到数字中。编写一个程序,提示用户输入 1 到 10 之间的任意整数,然后以序数形式显示该整数并附加后缀。 public
我有这个 DownloadFile.java 并按预期下载该文件: import java.io.*; import java.net.URL; public class DownloadFile {
我想在 GUI 上添加延迟。我放置了 2 个 for 循环,然后重新绘制了一个标签,但这 2 个 for 循环一个接一个地执行,并且标签被重新绘制到最后一个。 我能做什么? for(int i=0;
我正在对对象 Student 的列表项进行一些测试,但是我更喜欢在 java 类对象中创建硬编码列表,然后从那里提取数据,而不是连接到数据库并在结果集中选择记录。然而,自从我这样做以来已经很长时间了,
我知道对象创建分为三个部分: 声明 实例化 初始化 classA{} classB extends classA{} classA obj = new classB(1,1); 实例化 它必须使用
我有兴趣使用 GPRS 构建车辆跟踪系统。但是,我有一些问题要问以前做过此操作的人: GPRS 是最好的技术吗?人们意识到任何问题吗? 我计划使用 Java/Java EE - 有更好的技术吗? 如果
我可以通过递归方法反转数组,例如:数组={1,2,3,4,5} 数组结果={5,4,3,2,1}但我的结果是相同的数组,我不知道为什么,请帮助我。 public class Recursion { p
有这样的标准方式吗? 包括 Java源代码-测试代码- Ant 或 Maven联合单元持续集成(可能是巡航控制)ClearCase 版本控制工具部署到应用服务器 最后我希望有一个自动构建和集成环境。
我什至不知道这是否可能,我非常怀疑它是否可能,但如果可以,您能告诉我怎么做吗?我只是想知道如何从打印机打印一些文本。 有什么想法吗? 最佳答案 这里有更简单的事情。 import javax.swin
我是一名优秀的程序员,十分优秀!