netbeans-8

Netbeans, Gradle and Jogl, crash

独自空忆成欢 提交于 2019-12-24 17:14:29
问题 I am trying to learn and implement Gradle in one of my project. I installed the Netbeans Gradle plugin and after looking a couple of tutorials (and running successfully a couple of test projects), I tried the big step. I successfully solved all the Jogl dependencies modifying the build.gradle script as follow: apply plugin: 'java' sourceCompatibility = '1.8' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' // NetBeans will automatically add "run" and "debug" tasks relying on the //

How to send byte[] and strings to a restful webservice and retrieve this information in the web method implementation

依然范特西╮ 提交于 2019-12-24 01:16:08
问题 I am trying to send a byte[] as one of the parameters from my android client and receive this information in my restful web service that i have implemented in netbeans. this is my Android client code: @Override protected String doInBackground(String... params) { String param1 = params[0]; String param2 = params[1]; String param3 = params[2]; String param4 = params[3]; String param5 = params[4]; String param6 = params[5]; //param6 is a Base64 encoded byte array to string String url = "http:/

java.lang.NoClassDefFoundError: sun/security/ssl/SupportedEllipticCurvesExtension

蹲街弑〆低调 提交于 2019-12-22 05:25:20
问题 I am trying to secure a web application so that I can use a secure data transport layer TLS/SSL with HTTPS. I am using glassfish server 5. After starting the server I did a https://localhost:8181 and it gave me this exception: Warning: GRIZZLY0013: Exception during FilterChain execution java.lang.NoClassDefFoundError: sun/security/ssl/SupportedEllipticCurvesExtension at sun.security.ssl.HelloExtensions.<init>(HelloExtensions.java:82) at sun.security.ssl.HandshakeMessage$ClientHello.<init>

Unable to autolaunch a dbus-daemon without a $DISPLAY for X11. NetBeans. Pi as remote host

为君一笑 提交于 2019-12-22 00:34:10
问题 I am trying to run the following example code using my NetBeans IDE: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <dbus/dbus.h> int main() { DBusConnection *connection = NULL; DBusError error; char buffer[1024]; dbus_error_init(&error); connection = dbus_bus_get(DBUS_BUS_SESSION, &error); if (dbus_error_is_set(&error)) { fprintf(stderr, "%s", error.message); abort(); } puts("This is my unique name"); puts(dbus_bus_get_unique_name(connection)); fgets(buffer, sizeof

Strange Gluon project structure for JavaFX - Android porting

霸气de小男生 提交于 2019-12-21 19:45:43
问题 The gradle build of Gluon plugin (in Netbeans 8.0.2) for porting JavaFX to Android creates the following directory structures: Source Packages [Java] Android/Java Packages Desktop/Java Packages Ios/Java Packages Each of these directories contain java packages inside them. Generally Gluon build would create the "main" class for us in one java package inside "Source Packages" directory [the name Packages with "Source Packages" might be misleading since it is not a Java package, its just a file

How to syntax highlighting for ejs file in netbeans

泄露秘密 提交于 2019-12-21 06:58:19
问题 I have been working in netbeans IDE since long time and recently started coding in NodeJs but there is no highlight code for ejs file. How to rid from this problem. 回答1: You need to configure ejs file extension with some associative file type. Steps:- Go to Tools -> Options Click on Miscellaneous Tab then Files tab click the "New" button Type your desire extension without the dot(e.g, ejs ). Select the appropriate file type from the "Associated file type (MIME)" drop down box. e.g, HTML Files

How to add new rows into a jTable from database while button click without clearing existing rows

会有一股神秘感。 提交于 2019-12-20 04:53:55
问题 How to add new rows into a jTable from database while button click without clearing existing rows in jTable? I tried lot of ways. But no success. Help String SQL = "SELECT name,price FROM items WHERE ID = ' "+jTextField1.getText()+" ' "; pst = Conn.prepareStatement(sql); rs = pst.executeQuery(); jTable1.setModel(DbUnits.resultSetToTableModel(rs)); Edit:- With the help of all answers i change the code into below code, But OK . But here i get a error in DefaultTableModel String sql = "SELECT

java.net.ConnectException: fail to connect to localhost/127.0.0.1(port 8080): connect failed:ECONNREFUSED….(Codename One App)

不想你离开。 提交于 2019-12-18 16:54:27
问题 After build android application , I scanned the generated QRcode and install the application on galaxy s4 successfully. But when I try to do some search using the app I got the following exception: "java.net.ConnectException: fail to connect to localhost/127.0.0.1(port 8080): connect failed:ECONNREFUSED…." Please check the attached picture for more clarity. The app works correctly on simulator. I OFF the firewall of my system but that doesn't solve the issue. Please how can I solve this

How to connect NetBeans 8 with Tomcat 8 in Mac OS X?

别等时光非礼了梦想. 提交于 2019-12-18 05:28:25
问题 I found other Questions and Answers dealing with getting the NetBeans IDE to talk to the Apache Tomcat servlet container. But they seem to be out of date or involve extraneous steps. I remember the process as being less complicated on my Mac. But I cannot remember the exact steps. 回答1: Indeed, getting Tomcat to talk to NetBeans is fairly simple though not obvious. Java EE edition of NetBeans If downloading NetBeans, grab an edition of NetBeans IDE already bundled with Tomcat. You may need to

How to add iText into my netBeans project?

对着背影说爱祢 提交于 2019-12-14 03:17:23
问题 Im using Netbeans 8.0.2 and I am trying to give my output as a PDF file. On a quick google search, I learnt iText can help me do it. But how can i import iText package into my project? How should i import the package that i have downloaded (latest). 回答1: If your project uses Maven then you simply add iText to your pom.xml . <dependency> <groupId>com.itextpdf</groupId> <artifactId>itextpdf</artifactId> <version>5.5.8</version> </dependency> See http://developers.itextpdf.com/itext-java 回答2: