netbeans-8 相关问题

NetBeans IDE 8.0提供了开箱即用的代码分析器和编辑器,用于处理最新的Java 8技术 - Java SE 8,Java SE Embedded 8和Java ME Embedded 8. IDE还提供了一系列新的增强功能,使用PrimeFaces进一步改进对Maven和Java EE的支持; HTML5的新工具,特别是AngularJS;以及对PHP和C / C ++支持的改进。

NetBeans 8.2 在哪里可以找到它?

我想将 NetBeans 用于 Java 项目,但我找不到它。 Apache.org 上的新更新只有 NetBeans 14...我想没有更多可用的了): 顺便说一句,我在 Linux 上。

回答 3 投票 0

在 Java 中使用 e.printStackTrace()

为什么 NetBeans IDE 在打印 Java 堆栈跟踪时提出标志? 尝试 { //尝试在那里做一些事情 } catch (IOException e) { //处理异常 e.printStackTrace(); } 对于某些...

回答 5 投票 0

出现404的http://www.springframework.org/schema/p位于哪里

我正在使用 spring MVC 在dispatcher-servlet.xml 文件中开发一个netbeans Web 服务器,自动生成的标头如下所示。 <...

回答 1 投票 0

如何在 Big Sur 上安装带有 JDK 8 的 Netbeans 8.2

我在新的 MacBook Pro 13 (M1) 上安装 Netbeans 8.2 时遇到问题。我的 PC 桌面上已安装 Netbeans 8.2,但无法将其安装在 Mac 上。这不是我第一次...

回答 4 投票 0

javaee-endorsed-api-7.0 未找到

早上好,我的问题的原因是一个错误,该错误告诉我未找到整齐的 javaee-endorsed-api-7.0 我正在尝试查找有关如何解决的信息,但我发现信息是 6.0 但它

回答 3 投票 0

生成的servlet错误:-source 1.5不支持默认方法(使用-source 8或更高版本启用默认方法)

我正在使用Netbeans 8.2版本来练习我的spring MVC项目。netbeans提供的默认IDK版本是1.8,我正在使用这个项目来学习表单验证。我正在使用所有的天秤座...

回答 1 投票 0

NetBeans 中文件名后面的 [-/M] 表示什么?

在 NetBeans 中处理 Java 项目时,我发现一个以符号 filename.java [-/M] 结尾的源文件。我的问题是 [-/M] 表示什么?它有语言或IDE的功能吗? 你可以...

回答 1 投票 0

使用私钥/公钥对将 Netbeans 连接到 gitHub 时出现问题

我现在在 Debian 上一直在努力解决这个问题,而我的 Mac 环境似乎可以正常工作,遵循相同的过程。 因此,我按照此处的指南设置了密钥对: https://docs.github.com/en/

回答 1 投票 0

升级到较新的 com.google.android.gms SDK 版本 - Codename One

我正在尝试在 Play 商店中发布 Codename One 应用程序包,但我不能,因为他们给了我这个错误。 “Android 版地图 SDK 的开发者 (com.google.android.gms:play-services-ma...

回答 1 投票 0

在 Netbeans 中禁用快速搜索输入

是否有一种方法/属性/设置可以完全删除 Netbeans 右上角的 QuickSearch 输入(由 Ctrl+I 激活的输入)? 我使用平铺窗口管理器并有 2 个文档组...

回答 1 投票 0

Java Netbeans - 错误未显示

我的 Netbeans 没有在编辑器中显示错误。它在底部栏中显示错误。我不知道如何解决它。 这是截图:

回答 2 投票 0

无法启动jboss.deployment.unit。“war”.POST_MODULE

我按照本教程使用 NetBeans 中数据库的 RESTful Web 服务创建了一个 Maven 项目: http://jaxenter.com/from-database-to-restful-web-service-to-html5-in-10-minutes-105524...

回答 1 投票 0

使用 netbeans 浏览文件系统非常慢

几天以来,使用 Netbeans 导航文件系统非常慢(访问一个文件需要两分钟以上,如果必须导航文件系统,每次都是如此。我有确切的...

回答 8 投票 0

如何清除 NetBeans 8.0 OS X 中的缓存

如何清除 OSX Mavericks 上 NetBeans 8.0 中的缓存? 以前的帖子建议我删除下面的文件 /home/{user}/.netbeans/7.4/var/filehistory 和 /home/{用户}/.netbeans/7.4/v...

回答 7 投票 0

如何更改默认的Netbeans 8.0.2项目目录?

我安装了 XAMPP,然后安装了 Netbeans,并注意到新的 PHP 项目默认位于 XAMPP 的 htdocs 文件夹中。有谁知道如何更改此默认文件夹? 我尝试搜索谷歌,但都是第一个

回答 5 投票 0

org.gradle.tooling.GradleConnectionException:无法获取“BuildEnvironment”类型的模型

我在 Windows 上使用最新版本的 Gradle 运行 netbeans,每当我尝试从 gradle 任务面板中选择一个旧项目时,我都会收到以下错误: 请求项目:D:\ian\libGDX\Mar...

回答 4 投票 0

JSP 挣扎于 JavaScript 模块语法

有点被这个搞糊涂了。 示例:HelloBubble.html 将 * 作为 d3 从“https:...</desc> <question vote="0"> <p>有点困惑。</p> <p>示例:HelloBubble.html</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;script type=&#34;module&#34;&gt; import * as d3 from &#34;https://cdn.jsdelivr.net/npm/d3@7/+esm&#34;; const svg = BubbleChart([[&#34;Hello&#34;, 10], [&#34;World&#34;, 20]]); document.body.appendChild(svg); // Copyright 2021 Observable, Inc. // Released under the ISC license. // https://observablehq.com/@d3/bubble-chart function BubbleChart(data, { name = ([x]) =&gt; x, // alias for label label = name, // given d in data, returns text to display on the bubble value = ([, y]) =&gt; y, // given d in data, returns a quantitative size group, // given d in data, returns a categorical value for color title, // given d in data, returns text to show on hover link, // given a node d, its link (if any) linkTarget = &#34;_blank&#34;, // the target attribute for links, if any width = 640, // outer width, in pixels height = width, // outer height, in pixels padding = 3, // padding between circles margin = 1, // default margins marginTop = margin, // top margin, in pixels marginRight = margin, // right margin, in pixels marginBottom = margin, // bottom margin, in pixels marginLeft = margin, // left margin, in pixels groups, // array of group names (the domain of the color scale) colors = d3.schemeTableau10, // an array of colors (for groups) fill = &#34;#ccc&#34;, // a static fill color, if no group channel is specified fillOpacity = 0.7, // the fill opacity of the bubbles stroke, // a static stroke around the bubbles strokeWidth, // the stroke width around the bubbles, if any strokeOpacity, // the stroke opacity around the bubbles, if any } = {}) { // Compute the values. const D = d3.map(data, d =&gt; d); const V = d3.map(data, value); const G = group == null ? null : d3.map(data, group); const I = d3.range(V.length).filter(i =&gt; V[i] &gt; 0); // Unique the groups. if (G &amp;&amp; groups === undefined) groups = I.map(i =&gt; G[i]); groups = G &amp;&amp; new d3.InternSet(groups); // Construct scales. const color = G &amp;&amp; d3.scaleOrdinal(groups, colors); // Compute labels and titles. const L = label == null ? null : d3.map(data, label); const T = title === undefined ? L : title == null ? null : d3.map(data, title); // Compute layout: create a 1-deep hierarchy, and pack it. const root = d3.pack() .size([width - marginLeft - marginRight, height - marginTop - marginBottom]) .padding(padding) (d3.hierarchy({children: I}) .sum(i =&gt; V[i])); const svg = d3.create(&#34;svg&#34;) .attr(&#34;width&#34;, width) .attr(&#34;height&#34;, height) .attr(&#34;viewBox&#34;, [-marginLeft, -marginTop, width, height]) .attr(&#34;style&#34;, &#34;max-width: 100%; height: auto; height: intrinsic;&#34;) .attr(&#34;fill&#34;, &#34;currentColor&#34;) .attr(&#34;font-size&#34;, 10) .attr(&#34;font-family&#34;, &#34;sans-serif&#34;) .attr(&#34;text-anchor&#34;, &#34;middle&#34;); const leaf = svg.selectAll(&#34;a&#34;) .data(root.leaves()) .join(&#34;a&#34;) .attr(&#34;xlink:href&#34;, link == null ? null : (d, i) =&gt; link(D[d.data], i, data)) .attr(&#34;target&#34;, link == null ? null : linkTarget) .attr(&#34;transform&#34;, d =&gt; `translate(${d.x},${d.y})`); leaf.append(&#34;circle&#34;) .attr(&#34;stroke&#34;, stroke) .attr(&#34;stroke-width&#34;, strokeWidth) .attr(&#34;stroke-opacity&#34;, strokeOpacity) .attr(&#34;fill&#34;, G ? d =&gt; color(G[d.data]) : fill == null ? &#34;none&#34; : fill) .attr(&#34;fill-opacity&#34;, fillOpacity) .attr(&#34;r&#34;, d =&gt; d.r); if (T) leaf.append(&#34;title&#34;) .text(d =&gt; T[d.data]); if (L) { // A unique identifier for clip paths (to avoid conflicts). const uid = `O-${Math.random().toString(16).slice(2)}`; leaf.append(&#34;clipPath&#34;) .attr(&#34;id&#34;, d =&gt; `${uid}-clip-${d.data}`) .append(&#34;circle&#34;) .attr(&#34;r&#34;, d =&gt; d.r); leaf.append(&#34;text&#34;) .attr(&#34;clip-path&#34;, d =&gt; `url(${new URL(`#${uid}-clip-${d.data}`, location)})`) .selectAll(&#34;tspan&#34;) .data(d =&gt; `${L[d.data]}`.split(/\n/g)) .join(&#34;tspan&#34;) .attr(&#34;x&#34;, 0) .attr(&#34;y&#34;, (d, i, D) =&gt; `${i - D.length / 2 + 0.85}em`) .attr(&#34;fill-opacity&#34;, (d, i, D) =&gt; i === D.length - 1 ? 0.7 : null) .text(d =&gt; d); } return Object.assign(svg.node(), {scales: {color}}); } &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>现在我将完全相同的内容放入 JSP 中,但我遇到了问题,特别是这两行;</p> <pre><code>.attr(&#34;clip-path&#34;, d =&gt; `url(${new URL(`#${uid}-clip-${d.data}`, location)})`) </code></pre> <p>和</p> <pre><code>const uid = `O-${Math.random().toString(16).slice(2)}`; </code></pre> <p>应该说这是从 D3 的文档中复制和粘贴 JavaScript 示例(给或拿...)</p> <p>我只是很困惑为什么这在基本的 .html 文件中工作正常,但是当我使用 NetBeans IDE 8.2 时我无法编译 .war 文件时遇到错误(是的,我知道,它很旧......我喜欢它) 与 Java Maven Web 应用程序项目。</p> <p>我不是 JavaScript 大师。但是在我收到错误的这两行中非常明显的是,这看起来与 Java 语法非常相似。感觉好像 JavaScript 对于它的引导来说可能有点太大了并且混淆了 IDE。</p> <p>此外,我也不知道这段代码当时实际上做了什么。我花了几周的时间从 D3 获得一个工作示例,我实际上可以在文档如此糟糕的情况下工作。因此,我假设根本原因很可能是更现代的 JavaScript 语法(和模块)和更旧的 NetBeans 变得有点混乱。</p> <p>我只是不想因为一个库而升级我的本地开发环境(尽管我可能不得不在 StackOverflow 上解决这个问题时测试它以排除这种情况......)</p> <p><strong>更新 1 - 在 Web 浏览器中运行 JSP 时 IDE 中的错误</strong></p> <p>上面两行导致的错误</p> <p>在 IDE 中编译是——从技术上讲不是编译,但在第 1 行第 7 列有一条大红线,上面写着“Encoutered“URL”。期待其中之一;{加载不同类型的左/右括号,大约 20 个他们}";</p> <p>然后当我运行 JSP 时,IDE 控制台中出现此错误(页面无法在 Web 浏览器中加载);</p> <pre><code>***lots of other stuff*** javax.el.MethodNotFoundException: Method not found: class java.lang.String.slice(java.lang.Long) 415: 416: if (L) { 417: // A unique identifier for clip paths (to avoid conflicts). 418: const uid = `O-${Math.random().toString(16).slice(2)}`; 419: 420: leaf.append(&#34;clipPath&#34;) 421: .attr(&#34;id&#34;, d =&gt; `${uid}-clip-${d.data}`) ***lots of other stuff*** Stacktrace:] with root cause javax.el.MethodNotFoundException: Method not found: class java.lang.String.slice(java.lang.Long) </code></pre> <p>然后我删除导致错误的那行并得到一个不同的错误;</p> <pre><code>21-Apr-2023 22:05:24.783 SEVERE [http-nio-8084-exec-295] org.apache.catalina.core.ApplicationDispatcher.invoke Servlet.service() for servlet jsp threw exception javax.el.ELException: The identifier [new] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.apache.el.parser.SKIP_IDENTIFIER_CHECK to true. ***lots of other stuff*** 423: .attr(&#34;r&#34;, d =&gt; d.r); 424: 425: leaf.append(&#34;text&#34;) 426: .attr(&#34;clip-path&#34;, d =&gt; `url(${new URL(`#${uid}-clip-${d.data}`, location)})`) 427: .selectAll(&#34;tspan&#34;) 428: .data(d =&gt; `${L[d.data]}`.split(/\n/g)) 429: .join(&#34;tspan&#34;) Stacktrace:] with root cause javax.el.ELException: The identifier [new] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.apache.el.parser.SKIP_IDENTIFIER_CHECK to true. </code></pre> <p><strong>更新 2 - 在外部 .js 文件中尝试使用 JavaScript</strong> 我们可能在这里有所作为。所以我刚刚尝试的是……按照建议将其拆分。</p> <p>所以我们现在有;</p> <ul> <li>HelloBubble.jsp</li> <li>/JavaScript/HelloBubble.js</li> </ul> <p>JSP;</p> <pre><code>&lt;script src=&#34;/JavaScript/HelloBubble.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;module&#34;&gt; import * as d3 from &#34;https://cdn.jsdelivr.net/npm/d3@7/+esm&#34;; const svg = BubbleChart([[&#34;Hello&#34;, 10], [&#34;World&#34;, 20]]); document.body.appendChild(svg); &lt;/script&gt; </code></pre> <p>JavaScript;</p> <pre><code>Rest of code from earlier, excluding for ease </code></pre> <p>当我这样做时,这是我在加载页面时在 Web 浏览器控制台中遇到的错误 - 似乎这是朝着正确方向迈出的一步;</p> <pre><code>caught TypeError: svg.selectAll(...).data(...).join is not a function at BubbleChart (HelloBubble.js:73:14) at HelloBubble**[.jsp]**:524:25 </code></pre> <p>在上面添加了 <strong>[.jsp]</strong> 位以便于理解。</p> <p>我觉得这两个 JavaScript(JSP 中的数据和 .js 文件中的核心函数)并没有完全相互交谈。</p> <p>为了完整起见,现在这是 HelloBubble.js 文件的完整内容;</p> <pre><code>// Copyright 2021 Observable, Inc. // Released under the ISC license. // https://observablehq.com/@d3/bubble-chart function BubbleChart(data, { name = ([x]) =&gt; x, // alias for label label = name, // given d in data, returns text to display on the bubble value = ([, y]) =&gt; y, // given d in data, returns a quantitative size group, // given d in data, returns a categorical value for color title, // given d in data, returns text to show on hover link, // given a node d, its link (if any) linkTarget = &#34;_blank&#34;, // the target attribute for links, if any width = 640, // outer width, in pixels height = width, // outer height, in pixels padding = 3, // padding between circles margin = 1, // default margins marginTop = margin, // top margin, in pixels marginRight = margin, // right margin, in pixels marginBottom = margin, // bottom margin, in pixels marginLeft = margin, // left margin, in pixels groups, // array of group names (the domain of the color scale) colors = d3.schemeTableau10, // an array of colors (for groups) fill = &#34;#ccc&#34;, // a static fill color, if no group channel is specified fillOpacity = 0.7, // the fill opacity of the bubbles stroke, // a static stroke around the bubbles strokeWidth, // the stroke width around the bubbles, if any strokeOpacity, // the stroke opacity around the bubbles, if any } = {}) { // Compute the values. const D = d3.map(data, d =&gt; d); const V = d3.map(data, value); const G = group == null ? null : d3.map(data, group); const I = d3.range(V.length).filter(i =&gt; V[i] &gt; 0); // Unique the groups. if (G &amp;&amp; groups === undefined) groups = I.map(i =&gt; G[i]); groups = G &amp;&amp; new d3.InternSet(groups); // Construct scales. const color = G &amp;&amp; d3.scaleOrdinal(groups, colors); // Compute labels and titles. const L = label == null ? null : d3.map(data, label); const T = title === undefined ? L : title == null ? null : d3.map(data, title); // Compute layout: create a 1-deep hierarchy, and pack it. const root = d3.pack() .size([width - marginLeft - marginRight, height - marginTop - marginBottom]) .padding(padding) (d3.hierarchy({children: I}) .sum(i =&gt; V[i])); const svg = d3.create(&#34;svg&#34;) .attr(&#34;width&#34;, width) .attr(&#34;height&#34;, height) .attr(&#34;viewBox&#34;, [-marginLeft, -marginTop, width, height]) .attr(&#34;style&#34;, &#34;max-width: 100%; height: auto; height: intrinsic;&#34;) .attr(&#34;fill&#34;, &#34;currentColor&#34;) .attr(&#34;font-size&#34;, 10) .attr(&#34;font-family&#34;, &#34;sans-serif&#34;) .attr(&#34;text-anchor&#34;, &#34;middle&#34;); const leaf = svg.selectAll(&#34;a&#34;) .data(root.leaves()) .join(&#34;a&#34;) .attr(&#34;xlink:href&#34;, link == null ? null : (d, i) =&gt; link(D[d.data], i, data)) .attr(&#34;target&#34;, link == null ? null : linkTarget) .attr(&#34;transform&#34;, d =&gt; `translate(${d.x},${d.y})`); leaf.append(&#34;circle&#34;) .attr(&#34;stroke&#34;, stroke) .attr(&#34;stroke-width&#34;, strokeWidth) .attr(&#34;stroke-opacity&#34;, strokeOpacity) .attr(&#34;fill&#34;, G ? d =&gt; color(G[d.data]) : fill == null ? &#34;none&#34; : fill) .attr(&#34;fill-opacity&#34;, fillOpacity) .attr(&#34;r&#34;, d =&gt; d.r); if (T) leaf.append(&#34;title&#34;) .text(d =&gt; T[d.data]); if (L) { // A unique identifier for clip paths (to avoid conflicts). leaf.append(&#34;clipPath&#34;) .attr(&#34;id&#34;, d =&gt; `${uid}-clip-${d.data}`) .append(&#34;circle&#34;) .attr(&#34;r&#34;, d =&gt; d.r); leaf.append(&#34;text&#34;) .attr(&#34;clip-path&#34;, d =&gt; `url(${new URL(`#${uid}-clip-${d.data}`, location)})`) .selectAll(&#34;tspan&#34;) .data(d =&gt; `${L[d.data]}`.split(/\n/g)) .join(&#34;tspan&#34;) .attr(&#34;x&#34;, 0) .attr(&#34;y&#34;, (d, i, D) =&gt; `${i - D.length / 2 + 0.85}em`) .attr(&#34;fill-opacity&#34;, (d, i, D) =&gt; i === D.length - 1 ? 0.7 : null) .text(d =&gt; d); } return Object.assign(svg.node(), {scales: {color}}); } </code></pre> </question> </body></html>

回答 0 投票 0

作业 4:使用 studentdata.txt 的数组 [关闭]

我不知道该怎么做。请显示输出窗口的例子 使用 studentdata.txt 编写程序 下载文件并将其粘贴到 ...

回答 0 投票 0

Netbeans 8.2 在打开文件或项目时关闭

我正在尝试在 Netbeans 8.2 中打开文件或项目。一旦我转到文件--> 打开文件或文件--> 打开项目,程序就被迫关闭。有恢复的想法吗?提前致谢。

回答 3 投票 0

JInternalFrame问题

我无法在Netbeans中使用JInternalFrameForm。我确实右键点击了我的包并进行了新建,但我没有看到JInternalFrameForm选项。

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.