FAQ Database Discussion Community


How connect Jena Fuseki Server to Netbeans like MySQL

java,mysql,sparql,jena,netbeans-8
I would like to connect Jena Fuseki server to netbeans and start to query sparql codes using java program. I did imported the jena libraries but, I'm stock on how to connect and make some queries.

Netbeans project imported from existing cmake application fails to build with filesystem error on Windows

c++,netbeans,makefile,cmake,netbeans-8
I am attempting to import a manually-created cmake project that I had been using in a different IDE into Netbeans 8.0.2 on Windows 7. Needless to say, my cmake configuration worked fine there. Netbeans seems to import the directory fine. I imported it in "automatic" (cmake) mode. However, when I...

Animated Splash screen in Netbeans Java

java,netbeans-8,animated,dynamic-splash-screen
I am trying to make animated Gif Splash screen in java netbeans but it doesn't works.. so I use jpg or PNG files it works .. I want to use gif animated file in splash screen I am using -splash:src/Images/sspp.PNG in VM options.. please tell some solutions so I am...

Remove “JVM invocation command line” from glassfish logs

java-ee,netbeans,glassfish,netbeans-8,glassfish-4.1
I've a remote glassfish 4.1 registered with netbeans 8.0.2 buy my glassfish logs are being filled up with a continuous repetitive output that looks something like this: [2015-02-02T18:59:45.449+0000] [] [INFO] [NCLS-GFLAUNCHER-00005] [javax.enterprise.launcher] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1422903585449] [levelValue: 800] [[ JVM invocation command line: /usr/lib/jvm/java-7-openjdk-amd64/bin/java -cp /glassfish4/glassfish/modules/glassfish.jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=9010...

How to use java update 40 version of Java on NetBeans 8

java,javafx-8,netbeans-8
I would like to use and test the classes added in Java 8 update 40, but unfortunately the compiler of Netbeans generates an error when i add the following statement: import javafx.scene.control.Dialog<R>; The following image shows that the JDK installed in my comuter is : java 8 update 40. ...

JavaFX 2 Timeline setcyclecount()

javafx,java-8,netbeans-8
I'm using javafx in javase8 and netbeans 8.0.2, I made randomly generated shape images and show them sequentially with timeline. But last image isn't shown. timeline.setcyclecount(12) i use java generate 12 images but doesn't show 12. image in timeline. public class JavaFXApplication3 extends Application { int k; Timeline timeline; class...

semi colon missing eror

java,netbeans-8
private void add_computer_buttonActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: try{ String url ="jdbc:derby://localhost:1527/Computer_Inventory"; String usr ="admin1"; String pass ="password"; Connection con = DriverManager.getConnection(url,usr,pass); Statement st = con.createStatement(); String Query; Query = "INSERT INTO INVENTORY (EMP_NAME, DESIGNATION, ID, DEPARTMENT, COM_COMPANY, COM_MODEL, COM_SR_NO, COM_EXSER_TAG, PRIN_PRESENT, PRIN_COMPANY, PRIN_MODEL, PRIN_EXSER_TAG, PRIN_SR_NO,...

Error in initializing a float value

java,floating-point,netbeans-8
Why this is not allowed? float n; n = 1234567.89; but this is. float n; n = (float) 12.3456789; I'm using JAVA 8 and Netbeans 8.0.1. IDE snapshot below. ...

netbeans platform add 'org-netbeans-modules-lexer.jar' dependency

java,netbeans,netbeans-platform,netbeans-plugins,netbeans-8
I added this 'org-netbeans-modules-lexer.jar' dependency to a netbeans platform module. But it seems not getting added in the normal way. Imports cannot find its classes as well. This is how it is shown when added. Any suggestion? Netbeans version 8.0.2 ...

Connecting to database on users computer

java,mysql,database-connection,netbeans-8
I am currently using Netbeans 8 and trying to make the MySQL database connect to the program without downloading MySQL on to the users computer or running a server, so the MySQL file must be local. How may I proceed is there a way to package with the jar of...

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>...

Deploy Java Application with Embedded Derby Database

java,jdbc,derby,netbeans-8
Am developing a java desktop application using Netbeans 1.8 IDE, the application will use embedded derby database to store data. The connection to the derby database is by the following. final String host = "jdbc:derby:C:\\Users\\Faisal\\.netbeans- derby\\Wa_Poly"; final String uName = "APP"; final String uPass = "12345"; the following code snippet...

Netbeans Plugin Develpment

java,netbeans,netbeans-plugins,netbeans-8
I need to work on a Netbeans Addon for self for a programming language. The plugin should support following: Code Completition Syntax Highlighting Project Template(eg: PHP Project Type) I did find something related to code completition here but not getting clue of others...

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>...

Using netbeans digitalclock sample

javafx,netbeans-8
I am a Java beginner with a question about the operation of the Digitalclock.java example in Netbeans 8.0.2 I want to alter the display to show only Hours and Minutes and change the color. I have found within the code a way to eliminate the display of the Seconds digits...

How can I make a payara netbeans integration

java-ee,netbeans-plugins,netbeans-8,glassfish-4.1
How can I make a payara netbeans integration, it is posible? How I can integrate Payara with netbeans, what can you tell me about the integration, there is a plugin.

Duplicate output with ItemStateChanged listener on JComboBox [duplicate]

java,combobox,listener,netbeans-8
This question already has an answer here: JComboBox itemStateChanged event called twice at a time 2 answers I have a JComboBox and after every change I want to print out the selected item. This is the code for my JCombobox: mycombobox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item...

Can't run tests provided in Slim Framework

php,xampp,phpunit,netbeans-8,slimframework
I'm trying to make a simple rest client for my android app. I would like to do than in TDD way, but for that I need simple working configuration for all actions (GET, POST, and so on). After some struggling I was able to make test work with get requests....

How to populate data in table view with user input on button click in javaFX

java,javafx-2,tableview,fxml,netbeans-8
i have given right id in my fxml file but code does't work and no error too.i want to get input all in text and at add button pressed have to fill that data into tableview.Input is text,radio button and checkbox that convetred into string.and at selection of row have...

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?...

java.lang.UnsupportedOperationException: Not supported yet

java,swing,netbeans-8
so I always get this error when i try to run my program. it is frustrating because this program is due tomorrow. please help me. this is the error: Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: Not supported yet. at trial.connection.returndata(connection.java:22) at trial.search.jTextField1KeyReleased(search.java:150) at trial.search.access$000(search.java:21) at trial.search$1.keyReleased(search.java:100) at java.awt.Component.processKeyEvent(Component.java:6466) at...

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...

Is there a Netbeans “tag” for line number

java,annotations,netbeans-8
Are there any Netbeans "tags" (ala @...) that will (upon compiling) insert the line number that the tag is on? So, if the tag is on line 50, Netbeans will replace the tag with "50"? I thought when throwing an exception, it might be a good idea to reference the...

How to drill down into shared_ptr [Netbeans, clang++, gdb]

c++,debugging,gdb,clang,netbeans-8
I'm using Netbeans C++ 8.0.2 clang++ (Ubuntu clang version 3.6.0-2ubuntu1 (tags/RELEASE_360/final) (based on LLVM 3.6.0)) gdb (GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9) In my "C++ Simple Tests," whenever I inspect a variable that is a shared_ptr, all I see for value is: std::shared_ptr (count 1, weak 0) 0x64d3a0 or similar. There...

XSSFWorkbook, XSSFSheet not working - NetBeans 8.0.2

java,apache-poi,netbeans-8,xssf
I downloaded the POI 3.11 package from the Apache repositories website, added them to my project. After that I added xmlbeans, ooxml-schemas, but still my NetBeans 8.0.1 IDE shows an error when I declare XSSFWorkbook and XSSFSheet. Can anybody help me here as I am not much of a core...

Web page shows the following error

php,netbeans-8
Created a folder called Coffe website. Saved this folder in xampp/htdocs. Gave the project url as localhost/xampp/Coffewebsite. Netbeans connector is active in chrome. It says web_page is not_available. Error messages: Warning: include(Template.php): failed to open stream: No such file or directory in D:\xampp setup\htdocs\Coffe website\index.php on line 5 Warning: include():...

adding background image in jTable Java

java,swing,background,jtable,netbeans-8
I am trying to add background image in jTable but when I run code nothing shown. only white color and no jTable shown and my java Application hangs also. is there any thing wrong in this code. here is the preview also. import javax.swing.table.*; import java.awt.event.*; import javax.swing.*; import java.awt.*;...

unreported exception UnknownHostException; must be caught or declared to be thrown during global declaration

java,exception,jframe,global-variables,netbeans-8
I am trying to declare one global variable in a class, whenever i create simple variables like int i; , they are created easily, but when I try to create an object like Socket socket = new Socket("192.168.1.3",4917); it gives the error that I have mentioned. I know that its...

Changing a method into my main method

java,netbeans-8
So I am new to java and I am practicing converting public static method into my main method. This is my first attempt and I am kind of lost. I was wondering if someone could show me how and maybe I can figure it out. Here is the current method...

java awt color chooser does't show in proper way in JavaFx

java,javafx-2,netbeans-8,jcolorchooser
@FXML Private void handleItemBackAction(ActionEvent eve) { java.awt.Color color=JColorChooser.showDialog(null,"Select a color",java.awt.Color.CYAN); String hex = Integer.toHexString(color.getRGB() & 0xffffff); hex="#"+hex; Text.setText(hex); ShortcutButton.setStyle("-fx-background-color: " + hex + ";"); } When I run this window and click on button at first time color chooser goes behind my actual pane. When I click on button second...

Netbeans Lowercase Shortcut Not Working

netbeans,keyboard-shortcuts,netbeans-8
Netbeans has a nice set of keyboard shortcuts, but unfortunately, I can't seem to get all of them to work. Specifically, there's a keyboard shortcut for converting selected text to lowercase: Ctrl+U L. However, no matter how many times I try this (or variations on it), nothing happens I just...

Can't start GlassFish 4.1 from Netbeans 8.0.2

netbeans-8,glassfish-4.1
I can't start GlassFish from NetBeans. In asadmin.bat server starts just fine with no errors. In NB it freezes on Starting GlassFish Server and nothing happens. I tried to run as administrator, reinstall, couple of strange things and nothing helps. Windows 8.1 NetBeans 8.0.2 GlassFish 4.1...

Why can't I set the value of a progress bar in another class?

java,user-interface,progress-bar,netbeans-8
I am trying to set the value of the progress bars in math1a and math2a through math1a, but only the value of the progress bar in math1a is set and the one in the math2a class didn't. I tried using set and get method for the matha2 progressbar but it...

How to prevent Netbeans 8 from stopping on the first line when debugging a PHP Application

php,xdebug,netbeans-8
I'm working on a PHP application for a web server in Netbeans 8.0.1. I've installed XAMP/Apache Server/XDebug and can run and debug the application. When I debug the project in Netbeans, the debugger breaks at the beginning of each php file. This is very annoying and interrupts the process of...

Viewing dynamic type in Netbeans debugger for C++

c++,debugging,netbeans-8
I have a class hierarchy which starts with class Command { ... } and then has subclasses class RunCommand : public Command { ... } In the Netbeans debugger, when viewing a variable of type Command * I would like to see the actual type of the variable, Command *...

Runtime.getRuntime().exec gets no results when used from java netbeans

java,r,cmd,netbeans-8
I am working on a Java project, and stuck at a step as it is showing no results. The java code is: public class callPgs { public static void main(String[] args) { // TODO Auto-generated method stub try{ Process p = Runtime.getRuntime().exec("C:/R/R-3.2.0/bin/Rscript.exe C:/R/R-3.2.0/bin/arrayqualityMetrics.R"); int processComplete = p.waitFor(); if (processComplete ==...

netBeans and ucanacces sql exception only calling db from code

java,database,sqlexception,netbeans-8,ucanaccess
Well, this is a little odd, I installed succesfully the driver, and in the services tab, my database tables show correctly, but when I call the driver from code I get: java.sql.SQLException: No suitable driver found for jdbc:ucanaccess://C:\Users\sample.mdb at java.sql.DriverManager.getConnection(DriverManager.java:689) at java.sql.DriverManager.getConnection(DriverManager.java:270) at sampleProject.TestDBConnection.main(TestDBConnection.java:16) Here's my code: package sample; import...

npm ERR! Windows_NT 6.3.9600, unable to install cordova in windows8

node.js,cordova,proxy,netbeans-8
I tried to install cordova on my windows8 machine by using the below command in command prompt npm install -g cordova but i'm not able to install because of the following error can any one help me out please. Error: npm ERR! Windows_NT 6.3.9600 npm ERR! argv "C:\Program Files\nodejs\\node.exe" "C:\Program...

Does Netbeans v8.0.2 plugin for cakephp support cakephp v3?

cakephp,netbeans,cakephp-3.0,netbeans-8,netbeans-plugins
I have been using Netbeans v8.0.2 and the cakephp plugin works perfectly fine on cakephp v2.x. Recently, I started a new project in cakephp v3.0.2 and the cakephp in Netbeans failed to recognize the project as cakephp. Is it because cakephp v3.x is still not supported on Netbeans yet? If...

Way to generate javadoc and java project from jar file

java,netbeans-8
I use Netbeans. I can make long java projects and then compile them to create a jar file which i can execute independently. But given a jar field, can someone tell how i can generate a java project from it and also its java-doc? Is there an available software that...

Database doesn't work on netbeans

mysql,netbeans,netbeans-8
My database does not work, I get and error that I pasted after the code: try { String url = "jdbc:derby:test"; String name = "root"; String password = "123"; Connection con = DriverManager.getConnection(url, name, password); Statement state = con.createStatement(); String query = "INSERT INTO APP.UNTITLED (id , name , password...

Block commenting in NetBeans IDE java editor

comments,netbeans-8
I have got the following code snippet written in java editor of NetBeans IDE 8.0.2 that should be multi-line commented in such a way that enables me to fold/collapse the commented portion. void changeGear ( int newValue ) { gear = newValue; } How can I do that?...

Compiling bootstrap less shows errors/warnings

twitter-bootstrap-3,less,netbeans-8
I've a large project using Bootstrap3 CSS Framework. We use Netbeans IDE which supports less compile on save. Netbeans is using the syntax Using lessc Version 2.4.0 on a Ubuntu machine installed via npm. $ lessc less/compiled.less css/compiled.css Full output: "/usr/local/bin/lessc" "--source-map" "--source-map- rootpath=../themes/bodensee/less" "--source-map-url=compiled.css.map" "/usr/local/vufind2/themes/bodensee/less/compiled.less" "/usr/local/vufind2/css/compiled.css" extend ' .clearfix'...

add jPanels by selecting jCheckBoxes

java,swing,jpanel,jcheckbox,netbeans-8
As you can see from layout I want to add (or show) jPanels by selecting checkBoxes. panelWindow is enclosed in jScrollPane. + checkBox1 | jPanel1 | ------------------------------------- + checkBox2 | jPanel2 | ------------------------------------- + checkBox3 | jPanel3 | ------------------------------------- ^ ^ | | checkBoxPanel panelWindow In the case when selected...