netbeans

NetBeans 8.2 does not open on Mac OS

 ̄綄美尐妖づ 提交于 2021-02-05 20:31:18
问题 I am trying to start NetBeans 8.2 on a Macbook Pro and it's not working. It shows the splash screen, then after a while it shuts down without starting anything. Running from the command-line I can see this error: Oct 02, 2017 7:40:28 PM org.netbeans.ProxyURLStreamHandlerFactory register SEVERE: No way to find original stream handler for jar protocol java.lang.reflect.InaccessibleObjectException: Unable to make field transient java.net.URLStreamHandler java.net.URL.handler accessible: module

Adding CLASSPATH in NetBeans

混江龙づ霸主 提交于 2021-02-05 10:47:05
问题 I need to add classpath in NetBeans . I'm reading book "Thinking in Java 4th Edition" . From doc: "In the Projects window, right-click the project node and choose Properties. Click Libraries in the left panel of the Project Properties dialog box. Adding library path in the right panel." I did that, but when I wrote : import static net.mindview.util.print.* I see next: package net does not exist Help. Why package does not exist? 回答1: I recently added a classpath for Java mysql-connector in

Adding CLASSPATH in NetBeans

て烟熏妆下的殇ゞ 提交于 2021-02-05 10:46:07
问题 I need to add classpath in NetBeans . I'm reading book "Thinking in Java 4th Edition" . From doc: "In the Projects window, right-click the project node and choose Properties. Click Libraries in the left panel of the Project Properties dialog box. Adding library path in the right panel." I did that, but when I wrote : import static net.mindview.util.print.* I see next: package net does not exist Help. Why package does not exist? 回答1: I recently added a classpath for Java mysql-connector in

Variable not initialized and hides in field

佐手、 提交于 2021-02-05 08:32:35
问题 I'm fairly new to java, so I don't understand why i'm getting an initialization error. In the code my integer "Memes" is saying that it might not have been initialized and that a local variable hides in field. private void totalUpdate(int yes){ if (yes==1){ int CompBot = Integer.parseInt(lblbotComp.getText()); int CompTop = Integer.parseInt(lbltopComp.getText()); int CompMid = Integer.parseInt(lblmidComp.getText()); int Memes = Memes + CompBot + CompTop + CompMid; lbltotalComp.setText(

how to import a text file in netbeans? [duplicate]

三世轮回 提交于 2021-01-29 19:09:28
问题 This question already has answers here : Reading a .txt file using Scanner class in Java (12 answers) Closed 1 year ago . I have an assignment from my teacher i have make a serial program into a parallel with OMP.It's the Barnes-Hut one and its the first time i'm using netbeans. I have a text file with someone numbers and i gotta import it into the project so it can use the values the text file has.How can i import the example.txt into netbeans? I've tried this but it doesn't work File myFile

xdebug.remote_handler set in PHP.INI, but not showing in PHPinfo

只谈情不闲聊 提交于 2021-01-29 14:31:03
问题 I am trying to get Xbdebug to run with NetBeans, in order to debug some PHP code (I am sure that I had it working a few years back, then switched IDE & now want to switch back). When I try to debug, the status bar shows And, when it doesn't hit a breakpoint on line one of a simple echo('hello'); file, and I stop debugging, it shows Please note that I have XDEBUG_SESSION_START=netbeans-xdebug in my parameters, but I don't think that that is the problem (yet). Instead, look at the message above

Netbeans 8.2 - synchronise/upload/download missing

断了今生、忘了曾经 提交于 2021-01-29 10:31:47
问题 I am using NetBeans 8.2. I noticed that the remote synchronisation / download and upload entry is missing in the context menu suddenly. How it should look like: I already restarted netbeans. What can I do? 回答1: The issue is arising because you are comparing the context menu on the Files tab with the context menu on the Projects tab. I see the same thing for a PHP project. Projects tab (with context menu entries): Files tab (without context menu entries): I suspect that the menu entries are

ScenicView 8.7.0 does not load the opened JAVA FX application in it to inspect the elements

断了今生、忘了曾经 提交于 2021-01-29 09:40:55
问题 I have ScenicView 8.7.0 installed with JDK 8. I need to inspect the JAVA FX application which is running on Ubuntu 16.04(Hope Linux version is not the concern). ScenicView does find the opened JAVA FX application as per the following logs, but in UI of ScenicView, no application is getting displayed. ["Scanning for JavaFX applications" message displayed in ScenicView with endless spinner]. Any help appreciated. At ScenicView terminal logs I am getting following lines Platform running

javafx fxml program error(no main method)

痞子三分冷 提交于 2021-01-29 03:11:01
问题 i'm fairly new to javafx and fxml. I'm trying to teach myself! However, when I was creating a program for a simple login GUI I came into an issue when I finally tried to run my program. It told me there was no main method in my class and I'm unsure of how to fix it. Any ideas? My program creates a login screen and when you enter "test" for the username and password it'll take you to another scene. Here is my Login.java package com; import javafx.application.Application; import javafx.fxml

compile java source 1.7 for 1.6 with Maven and Netbeans

空扰寡人 提交于 2021-01-29 00:40:27
问题 I have a source code written for java 1.7. I would like to compile it for java 1.6. If I understood correctly, I need to use the options -source 1.7 -target 1.6 I am using Maven2 and Netbeans (8.0). So, I tried : <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <configuration> <source>1.7</source> <target>1.6</target> <compilerArguments> <bootclasspath>/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/rt.jar</bootclasspath> <