netbeans-8

How to see result from mysql query in netbeans

旧城冷巷雨未停 提交于 2019-12-11 13:54:21
问题 When I run the netbeans debugger on my project I can't see the resulting tables from my SQL queries. How can I see those results in the same way as I see other variables? Here is an example query: <sql:query var="query" dataSource="myDB"> SELECT * FROM data </sql:query> <c:set var="queryInfo" value="${query.rows[0]}"/> How can I see the queryInfo/query table using the debygger? When I try to show the result as a html table I don't get any error messages and I only get an empty table. As such

Error on hibernate second level caching (Spring 4, Hibernate 4)

匆匆过客 提交于 2019-12-11 11:33:26
问题 I got an error in my glassfish4 and netbeans. Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.spi.CacheImplementor] org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could

How do I use ServiceLoader in a Netbeans Platform project to add SPIs

末鹿安然 提交于 2019-12-11 09:38:34
问题 I'm trying to add MP3 capabilities to my Netbeans Platform project in Netbeans 8.0. I understand that this can be easily added to the javax.sound.sampled libraries using ServiceLoader and an SPI for the MP3 codecs. So I downloaded MP3 SPI and unzipped it, then in Netbeans I created a Jar wrapper module with the three jars that were in the zip file (one jar was in the root of the zip and two were under lib/ ). Then I made the modules that need the MP3 functionality depend on this wrapper

Netbeans error for MSYS for MINGW

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 08:52:05
问题 I have installed Netbeans as well as MinGW along with the MSYS, still I am having the below error when build and run C:\MinGW\msys\1.0\bin\make.exe -f Makefile CONF=Debug make.exe": /bin/sh: Command not found make.exe": /bin/sh: Command not found make.exe": *** [.validate-impl] Error 127 What could be the reason. 回答1: I had the same problem, I installed the MSYS in the root of C:/ and add the path to path environment in Windows also correct it in the Netbeans . Download the MSYS from: http:/

PHPUnit 8 installed on Windows through PHAR shows No tests are executed

巧了我就是萌 提交于 2019-12-11 08:26:50
问题 I installed PHPUnit through PHAR ( https://phpunit.de/getting-started/phpunit-8.html ) and added phpunit to my system variables in Windows 10. Now I'm trying to run a test case with phpunit on the CLI, but PHPUnit shows No tests executed! . The point is that I have 5 test methods. The class I'm trying to test is this: class Calculator { /** * @assert (0, 0) == 0 * @assert (0, 1) == 1 * @assert (1, 0) == 1 * @assert (1, 1) == 2 * @assert (1, 2) == 4 */ public function add($a, $b) { return $a +

How to correctly create a CMake file for a modular project

匆匆过客 提交于 2019-12-11 04:56:59
问题 Suppose C++ project A as my main program and project B is my module that is shared object (.so). Project A consist source and headers that is common between both projects. Project A load module .so file in runtime. Project A: class-AI.cpp (It contains function funcA) class-AI.h class-AII.cpp class-AII.h class-AIII.cpp class-AIII.h main.cpp Project B: (Shared Object) class-BI.cpp (Its inherit from class-AI) class-BI.h With following CMake files both project build successfully. Project A

How to add JavaCard packages to JavaCard applet?

大城市里の小女人 提交于 2019-12-11 00:47:41
问题 I am trying to build a simple Hello world JavaCard applet.I am using NetBeans IDE. I am following this tutorial. Here is my code: package classicapplet1; import javacard.framework.*; import java.rmi.Remote; import javacard.framework.service.Dispatcher; import javacard.framework.service.RMIService; import javacard.framework.service.Service; public class JavaCardApplet extends Applet { HelloWorld hello; Dispatcher disp; Service svc; public static void install(byte[] bArray, short bOffset, byte

Windows 10 and Netbeans: no write permissions

拜拜、爱过 提交于 2019-12-10 23:21:39
问题 I've installed Netbeans 8.2. on my clean Windows 10 install. Now I want to set up a new project, but when I select my source folder I get the message 'Sources folder is not writable'. Then I decided to just change my HTML code, but when I save I've got the message 'Cannot get exclusive access to: D:\Websites... (probably opened for reading)'. I tried to open Netbeans as administrator, but nothing seems to work. Anybody who had the same problem and could solve it? Thanks! 回答1: If the cause is

Netbeans New project wizard does not show Maven Web Application

我与影子孤独终老i 提交于 2019-12-10 21:09:03
问题 I have read the other questions regarding this! So this is not another duplicate. When using the "new project wizard" in Netbeans 8.0 I choose Maven but then I can't choose Web Application . It's simply not displayed. So I asked google, and it told me to install JAVE EE . And I did but still no Web Application under the Maven Catergory. What am I doing wrong? 回答1: Maybe your Netbeans distribution does not contain JavaEE plugin. You can install it via Tools>Plugins>Available Plugins and search

Using Spring Boot 1.3, spring-boot-devtools and Thymeleaf templates won't do live reload when changed in Netbeans

你说的曾经没有我的故事 提交于 2019-12-10 19:12:38
问题 Spring Boot 1.3 introduced spring-boot-devtools to provide similar functionality as Spring Reloaded to reload modified classes and to update Thymeleaf templates without having to re-run your application. I have been using Spring Boot 1.2.7 (with Spring Reloaded) before and I was able to modify my templates on the fly without having to restart my Spring Boot application. Same application is now neither reloading the Thymeleaf templates nor reloading/restarting the application when I modify and