netbeans-7

How to use the SQL RANDOM() function in a Netbeans JavaDB

柔情痞子 提交于 2019-12-10 11:10:42
问题 I need to do a SQL call in a small local JavaDB in Netbeans 7.2 to pull a single random row from the database. SELECT * FROM JAVA2.FORTUNES ORDER BY RANDOM() So far, I've got it to work using the RANDOM() function, but I'm having trouble getting LIMIT 1 to work, it returns a syntax error. I know that every database has a different way to do this, and I can't figure out how it works specifically for this JavaDB in Netbeans (I got it to work in a separate Oracle DB with different syntax). Is

Error configuring JBoss 7 with Netbeans7

随声附和 提交于 2019-12-10 10:41:34
问题 I want to configure Jboss 7.1.1 final in Netbeans 7.0.1. But I am getting an error "Provide a JBoss application server 6,5,4 Location". How can I add the latest JBoss AS? Please help me. Thanks in advance. 回答1: Unfortunately, NetBeans doesn't support JBoss AS 7 at least as of NetBeans 7.2. A patch adding support has existed for some time, but was unfortunately not merged for the 7.2 release. There seems to be relatively little interest in AS7 in the NetBeans community. I eventually gave up on

A possible bug with Netbeans, it's executing the old code I changed

无人久伴 提交于 2019-12-10 09:40:26
问题 I have been coding in a project with over 500 class. One of the classes is responsible for retreiving data from the disk. For some reasons I changed the code, but still, when I run the code, it executes the old code of the class. When I debug, the debugger moves over empty lines which means it still runs over the old code that I have changed. I cleaned and built the project several times. I hand deleted all the .class files and built the project again and nothing changed. What drives me crazy

Why do Netbeans, Aptana Studio and Komodo Edit all not save in UTF-8?

痴心易碎 提交于 2019-12-08 20:44:28
I'm getting back into development and want to find a good editor for HTML5/JQuery. Being able to save files in UTF-8 is important. However, although I set my project in NetBeans 7.0 to encode in UTF-8, when I create a file in the project, then look at it in Notepad++, the file is encoded in ANSI and I have to manually set the encoding to UTF-8: In Aptana Studio 3 I set the workspace to UTF-8 encoding, and my project inherits from that, but when I create a file in the project and look at it in Notepad++, it is encoded in ANSI and I have to change the encoding manually to UTF-8: So I tried

How can I setup compass on netbeans 7.4

最后都变了- 提交于 2019-12-08 20:35:17
问题 There is a feature in netbeans 7.4 that allows scss and less to auto compile on save. I have managed to set up scss to compile but I am having problems compiling scss files using compass. Here is an example error: Syntax error: File to import not found or unreadable: compass/css3. Load path: /www/site on line 2 of /www/site/app/View/Themed/Admin/webroot/scss/core.scss Currently the compass is imported like so: @import "compass/css3"; Thanks 回答1: In NetBeans, click the File > Project

What is causing this Java “Cannot find symbol” error?

穿精又带淫゛_ 提交于 2019-12-08 18:45:08
问题 I'm modifying inherited code and keep getting a weird "cannot find symbol" error which is throwing me off. //======= Error ========= Compiling 1 source file to /Users/Inprimus/Projects/Workspace/Soft/build/web/WEB-INF/classes /Users/Inprimus/Projects/Workspace/Soft/WebContent/WEB-INF/classes/fr/service/CarPeer.java:49: cannot find symbol symbol : method addCarToCompany(java.lang.Long,fr.model.company.Car) location: class fr.dao.CompanyDAO cmpDAO.addCarToCompany(idCompany,car); ^ 1 error Car

The Java DB location is not set correctly - netbeans

ぐ巨炮叔叔 提交于 2019-12-08 18:35:12
问题 I have checked the services tab to the left and there isn't a javaDB in the database option, there's nothing in there? i'm using jsp's and beans, is there something i'm doing wrong?. i'm getting the message The Java DB location is not set correctly when i run my jsp for the first time. 回答1: You have to make sure that the paths to the Java DB are actually available! To do this please do the following: Click on "Windows" - "Services" Expand "Databases" Select "Java DB" Do a right-click and

(use -source 7 or higher to enable strings in switch) error;Netbeans 7.1.2

梦想的初衷 提交于 2019-12-08 18:14:17
问题 I am using JDK 7 and Netbeans IDE 7.1.2. Going through Using string in switch Was trying to compile that sample example in my IDE but I am getting this error. switch (month.toLowerCase()) { (use -source 7 or higher to enable strings in switch) 1 error Need your help. Thanks 回答1: You need to set the source for your project, right click > properties > source > set here 回答2: In general on "-source 7": use JDK7 (For example if you are normally using JDK 6 and just want to use JDK 7 for a special

Set the correct username and password with the “manager-script” role in the Tomcat

随声附和 提交于 2019-12-08 16:25:01
问题 I know this has been asked many before. But I have already placed my user to role "manager-script". I keep getting this when trying to deploy: Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager-script" role in the Tomcat customizer in the Server Manager. See the server log for details. My D:\DEV\apache-tomcat-7.0.47\conf\tomcat-users.xml : <?xml version="1.0" encoding="UTF-8"?> <tomcat-users> <role rolename="manager