netbeans

Java Netbeans: 'Package does not exist'

China☆狼群 提交于 2021-02-20 09:20:54
问题 I have a problem with my code, even though it hasn't been modified in any way. It just suddenly threw this message. As you can see on the left, that they are all in the correct package, and have correct names. What can I do to fix this problem? 回答1: Clear the cache to fix it. In Windows, cache is located at: C:\Users\username\AppData\Local\NetBeans\... On Linux, cache is at: /home/username/.cache/netbeans/... After clearing the cache restart netbeans. 回答2: If clearing the cache still doesn't

Java Netbeans: 'Package does not exist'

好久不见. 提交于 2021-02-20 09:19:18
问题 I have a problem with my code, even though it hasn't been modified in any way. It just suddenly threw this message. As you can see on the left, that they are all in the correct package, and have correct names. What can I do to fix this problem? 回答1: Clear the cache to fix it. In Windows, cache is located at: C:\Users\username\AppData\Local\NetBeans\... On Linux, cache is at: /home/username/.cache/netbeans/... After clearing the cache restart netbeans. 回答2: If clearing the cache still doesn't

JavaFX Preloader and Netbeans

我的梦境 提交于 2021-02-19 05:37:33
问题 I am using the standard JavaFX preloader templete. But I am not sure how to link it to my JavaFX program. public class FXPreloader extends Preloader { ProgressBar bar; Stage stage; ....... } And here is my Main public class CIDCV extends Application { @Override public void start(Stage primaryStage) throws Exception { Parent root = FXMLLoader.load(getClass().getResource("Main.fxml")); Controller.stage=primaryStage; Scene scene = new Scene(root); Controller.stage.setScene(scene); Controller

Why do I have java.lang.ClassNotFoundException while trying to run JavaFx application?

大憨熊 提交于 2021-02-19 05:32:58
问题 I have tried to create example application as described here and the code is this: package colorfulcircles; import javafx.animation.KeyFrame; import javafx.animation.KeyValue; import javafx.animation.Timeline; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Node; import javafx.scene.Scene; import javafx.scene.effect.BlendMode; import javafx.scene.effect.BoxBlur; import javafx.scene.paint.Color; import javafx.scene.paint.CycleMethod; import javafx.scene

Netbeans 8.2 Can't Verify Git Credentials?

混江龙づ霸主 提交于 2021-02-19 05:24:23
问题 I have a Java project that I'm making which has had several commits on github. I recently changed OS versions on Kubuntu from 17.10 -> 18.04, and have installed Netbeans 8.2 with Java Version 1.8.0_171 to avoid Java 9+ compatibility issues. I can't clone the project from git, every time I try to import it using the built in Git "Team" support, my cridentials bounce back. This is mysterious since I use KeePassX to manage all my ID information and directly copy-paste it. I've verified that this

Using Python in NetBeans 8.1

放肆的年华 提交于 2021-02-19 03:23:06
问题 I'm trying to add Python functionality to NetBeans 8.1. I downloaded Python from the Python website here. (I'm using Windows 10, by the way.) I also downloaded the NetBeans plugins "Python" and "Jython Distribution" (required by the former). Now I have two questions: 1. When I create a new Python project, I have these options: Based on the description for the "Setuptools" choice, I'm guessing that I shouldn't use that one since it's not for Windows. So am I correct in choosing "Python Project

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin

浪尽此生 提交于 2021-02-18 12:35:07
问题 I'm trying compile using mvn install but I'm getting this error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project test: Compilation failure: Compilation failure: pom.xml file: <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

Java.lang.NumberFormatException error: empty string- Exchange Rate application

∥☆過路亽.° 提交于 2021-02-17 06:55:12
问题 I'm writing a program which gets daily exchange rates from http://www.tcmb.gov.tr/kurlar/today.xml and saves them to the List. Here is my code: public class ParseTheXml { private List<CurrencyPojo> currencyList; public void setCurrencyList(List<CurrencyPojo> currencyList) { this.currencyList = currencyList; } public List<CurrencyPojo> getCurrencyList() throws ParserConfigurationException { currencyList = new ArrayList<CurrencyPojo>(); try { DocumentBuilder builder = DocumentBuilderFactory

JavaWeb java.lang.NoClassDefFoundError: sun/security/ssl/HelloExtension

筅森魡賤 提交于 2021-02-17 05:59:51
问题 I'm getting an error when trying to use a JavaWeb project using Glassfish 5.0. Everytime it tries to bring data from my SQL Database it gives me this error. StandardWrapperValve[ListadoPersonas]: Servlet.service() for servlet ListadoPersonas threw exception java.lang.NoClassDefFoundError: sun/security/ssl/HelloExtension Here is the servlet ListadoEstadosCiviles where I call the function which brings the data back from my database GestorPersonas g = new GestorPersonas(); ArrayList<EstadoCivil>

Why does this while loop prevent paint method from working correctly?

大城市里の小女人 提交于 2021-02-17 03:39:10
问题 Here's my code: package javaapplication2; import java.awt.Color; import java.awt.Graphics; import javax.swing.JFrame; import javax.swing.JPanel; public class JavaApplication2 extends JPanel { public static void main(String[] args) { JFrame frame = new JFrame("Simple Sketching Program"); frame.getContentPane().add(new JavaApplication2()); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(400, 300); frame.setVisible(true); } @Override public void paint(Graphics g) { g.setColor