netbeans

PHP修改端口号后

蓝咒 提交于 2021-02-16 06:26:35
今天,想尝试复习下PHP,运行XAMPP中的Apache时遇到了此BUG 复制第二段话上网搜了下,发现只要将端口80修改即可。 首先点击config,并选择httpd.conf 然后将Listen 80 改为Listen 8080并保存 紧接着还需设置,选择config->service and port settings 将main port改为8080即可 我以为以上工作完成即可,但是当我用netbeans运行时,出现 原因我找了很久,发现是因为netbeans,运行时项目URL用了默认路径的问题 选择定制,修改路径 将http://localhost/PhpProject2/ 改为http://localhost:8080/PhpProject2/ 注意localhost:8080中间不要有任何空格 此后运行,正常 !!!! 来源: oschina 链接: https://my.oschina.net/u/4359742/blog/3314352

Netbeans using comma as default. Why?

时光怂恿深爱的人放手 提交于 2021-02-10 20:26:15
问题 Hello guys and girls, So, Netbeans (like most IDE's) use dots (.) to organize decimal places, right? I dont know why but my IDE began to use comma (,) to organize decimal places... even the outputs showed in the console are using commas. How can i change it back to default settings and start using dot in decimal places again? PS: When i try to enter a number using dot and the decimal places (4.5, for example) i get this error message: Exception in thread "main" java.util

How to retrieve multiple row from database in java

旧时模样 提交于 2021-02-10 16:57:22
问题 I need to insert different result into the row of my JTable. I search my record by using purchaseID which is the pID, it will find 2 result for that particular purchaseID. The problem is when I insert it into row, it just duplicate the result of the first one. EG : P0001 have 2 purchase details and when I insert it into row, I have 2 same row. Is there any way for me to insert into row one by one ? PS. I've been coding since morning, brain is not functioning well. UI: else if(e.getSource() ==

call from java Main to methods in another java file

不羁岁月 提交于 2021-02-10 15:53:58
问题 When executing I have error: cannot find symbol in the line MyCalcs.MtgeCalc(); in file Main.java Why is it so??? in file Main.java I have:- e/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.MyJava.002mavern; public class Main { public static void main(String[] args) { MyCalcs.MtgeCalc(); } } and in file MyCalcs.java I have:- /* * To change this

How can i add checkbox on my JTable?

谁都会走 提交于 2021-02-10 14:21:00
问题 This is a Drag and Drop Java Swing Here's my code prod.removeColumn(prod.getColumnModel().getColumn(0)); String sql = "select prod_id,prod_description,prod_wh_name,prod_fr_name from product order by prod_description asc"; PreparedStatement pst = con.prepareStatement(sql); ResultSet rs = pst.executeQuery(); while(rs.next()) { int columns = rs.getMetaData().getColumnCount(); Object[] row = new Object[columns]; for(int i = 1 ; i <=columns;i++) { row[i - 1] = rs.getObject(i); } (

localhost refuses to connect - ERR_CONNECTION_REFUSED

删除回忆录丶 提交于 2021-02-09 11:13:46
问题 I have a simple MVC web application where javascript code sends ajax requests to the controller and the controller sends back responses. I built the app 2 years ago and everything used to work fine. Now I tried to run the app again locally and met with the following problem: whenever an Ajax request is sent from the frontend to the controller (running on localhost), the localhost refuses to connect and I get an ERR_CONNECTION_REFUSED message in (chrome's) javascript-console. (In Safari's

Maven executable Jar throws error on start [duplicate]

不想你离开。 提交于 2021-02-08 14:25:09
问题 This question already has answers here : How can I create an executable JAR with dependencies using Maven? (31 answers) Closed 3 years ago . First of all: I am new to maven. I made my first maven Application and successfully tested it within the IDE. The build was always successfull and everything worked like a charm. Now I want to export the project as an executable jar with the dependencies built in, but I am not quite sure why it is not working. I added the following to my pom file, as

NetBeans Platform: How to style the NetBeans GUI components programmatically?

ⅰ亾dé卋堺 提交于 2021-02-08 11:28:26
问题 Intro I have to program a fat client using NetBeans Platform and JavaFX 11. One of the requirements is to offer a default and dark theme mode for the application. So if the user of my GUI application press the dark mode button, the application's GUI changes to the dark style. Problem While its obvious for me how to style the JFX components (via a CSS file), the CSS file doesn't has an impact on the NetBeans Platform's components like the menu bar. For instance the JavaFX components inside a

Maven error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

好久不见. 提交于 2021-02-08 11:10:51
问题 I'm using netbeans. I tried to reinstall it but it did not work. Following is the stack trace when I run mvn clean install -X: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at org.neuroph.util.NeurophArrayList.get(NeurophArrayList.java:376) at org.neuroph.core.Layer.getNeuronAt(Layer.java:230) at org.neuroph.util.ConnectionFactory.forwardConnect(ConnectionFactory.java:231) at neuralNetwork.util.NeuralNetworkBuilder.customStandardNNet(NeuralNetworkBuilder.java:34) at

Maven error: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

梦想的初衷 提交于 2021-02-08 11:10:22
问题 I'm using netbeans. I tried to reinstall it but it did not work. Following is the stack trace when I run mvn clean install -X: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at org.neuroph.util.NeurophArrayList.get(NeurophArrayList.java:376) at org.neuroph.core.Layer.getNeuronAt(Layer.java:230) at org.neuroph.util.ConnectionFactory.forwardConnect(ConnectionFactory.java:231) at neuralNetwork.util.NeuralNetworkBuilder.customStandardNNet(NeuralNetworkBuilder.java:34) at