FAQ Database Discussion Community


UnsatisfiedLinkError while executing new Mat()

java,opencv,netbeans
i am currently trying to code a little program to take picture of newly students and save them by their names etc to ease the inscriptions things etc. So here is my problem, i found a great tutorial to help me using a webcam: http://www.codeproject.com/Tips/717283/How-to-use-OpenCV-with-Java-under-NetBeans-IDE I can run this project...

how to identify a button in a group of loop generated buttons?

java,arrays,swing,netbeans,jbutton
I have a group of loop generated buttons made with this code this.panelCuerpo.setLayout(new GridLayout(4,5)); for(int i = 1; i<=20; i++){ final JToggleButton b = new JToggleButton(new ImageIcon("/images/available.png")); panelCuerpo.add(b); b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/available1.png"))); b.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent evt){ if(b.isSelected()){ b.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/busy1.png")));...

Openshift port-forwarding [on hold]

java,git,netbeans,ssh,openshift
After many hours and many attempts, remains now your help. Im trying to do port-forwarding to access my DB in Openshift on Neatbeans. I've already done lots of tutorials, upgrade and downgrade versions of net-ssh, uninstall rhc and so on. I have read a lot git solutions (ssh_options[]...) and doesn't...

NetBeans getting resource inside JAR file?

java,netbeans,getresource
I have been trying to include some images and sounds in my Netbeans Java project and I have searched all over google looking for answers all of which I have tried and implemented but some play the audio file correctly when running it inside Netbeans but not when its actually...

Focus on the button using tab key and press enter

java,swing,netbeans,jbutton,actionlistener
I have a simple jFrame with a submit button and a cancel button. Currently, everything works perfectly. User perform action on mouse click. Now I want to press 'tab' first to focus the button then it should fire whenever someone presses the enter key. It should work for both keys....

Java Program using Apache POI giving me weird Exceptions

java,apache,netbeans,apache-poi
I am having some serious difficulty getting my project off the ground. I have the following code: FileInputStream file = new FileInputStream(new File("src/retestchecker/test_sheet.xlsx")); //Get the workbook instance for XLS file XSSFWorkbook workbook = new XSSFWorkbook(file); //Get first sheet from the workbook XSSFSheet sheet = workbook.getSheetAt(0); Row row = sheet.getRow(0); Cell...

EJB injection not working in different classes

java-ee,netbeans,jersey,ejb,jax-rs
I have tried to inject an Entity EJB(Facade and entity from MySQL database) but it doesn't work depending on the class it is in. I use a Rest webService and it work in the webService class. I use a multi layered architecture and I don't want my EJB to be...

MySQL String not executing in Java [duplicate]

java,mysql,string,netbeans
This question already has an answer here: How to execute multiple SQL statements from java 3 answers I am trying and failing to get a String SQL command to execute on an existing mySQL database using a simple test program in Netbeans 8.0.2. Strange thing is the same SQL...

How to generate random number in NetBeans? [closed]

java,netbeans,random,int,generated
I'm trying to generate a random between 1 and 100 in NetBeans, but what I used before in Eclipse isn't working. I can't seem to use Random, as it is underined in red: "cannot find symbol." Please show me how. Random x = new Random(); int n = x.nextInt(100);//random number...

Converting a text entry(char) to an integer in java to be used in a java database

java,sql,database,netbeans,integer
I'm making a database system for a school project(Matric PAT) where I have to make a database in java (for this I'm using netbeans) and then I have to create a java program that connects to the data and is able to perform specific tasks like change data in the...

Via Windows command line, how can we compile a Netbeans C/C++ application?

c++,netbeans,command-line,ant,compilation
Let's take this simple C/C++ application Netbeans project folder. In Netbeans IDE, we just hit build button on the toolbar to build the application. I want to do that automatically via Windows command line, how can I do that? I did google, and found some related posts though not very...

does exist a Dart plugin for Netbeans?

netbeans,dart,netbeans-8
The only information about creating a dart plugin from netbeans is this one: https://blogs.oracle.com/geertjan/entry/dart_and_netbeans_ide_7 Was this plugin ever created? where is the Soruce Code? Is there any other plan to integrate Dart to Netbeans?...

Subtracting the total quantity of table 1 to table 2

sql,netbeans,derby,javadb
Guys i have this problem on subtracting the the two tables (Deliveries and Returns) by its TOTAL_QUANTITY grouped by their CONTAINER_TYPE and CUSTOMER_NAME, this sample query returns the column Customer_Balance of 0 if I subtracted for example 5 - 0, but if i subtracted 5 -1 it returns 4. select...

Git ignore is not ignoring the netbeans private files

git,netbeans,gitignore
When ever I do git status, the netbeans private.xml is making trouble, I tried adding that in git ignore several ways. but the gitignore simply does not ignore it. git status On branch master Your branch is up-to-date with 'origin/master'. Changes not staged for commit: (use "git add <file>..." to...

Get the exact jSpinner Value

java,netbeans,time,jspinner
Can somebody tell me how can I get the exact value from jSpinner? Here is how my jSpinner's appear when user will select time: however, when I pass the jSpinner value to textfield it appears like this: Here is my code: timeout1 = spnrTOH1.getValue()+":"+spnrTOM1.getValue()+" "+spnrTOA1.getValue(); Here is my jSpinner model:...

Statically link libcurl to project (Still requires DLL)

c++,netbeans,dll,libcurl,libcrypto
I'm using Netbeans IDE with C/C++ plugin. My code compiles without any problem. CURL_STATICLIB is defined (-DCURL_STATICLIB also tried #define CURL_STATICLIB). This is all my linked libs. I'm trying to avoid packaging the exe with multiple DLLs, so I'm trying to statically link it. Even though after link I still...

How to access a LinkedList inside of main from my Jframe button call

java,swing,user-interface,netbeans,jframe
:::::: UPDATE ::::: I tried updating my JFrame to take a LinkedList as an argument, it looks like... public userLogin(LinkedList<dataUser> ll) { initComponents(); } My main is now calling it by ... userLogin frame = new userLogin(userLL); frame.setVisible(true); Still not able to use the LinkedList userLL inside of my JFrame...

Error generated in netbeans generated code

java,swing,netbeans
After looking everywhere, NOBODY has this same problem. I need to edit netbeans generated code because when I deleted a few Swing Components in design view a bug caused the variable declarations to be deleted but in initComponents() everywhere that those components were used is still there throwing an error...

Return statement is inconsistent with previous usage - JQuery

javascript,jquery,netbeans
What does this error means? Return statement is inconsistent with previous usage Netbeans show this error when i coded the below (snippet): $.each(ToValidate, function (indexOfQuestions, questionNumber) { var radioValue = "ja"; if (radioValue === "NEI" && questionNumber === "1.1") { return false; } else if (radioValue === "JA" && questionNumber...

Glassfish service throws an error

java-ee,netbeans,service,glassfish
I have successfully installed a Glassfish service that runs on my server. When I try to access the application, I get an HTTP 500 error : org.apache.jasper.JasperException: PWC6345: There is an error in invoking javac. A full JDK (not just JRE) is required When I launch NetBeans and Glassfish, it...

Log in web application [closed]

java,html,servlets,netbeans
I'm new to Java and Java EE, so please don't hate much. I want to create an application which consists of a html document with a login form which transfers control to a servlet for the autentication of a user. I will create a database in netbeans following this tutorial...

How to change the working directory of a bundled Java program

java,netbeans,bundle,executable
I wrote a program in Java and packaged it up as a Mac App using Netbeans. It has the typical Java, MacOS, Resources, and Plugins folders and works just fine. The problem is that my program has a save feature which, whenever used, saves files to the computer's User directory...

.jar from netbeans will not open in console

java,netbeans,jar,console
Built a simple java program in netbeans, build/compiled it and it generated a .jar for me in the project directory. The following is my src code: import java.util.Scanner; public class Welcome { public static void main(String[] args){ System.out.println("Welcome to Java"); Scanner input = new Scanner(System.in); } } I want to...

How to access a private method

java,netbeans
private void generateActionPerformed(java.awt.event.ActionEvent evt) { String number = getRandom(4); int first,second,third,forth; first = Integer.parseInt(number.substring(0,1)); second = Integer.parseInt(number.substring(1,2)); third = Integer.parseInt(number.substring(2,3)); forth = Integer.parseInt(number.substring(3)); } private void reavealActionPerformed(java.awt.event.ActionEvent evt) { } so, i have for integer that i want to use it in the bottom method. Is there a way to...

Mysql Java Derby Netbeans: 'deleteRow' not allowed because the ResultSet is not an updatable ResultSet

java,mysql,netbeans,jdbc,derby
I'm trying delete a row but it does not allow me, it says "'deleteRow' not allowed because the ResultSet is not an updatable ResultSet". Here is my code: public void addUserName() throws SQLException { rs = st.executeQuery("select NAME, prize from usernames"); try { while (rs.next()) { String attribute2 = rs.getString("name");...

Splash screen not display when execute by Jar File but it works when execute from Netbeans IDE

java,netbeans,jar
Set application Splash Screen from Project properties -> Run Option SplashScreen which draw by StartApp Class public class StartApp { public static void main(String[] args) { new Thread(new Runnable() { public void run() { splashInit(); // initialize splash overlay drawing parameters appInit(); // simulate what an application would do before...

NetBeans - button select database else if

java,mysql,netbeans,xampp
I want to call id and password in database use button in netbeans, so I did like this private void loginActionPerformed(java.awt.event.ActionEvent evt) { try { String sql="select *from login where ID = '"+id.getText()+"'and Password = '"+String.valueOf(pass.getPassword())+"'and Status ='"+pilih1.getSelectedItem().toString()+"'"; ResultSet rss1=st.executeQuery(sql); if ((rss1.next())&&(pilih1.getSelectedItem().toString() == "Pasien")){ pasien1 = new pasien1(); pasien1.setVisible(true); this.dispose();...

Store Strings longer than 255 in a database in Netbeans

java,mysql,netbeans
I have a problem with my database. It's a database that you can create with Netbeans. I want to insert a string that is longer than 255 characters. I have seen that you can say varchar(512). But I generate my tables with the @Entity-Annotation and attributes in my class. How...

Error on last curly braces [closed]

java,netbeans
This is my code : import java.sql.*; public class NetConnection { private Connection con; private Statement st; private ResultSet rs; public NetConnection(){ try{ Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test1","java","java"); st = (Statement) con.createStatement(); } catch(Exception ex){ System.out.println("Error: "+ex); } } public void getData(){ try{ String query = "SELECT * FROM test_table"; rs...

Netbeans: Sass “Compile Sass Files on Save” Checkbox missing

netbeans,sass
I run Netbeans 8.0.2 on Windows. The checkbox "Compile Sass Files On Save" was there before I installed Sass. I installed Sass, configured the path in Netbeans. C:\Ruby193\bin\sass.bat Now this dialog is missing. Does anybody knows how to get it back? Or why it's gone?...

Maven/Netbeans: open source files inside child modules

java,maven,netbeans,module
I have a multi-module maven project in this structure: Parent --ChildA --src --A.java --ChildB --src --B.java --ChildC --src many more... I have Parent open as a project in Netbeans, I want to be able to use "go to type" (ctrl+O) to quickly access A.java (due to the large amount of...

Token error with groovy in NetBeans

netbeans,groovy,titan
Initially, I was developing my groovy code in a simple text editor, but I set up version control via NetBeans and so moved my code over. However, I'm getting an "unexpected token" error on code that actually runs fine. class PWLoad { def conf = new BaseConfiguration() {{ setProperty("storage.backend", "cassandra")...

insert data to database mysql from netbeans

java,mysql,swing,netbeans,insert
I have stack in my register form. I don't get it where the error this is my connection: package login; import java.sql.*; import java.text.SimpleDateFormat; import javax.swing.*; public class register extends javax.swing.JFrame { public PreparedStatement pst; public Connection cn; public Statement st; public register() { initComponents(); try { Class.forName("com.mysql.jdbc.Driver"); cn=DriverManager.getConnection("jdbc:mysql://localhost:3306/tugas?zeroDateTimeBehavior=convertToNull","root",""); st=cn.createStatement();...

Removing columns on Jtable and than inserting new columns

java,swing,netbeans,jtable
I am using Netbeans for developing a java application. I am trying to remove columns on a jTable, and than adding new columns to it with the data that I am extracting. The problem is, I am able to remove the columns easily, using the code snippet below. But when...

Dependent C++ project binaries not relinked in Netbeans

c++,netbeans,makefile,make
I've got a two projects in Netbeans. The first a library, and the second an application. The application depends on the library. When I make changes to the library and attempt to run the application the library is rebuilt, however the library and application object files are NOT relinked unless...

Profiling Gradle Projects

java,netbeans,gradle,editor
How can I profile Gradle projects in Netbeans? I've looked in a few places, but they turned up dead ends. The profile button is also disabled in the Netbeans editor when using a Gradle project.

How to Solve : org.hibernate.HibernateException: createCriteria is not valid without active transaction

java,spring,hibernate,netbeans,createcriteria
I'm learning Spring 4.0 + Hibernate 4.3 integration and I'm very new to both technologies. I'm getting errors after solving previous. Anyone please guide me to complete this successfully. applicationContext.xml <?xml version='1.0' encoding='UTF-8' ?> <!-- was: <?xml version="1.0" encoding="UTF-8"?> --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"...

Making a method for an array

java,arrays,list,netbeans,average
I have an array that takes student grades from an input. I have to make a method that will find the average of the numbers within the array. Here is the code i have so far... int mark = Integer.parseInt(input.getText()); if(mark <= 100){ marks.add(Integer.parseInt(input.getText())); input.setText(""); warningLbl.setText(""); } else{ warningLbl.setText("Please enter...

Pinging multiple times using InetAddress makes GUI unresponsive

java,netbeans,ping,inetaddress
My program is to ping a host infinitely and display each ping result on the GUI as RED/GREEN. Here, 'res' is a label that changes its text and background based on the ping result. The issue is that when i use while(), the GUI becomes unresponsive and the colour of...

How to enable Design View in jsp file in Web application project in Netbeans?

jsp,java-ee,design,netbeans,web-applications
I'm working on a Web application project and I've added a jsp file but I can't see the Design View. I don't know if this feature has been removed in new versions, but here here's a pic of Design View in a jsp: How do I enable it? thanks....

Java Date “before” method dont exist [on hold]

java,date,netbeans
I have imported import java.util.*; import java.util.Date; but NetBeans shows that method "before" dont exist. Data2 is taken from the input, "current" from current day. Date now = new Date(); SimpleDateFormat formatter = new SimpleDateFormat( "yyyy-MM-dd" ); String current = formatter.format( now ); String data2 = data.getText(); boolean result =...

Debugging service test client: Netbeans debugger won't recognize Glassfish server

java,debugging,java-ee,netbeans,glassfish
Here's what I've done so far: Did a fresh build of project (web service project). Redeployed project war file to Glassfish server. Restarted server with --debug=true. Attached debugger from Netbeans. Debugger attaches to the server without an error (responds "User Program Running"), however the Debug tab (in the Projects/Files/Services window)...

Is this too many lines and too many nested blocks?

php,netbeans,code-hinting
I have the a function that loads a list of things from a database and put them into a select list. The function is as follows : (pseudocode) protected function Foo() { try { get pdo instance prepare statement if (pdo query executes) { while (row = fetched rows) {...

How to programatically get the list of projects in the NetBeans IDE?

netbeans
How to programmatically get the list of projects added to the default workspace in the NetBeans? In Eclipse, I can get it through ResourcesPlugin.getWorkspace().getRoot().getProjects() In NetBeans API documentation, references to 'workspace' are marked 'deprecated' and I couldn't find a way to achieve this by searching NetBeans website, stackoverflow, etc. For...

Cannot set JTextField but can Output Variable

java,user-interface,netbeans,jtextfield
I made a similar question before, but this one is more peculiar. Simply put, I have two classes, in the first class (DefineEquationQuadratic) I am passing a value to SelectSolutionQuadratic. In SelectSolutionQuadratic I am trying to set a TextField to display this value, but it does not work. However, what...

How do I pass variables from one Jframe (or class) to another in java?

java,swing,netbeans,return-value,encapsulation
I have looked at a couple of examples that would return values, but I don't fully understand how to make them work in my own code. I figured I should post it here and see if I can get some good pointers. I need to do a check to see...

NetBeans - how to open Chromium open source project with netbeans?

c++,google-chrome,netbeans
For community, i have this project compiled/build/released manually using NotePad++ but its very difficult to work for such large project with just one text editor. I want to use the large project with my favourite NetBeans IDE, to get fast coding done and use some tools of NetBeans while coding...

JAssimp - Can't find dependent libraries

java,netbeans,assimp
I've compiled the JAssimp library, and I'm trying to use the library in NetBeans with a project. I'm setting the library path in Netbeans in the 'run' options of the project as such: -Djava.library.path=D:\VB2013Projects\jassimpfinal\x64\Debug That path is where jassimp.dll is located. However, when I try to run my project, I...

Netbeans - fix imports on entire project

netbeans,ide
I'm using netbeans IDE 8.0. When I hit right click inside the editor, one option is Fix imports(CTRL + SHIFT + I). This option adds useful imports and removes unused imports. But How can I use Fix Imports on entire project(not single file)? Is there any way for doing that?...

Apache IVY Unable to resolve dependencies for MAVEN Projects

netbeans,build,maven-2,ivy,nexus
I have a setup of Apache Ivy(Version 2.4.0) and Netbeans IDE(8.0.2). I have not been able to resolve dependencies for full blown maven projects(For example:org.glassfish.jersey). Apache Ivy successfully resolves dependencies for more specific modules like (org.glassfish.jersey.core). Non working Example: <dependency org="org.glassfish.jersey" name="project" rev="2.13" conf="solrj->*"/> Working Examples: <dependency org="org.apache.solr" name="solr-solrj" rev="5.0.0"...

Finding numbers within a certain range in an arraylist

java,netbeans,methods,arraylist,range
I have an Integer array list that collects numbers that the user inputs. I have to display numbers within the array that <= 50, using a method. How can I do this? public static double levelR(List<Integer> marks){ for (int i= marks.get(0); i<= 50; i++){ System.println(marks.get(i)); } This is all I...

Is there a way to make netbeans navigate to Laravel 5 Facade classes?

php,netbeans,laravel-5,laravel-facade
I'm using Netbeans to work on a Laravel 5 application, and Laravel 5 encourages you to define aliases (called Facades) for certain classes. You can then extend these aliases in your class. However, Netbeans IDE won't let you click-through (ctrl+click on classname) on these classes, since it only knows them...

Netbeans project deployment failure

java,tomcat,netbeans,localhost
server.xml <Connector URIEncoding="utf-8" connectionTimeout="20000" port="8084" protocol="HTTP/1.1" redirectPort="8443"/> Whenever, I'm trying to run my project then, it is redirecting it to my lan ip address resulting deployment failure. Please see below. Server Log The system cannot find the file specified. The system cannot find the file specified. Using CATALINA_BASE: "C:\Users\xxxxxx\AppData\Roaming\NetBeans\8.0.2\apache-tomcat-8.0.15.0_base" Using...

Why won't my JSF app deploy to GlassFish?

jsf,netbeans,glassfish
Yesterday I had trouble with my app suddenly failing to deploy from NetBeans to GlassFish server. I now know why, and am going to answer this question myself. I just wanted to record this information for the next person that needs it. I hope the etiquette of that is OK?...

Adding items to combo box in a table in netbeans

java,swing,netbeans,jtable,jcombobox
I have a table and one of its columns needs to contain combo boxes. When I run the following code, I get combo boxes in each cell but the items are not added into it. When I try to print the items using system.out.println(val), they get printed but they do...

Netbeans 8.0.2 IDE is not opening after installing jax-rpc web service plugin

java,netbeans,jax-rpc
Before placing this question I have gone through these links but couldn't find the solution. Cannot start Netbeans 8.0.1 after JAX-RPC Web Services plugin installation How do I enable "JAX-RPC Web Services" plugin in NetBeans 8.0 I have followed the instructions stated in the later stackoverflow question. Here a solution (work with NetBeans...

How do you update a maven managed dependency?

java,maven,netbeans,netbeans-8
How do I update a maven managed dependency? I downloaded a dependcy that was in milestone 4 (a few months ago), but now there is milestone 5 available. How do I update this in netbeans? <properties> <vertx.version>3.0.0-milestone4</vertx.version> </properties> <dependencies> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-core</artifactId> <version>${vertx.version}</version> </dependency> <dependency> <groupId>io.vertx</groupId>...

Why tomcat is running when I deploy my projects on netbeans using glassfish?

java,tomcat,netbeans,glassfish
I use xampp to open mysql and stop other services. But when I run my servlet project in netbeans it opens glassfish server, at that time in xampp, tomcat status is running. What is the reason?

Unable to edit netbeans.conf

java,windows,netbeans
I am trying to modify 'netbeans.conf' located at following path: C:\Program Files\NetBeans 8.0.2\etc When i modify the file; add -J-Dfile.encoding=UTF-8 In Notepad, it is not allowing me to save the original file. In Notepad++, it says 'please echeck if this file is opened in another program'. Netbeans is installed in...

Netbeans with gradle plugin runs all tests when build running

netbeans,gradle,gradle-plugin
When I run the build command in netbeans with the gradle plugin, all the tests run and the build fails if any of them fail. How can I change this behaviour?

Creating a login using sql in java

java,sql,swing,netbeans,login
I am trying to figure out why my code is getting sent to the exception catch block and how to make this part of my log-in work correctly. The problem seems to be in Class.forName(driver); While debugging I noticed that I get an error, "variable source not available, source compiled...

Quick & Easy: why won't this run?

java,arrays,parsing,netbeans,collections
//markParse is an Integer ArrayList //ii is the number of elements in markParse //analysis is a textArea in the program's design int max = java.util.Collections.max(markParse); int min = java.util.Collections.min(markParse); int range = max - min; int average = sumData/ii; analysis.setText("Avg: " + average); analysis.append("Max: " + max); analysis.append("Min: " +...

import comma separated text data to java database table

windows,netbeans,import
I have several large MS Access databases (e.g. 1gb each file), which I want to import to JavaDB Derby database so that whole application can be switched to Java platform. I'm using Windows 7 64 bit/ Netbeans 8.0 (which no more supports JDBC-ODBC). I am using "ucanaccess" to connect to...

How to import netbeans project to eclipse ignoring package declaration?

java,eclipse,netbeans,ide
I have a (legacy) netbeans project that I'd like to import and maintain in eclipse. For the sake of it I have to provide backwards compatibility with the netbeans project recourses. Problem: the source folders have the hirarchie src/java/de/mycompany/..., but the classes themself have the following package imports: package de.mycompany;...

I am new to javascipt, ajax and all things netbeans

javascript,php,jquery,ajax,netbeans
What I am trying to do: Write a jQuery script that detects a button click and makes an AJax call to a json-data-students.php PHP script on my server using the .getJSON() function. I am using Netbeans IDE 8.0.2 I have successfully connected to Mamp and have uploaded my database. I...

jdatechooser as parameter in mysql query

java,mysql,sql,netbeans
what is the correct method so i can query this statement where the date from the jdatechooser will be my parameter DefaultTableModel model= (DefaultTableModel)DisplayRecieveTB.getModel(); DisplayRecieveTB.revalidate(); model.getDataVector().removeAllElements(); try{ String date = DateChooserRS.getDate().toString(); stmt = conn.createStatement(); stmt.executeQuery("SELECT *FROM supplyrecievable where recievedate = '"+date+"' "); rs = stmt.getResultSet(); while (rs.next()) { String r1...

Trouble adding a row to a 2D ArrayList

java,arrays,netbeans,arraylist
I'm trying to read a line from a .txt file into a 1D Array, add two more elements to that Array based data from the previous ones, and store the new and larger Array in a 2D ArrayList called "dataArrayList", then repeat with the subsequent lines in the .txt file....

setDefaultCloseOperation(HIDE_ON_CLOSE) and System TrayIcon

java,netbeans,icons,system,tray
How can I show the java application that I make after I Close my application? I mean i want to close the application that I make, after that it still run on the background process (tray) and I did, but how can i make the application show (pop up) again...

JFrame: String changing back to null after the value is changed in the constructor

java,swing,netbeans,nullpointerexception,jframe
Just for clarification, i'm using JFrame Form in Netbeans. Ok so basically i'm trying to change the value of a public global String (PictureName) using the constructor, because i'm trying to take another value from another class, but when I try to use it in my JLabel's code, it appears...

netbeans: Attach image in Jlabel using Jbutton

java,image,swing,netbeans,jlabel
How to create a personal detail which I need to attach to a personal image? When clicking the button, it can select the picture, but I still cannot figure it out how to set this coding, any one can help solve this? JFileChooser chooser=new JFileChooser(); chooser.showOpenDialog(null); File f=chooser.getSelectedFile(); personal_image. ...

Net beans opens files in utf 8 even though project is in different encoding

netbeans,encoding,utf-8,ide,netbeans-8
My project is in Windows-1251 encoding. It depends on outside library which is a common dependency for many projects and therefore is stored in diferrent directory on my machine apart from projects. I added path to the library in my project's properties -> include path. The files in this library...

How to solve com.sun.org.apache.xml.internal.security package does not exist in netbean javafx application

java,xml,apache,netbeans
I want to build .jar in NetBean 8.0.2. I have developed a small project based javafx application. My project uses packages such as com.sun.org.apache.xml.internal.security, com.sun.org.apache.xml.internal.security.c14n and com.sun.org.apache.xml.internal.security.utils. My project runs well at Netbean without warning or error. But When I build this project as jar file, following error is occurred:...

how to make image buttons on java fxml using scene builder?

netbeans,javafx,fxml,scenebuilder
I am using netbeans and want to use media file from my desktop to replace the boring button. So this is my code. I want it so the image becomes the button. <Button layoutX="252.0" layoutY="177.0" mnemonicParsing="false" prefHeight="57.0" prefWidth="135.0" text="Button!" textFill="BLUE"> <font> <Font name="Avenir Next Regular" size="13.0" /> </font> </Button> Thanks...

Java log in errors, several exceptions are being thrown

java,sql,netbeans,jdbc,jackcess
After taking the advise from the helpful users here I have made some changes to my code. What am I missing to get this driver to load? I was advised to get Jackcess, and I have included it in my library. and I am using java 8 I am not...

Clean and build project error

java,netbeans
I build a project in Java using NetBeans but when I click on Clean and Build after few minutes it display below error: -C:\Users\Asus\Documents\NetBeansProjects\prova\nbproject\build-impl.xml:990: The following error occurred while executing this line: -C:\Users\Asus\Documents\NetBeansProjects\prova\nbproject\build-impl.xml:834: copylibs doesn't support the "excludeFromCopy" attribute ...

OJDBC connection with NetBeans

java,database,netbeans,oracle11g,ojdbc
I'm trying to establish a new connection with Oracle database with ojdbc7 driver and when I get to the "Customize Connection" step, i get the following message: Cannot establish a connection to jdbc:oracle:thin:@localhost:1521:XE using oracle.jdbc.OracleDriver (ORA-01017: invalid username/password; logon denied ) Can anyone explain what to do? I tried putting...

How can I get a project in netbeans using the gradle plugin to find native libraries?

java,netbeans,gradle,build.gradle,jogl
I am trying to figure out gradle and the netbeans plugin. I have easily been able to put together simple projects, but when trying to convert a project that uses JOGL to gradle I have run into problems. I can get it to compile, but when I try to get...

How to keep java.awt.List from covering javax.swing.JMenu

java,netbeans,drop-down-menu,awt,jmenu
To put this simply, I have some Menus in my Menu Bar that, when at start of the application, goes over a List when you expand it. However, if the List is ever updated, the Menus will go behind the List, covering Menu Items. I have theorized that I need...

Connect netbeans with vagrant

php,netbeans,vagrant
I have a project cloned from github repository on my vagrant machine. How can I open it with netbeans on my host machine, and make changes so that it automatically deploys to vagrant? I have been thinking about SFTP, but I don't have vagrant password, user, or other things -...

UnsatisfiedLinkError while running on netbeans java project

java,opencv,netbeans
I'm tryng to build a little programm to capture picture from people and save them. What i'm tryng to do for now, is get the picture with a webcam using opencv library. As i'm quite beginner, i'm just tryng here to import opencv to my project to run some tutorials...

How can I add new data to an Arraylist & How can I remove user input duplicates?

java,netbeans,arraylist
What i am shooting for is to be able to take the input from my text field in my GUI and put it into an ArrayList. Then I need to check the array and see if I already have the Integer in the array. If so I need to remove...

Struts 2 could not find a result for success returned from an action

java,osx,jsp,netbeans,struts2
I'm not a native English speaker, so my apologizes if I made some idiomatic mistake. I'm completely new on Struts2. I developed a web project that contains 3 JSP pages, a deployment descriptor (web.xml), a struts configuration file (struts.xml) with 2 actions configured inside (an action named index and an...

How to detect backspace in a keyTypedEvent

java,netbeans,keyboard-events,backspace
I'm using Netbeans' bean form to create my GUI.I've added a keyTyped event to a JTextArea and I want to detect if the typed key is a Backspace. I'm using keyTyped event for other reasons so I cannot just use the keyPressed event. This is the generated code (and my...

Java boolean method return

java,netbeans,boolean
I have a boolean method in my Java program and I'm wondering why NetBeans is recommending making this change to my code: return isPrime != 0; What I wrote was: if (isPrime == 0) { return false; } else{ return true; } Both work correctly but I cannot understand the...

Maven resources plugin dependency

java,maven,netbeans,nexus
I am trying to retrieve my project dependencies from a local network accessible maven nexus repository. I have setup a repository entry in my settings.xml as well as an entry to the proxy. To do this Netbeans says it needs to build the project before it can retrieve the dependencies....

Netbeans GUI preview is different from Runtime view

java,swing,user-interface,netbeans,dialog
I'm developing a simple Java application using NetBeans and its GUI editor. I'm stuck on creating a simple dialog: runtime it looks different from what I designed and from what is previewed in the editor. Basically, clicking on a button make my dialog appears. private void jButton1MouseReleased(java.awt.event.MouseEvent evt) { PanelDialogNuovoCliente...

How do I apply filter_input to superglobals

php,netbeans,filter,filtering,superglobals
According to netbeans IDE, I need to add some sort of a filter to superglobals, filter_input() suggested by netbeans, for the code below $page = (isset($_GET['p']) && !empty($_GET['p'])) ? $_GET['p']: 'home'; After researching, I found this example on stackoverflow $name = ($name = filter_input(INPUT_GET, 'name')) ? $name : 'default_value'; But...

Loading a XML file as a resource

java,xml,netbeans
I am programming a game that uses xml files to store stats. I am trying to build a class that will load a xml data template for the stats, and I would like this as a resource, however I am running into a problem where it will say the file...

Nokia Asha SDK files

linux,netbeans,java-me,nokia,nokia-s40
This is a very unusual request but since M$ took down the Nokia wiki pages, I can't seem to find some two files am looking for, namely [http://developer.nokia.com/community/wiki/File:Emulator_preverify.zip][1] [http://developer.nokia.com/community/wiki/File:FTEmulator_preverify.zip][2] I'd deeply appreciate it if someone would share their copy. Thanks....

Java NetBeans Form Creator [closed]

java,netbeans
I am a C# .NET developer and I always use Visual Studio to create my applications. Now I am studying Java with the netbeans IDE and I have no clue of how to create a Form Application? I have used Jform etc. But this is just annoying. I was trying...

'for each' is not a member of std. C++11 support already enabled

c++,c++11,netbeans,std,codeblocks
The code from my professor's homework assignment is as follows. This is straight out of the box, I have not modified my professor's code. There is more to the program, but this is where the error happens. Problem line in bold. std::cout << "\nAll remaining courses with enrollments:\n"; allCourses =...

How to shutdown a Tomcat's instance that wont shutdown? [duplicate]

java,tomcat,netbeans,tomee
This question already has an answer here: TomEE starts but Netbeans gives “Failed to start” error 3 answers I'm trying to use a new installation of TomEE as a local server in Netbeans but there's another instance of Tomcat that will never shutdown no matter how many times I...

Closing Jform in the constructor

java,swing,netbeans,swingx,jform
I am having a minor issue with the code. I just want the Jform to not be displayed if a condition is not met in the constructor portion of the form.Outside the constructor the dispose(), return and setVisible(false) all work fine. I have tried this.dispose(); and return; and this.setVisible(false); but...

Netbeans/java: Could not find or load main class library

java,class,netbeans,main
I'm trying to setup my development environment on Linux Mint after an unfortunate reinstall of my whole computer due to some windows troubles. For the development of the Java program I use Netbeans. I allready installed all dependencies and external libraries. However when I'm trying to run the program I...

Error: ‘to_string’ is not a member of ‘std’ when compiling in command line with gcc 4.8.2, works in NetBeans?

c++,c++11,netbeans,googletest,g++4.8
I am doing tests for my code with GoogleTest (1.7.0). I must have the tests compiling in both NetBeans (8.0.2) and straight from command line. NetBeans has GoogleTest integrated as suggested here: https://youtu.be/TS2CTf11k1U. I have also build GoogleTest from the command line (in different place) with the instructions provided with...

TomEE starts but Netbeans gives “Failed to start” error

java,tomcat,netbeans,tomee
I'm using NetBeans 8.0.2 (also, tried it in the latest nightly build) and trying to start TomEE Plume server on port 8084 (tried it on different port too). Server starts and works fine, but NetBeans thinks it is not started and after approximately 2 minutes of waiting ("Waiting for Tomcat")...

Locally call RESTful Web Service generated by NetBeans IDE from Android?

java,android,json,rest,netbeans
so the NetBeans IDE can generate RESTful Web Service from database (the table has been packed into an entity class). I followed this tutorial and the RESTful Web Service has been generated successfully. Now, I would like to call from my Android app, but no luck so far. I used...

Java class not compiling working outside of netbeans with maven dependicies

java,maven,netbeans,netbeans-8
I have create a project in Java. I added a maven dependency, nimbus-jose-jwt. My pom.xml file: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany</groupId> <artifactId>vertxTestProject</artifactId>...

My IF statement is not working using SQL Server data

java,sql-server,if-statement,netbeans
I'm having a problem with my statements (I'm guessing). I'm doing a small web app that needs to have a login form. I created the form in the index.jsp page, and when I submit it (having my username and password fields filled) it actions a "login.jsp". This is my login.jsp:...

Accessing JComboBox data from separate JForm

java,swing,netbeans,jframe,jcombobox
I've spent a bit of time browsing Stack Overflow and the internet looking for the answer to my question, but I found all the answers hard to understand and I was quite unsure if any of them related to my problem, so I decided I needed help in the right...