netbeans-7

The document has no pages. Jasper Report

谁说我不能喝 提交于 2019-12-01 07:52:40
问题 I'm having a problem searching for a solution to this issue. My codes works fine after I run it. It suppose to display the data on my sql database to my jtable, and there's a button that will trigger to display the jasper report but there's a little bit problem, it always shows me the message 'The document has no pages.' why is that? can someone help me with my issue here? What did I do wrong? here is my codes: package stringmanipulation; import java.sql.*; import java.util.Vector; import

Split text in J2ME

…衆ロ難τιáo~ 提交于 2019-12-01 07:31:33
I'm creating an application that is supposed to read text from mySql database using a get method. Once it gets data elements from the database as string, it's supposed to split the string and create a list using the string however the split() method does not seem to work here. J2ME says cannot find method split() - what should I do? My code is below: /* assuming the string (String dataString) has already been read from the database and equals one,two three i.e String dataString = "one,two,three"; */ String dataArray[]; String delimiter = ","; dataArray = dataString.split(delimiter); //continue

Proper Way to Document Class in Netbeans PHP

泄露秘密 提交于 2019-12-01 05:29:49
For reasons of ease of maintenance AND IDE class auto-completion and member hinting, I've used PHPDoc in my project. Given this example class: class my_class { public $id; public $name; public $number; public function __construct() { //Do something } public function Rename($name) { $this->name = $name; } } I would prefer to document all properties ( $id , $name and $number ) with the class documentation itself, which is above the class declaration, and then place documentation for methods (if necessary) above each method. Here is what I ultimately want my class to look like: /** * Represents

Split text in J2ME

一世执手 提交于 2019-12-01 05:12:07
问题 I'm creating an application that is supposed to read text from mySql database using a get method. Once it gets data elements from the database as string, it's supposed to split the string and create a list using the string however the split() method does not seem to work here. J2ME says cannot find method split() - what should I do? My code is below: /* assuming the string (String dataString) has already been read from the database and equals one,two three i.e String dataString = "one,two

netbeans 7.0 shows error in Struts2 select tag .. netbeans version 6.9 does not show this error [duplicate]

浪子不回头ぞ 提交于 2019-11-30 20:43:13
This question already has an answer here: Struts 2 #{} giving compilation error in Netbeans 7.3 1 answer <s:select name="PenaltyPercentage" id="PenaltyPercentageId" list="#{'7.5%':'7.5%', '15.0%':'15.0%'}" <!-- shows error in this line --> headerKey="" headerValue="Please Select" emptyOption="false"> </s:select> the error messages reads as below Encountered ":" at line 1, column 9. Was expecting one of: "}" ... "." ... "]" ... ">" ... "<" ... Netbeans 7 uses JSP EL 2.1 which uses the # character now. For me (Netbeans IDE 7.0 RC1) it compiles fine and works although the line is flagged with an

Access to Tomcat server has not been authorized

ぐ巨炮叔叔 提交于 2019-11-30 17:36:07
I have used glassfish server in netbeans, now I changed to tomcat and when I run my web application that I have created in glassfish gives me the error : 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. I have added a role with name "manager-script" in conf/tomcat-user.xml but where is my Server Manager? I did'nt find it. Please help me. thanks... Add below lines in tomcat-users.xml . <user username="admin" password="password" roles="tomcat,role1,manager-script

Netbeans 7.4 doesn't recognise PHP short tag

流过昼夜 提交于 2019-11-30 17:03:00
I recently updated Netbeans to 7.4 version and I actually get plenty of "errors": all the code included in short php tag is not parsed and considered almost like comment (I guess). Does anyone knows how to fix that? thanks Ctrl-1 to open your Project window Right-click on your project and click on Properties Enable Allow short tags (<?) Maybe you want to uncheck this option. Option >> Editor >> Uncheck Giving Space After Short Php Tag Settings ScreenShot 来源: https://stackoverflow.com/questions/20741108/netbeans-7-4-doesnt-recognise-php-short-tag

Netbeans 7.4 doesn't recognise PHP short tag

旧时模样 提交于 2019-11-30 16:24:37
问题 I recently updated Netbeans to 7.4 version and I actually get plenty of "errors": all the code included in short php tag is not parsed and considered almost like comment (I guess). Does anyone knows how to fix that? thanks 回答1: Ctrl-1 to open your Project window Right-click on your project and click on Properties Enable Allow short tags (<?) Press Ok 回答2: Maybe you want to uncheck this option. Option >> Editor >> Uncheck Giving Space After Short Php Tag Settings ScreenShot 来源: https:/

java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/PersistenceException

ⅰ亾dé卋堺 提交于 2019-11-30 15:42:55
I'm new to JavaEE. I created enterprise application project in NETBEANS 7.2.1 with glassfish server 3.1. When I try to clean and build I get following error An annotation processor threw an uncaught exception. Consult the following stack trace for details. java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/persistence/PersistenceException at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:791) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net

Netbeans Export to Jar, include all library files

China☆狼群 提交于 2019-11-30 12:35:07
What I really need is an equivalent of this from Eclipse with Netbeans: I want to Extract required libraries into generated JAR so I can distribute it without the need of including the lib folder everywhere it goes. Here's the original question. I'm trying to build a jar out of Netbeans that will package all the library files inside it. I've heard it's possible with Eclipse by choosing Export. With Netbeans, if I "Clean and Build" it will create an executable jar in the dist folder, but all the libraries it depends on are in a folder called lib. I need it all to be in one jar file. I'm