netbeans-8

Classes of javax.faces.bean are gonna be deprecated - a notification issued by NetBeans IDE 8.0

北城余情 提交于 2019-12-12 13:02:45
问题 I'm using NetBeans IDE 8.0. The IDE issues a notification as shown in the following snap shot. Classes of javax.faces.bean are gonna be deprecated Is there any reason for this notification, may be the classes from the specified package are going to be deprecated shortly? My application uses, Mojarra 2.2.6 PrimeFaces 4.0 PrimeFaces Extension 1.1.0 GlassFish Server 4.0 OmniFaces 1.6.3 and other related components. 回答1: Since JavaEE 7, JSF favors CDI over Managed bean. That's why javax.faces

The NetBeans IDE issues unusual compiler errors on “Clean and Build” or external changes.The IDE becomes unaware of the JPA generated static metamodel

限于喜欢 提交于 2019-12-12 12:40:25
问题 I'm completely tired of using the NetBeans IDE 8.x (currently using 8.0.1) for months - it just looks like a hell (seriously). When some external changes are made to the project (especially a Java EE web application - containing hundredth of Java classes in different packages) or an attempt is made to Clean and Build to project (especially to the enterprise module), Background Scanning of Projects is initiated which unusually propagates compile-time errors in almost all classes in which

How do I stop a running process in Netbeans

拥有回忆 提交于 2019-12-12 11:51:19
问题 In Netbeans, after running a project (by clicking F6 ), how can I stop that running progress as if it were shutdown by the OS (not cancel it)? On the Output windows of Netbeans, there is only a cancel button, which cancels the running process. In my program, I handle the shutdown event ( addShutdownHook ), and cancelling the running progress doesn't program jump to shutdown code handler. Runtime.getRuntime().addShutdownHook(new StopThread()); 来源: https://stackoverflow.com/questions/29247147

With maven, how to modify deploy files just prior to deploy phase?

半城伤御伤魂 提交于 2019-12-12 09:55:12
问题 I have a maven project with one war and several ear projects. Each ear project requires a slightly different war / WEB-INF/web.xml . Each ear 's pom.xml uses com.google.code.maven-replacer-plugin:replacer and org.codehaus.mojo:truezip-maven-plugin to replace tokens in the web.xml , and then place that new web.xml in the final <project>-app.ear/web.war/WEB-INF . This all works great with building and creating the final EAR artifacts. The problem I'm having is that when I run (using Netbeans,

Java 8 .jar file won't run from desktop using Netbeans 8.0.2 to compile WITH EXTERNAL LIBRARY; runs fine if library is included in source

笑着哭i 提交于 2019-12-12 06:19:36
问题 EDIT The jar file now runs from the desktop after clean and build and copying it there BUT to make it happen I had to delete the external library containing Utilities.jar and include the source as another java class. This isn't acceptable but maybe it tells what to do to make the problem below go away. When compiling with external library containing Utilities.jar , I find a lib folder inside the dist folder, and inside it is Utilities.jar . The Readme.txt file in the dist folder says: =======

Data insertion in SQL Server table using jtextfield in netbeans

僤鯓⒐⒋嵵緔 提交于 2019-12-12 04:23:37
问题 I am trying to insert data typed in by user in SQL Server table using below code, the code runs without any error but data is not inserted. try { Class.forName(driver); Connection con=DriverManager.getConnection(url, user, pass); String sql="insert into inventory" +"(Product_Code,Product_Name,Quantity,Cost)" +"value(?,?,?,?)"; PreparedStatement pst=con.prepareStatement(sql); pst.setString(1, product_code.getText()); pst.setString(2, product_name.getText()); pst.setString(3, quantity.getText()

How to configure g++ compiler in netbeans 8.1 correctly for c++11/c++14 support?

ε祈祈猫儿з 提交于 2019-12-12 03:26:53
问题 I'm a novice and work my way through Programming Principles and Practise using c++ by stroustrup ... I'm using Netbeans ide 8.1 and have a problem with the following: #include "std_lib_facilities.h" int main() { vector<int> v = {0,1,2,3,4,5,6}; for(int i = 0; i < v.size(); ++i) cout << v[i] << "\n"; } If I compile, I get the error could not convert {0, 1, 2, 3, 4, 5, 6} from <brace-enclosed initializer list> to Vector<int> . I thought this has maybe something to do with missing compiler

How do I incorporate method overloading to call different parameter types for one method name in Java 8?

不问归期 提交于 2019-12-11 23:14:01
问题 I am trying to change my code to incorporate an int and double parameter for one method name. My end goal is to let the user pick two numbers and if they type one as int and the other as double, I want the code to still be able to account for those different types and print successfully. The code as follows is the basics I have come up with so far and I would like some help on how to change this code to use method overloading. import java.util.Scanner; public class SimpleCalculator { public

Update Center launcher not found for GlassFish Server

微笑、不失礼 提交于 2019-12-11 18:35:43
问题 So I'm going through the Java EE 7 Tutorial, and on this page they tell us how to update the tutorial. The problem is, when I try to follow the steps to try and update the tutorial from the netbeans IDE, I get the following error Update Center launcher not found for GlassFish Server How can I fix this? 回答1: I couldn't update the tutorial either (on Windows 10), despite there being four possible ways to do that using Glassfish 4.1.2: 1 If I select View Domain Update Center from the popup menu

Erratic cursor in NetBeans 8.2 IDE, JDK 1.8. Keyboard lag?

十年热恋 提交于 2019-12-11 17:47:45
问题 I have a student who experiences his cursor jumping around erratically under NetBeans 8.2 and JDK 1.8.x on a MacBook Pro (High Sierra). Other applications work fine, but when he starts typing in NetBeans, he'll get a delay, then the cursor will jump a couple characters, left or right, maybe one of the characters he types will appear, but not all of them. If he pauses for, say, .5 a sec between keypresses, it works fine but that, of course, is untenable. I reinstalled a fresh install and have