netbeans-7

Include (bundle) a JRE within the NetBeans Installer?

落爺英雄遲暮 提交于 2019-12-23 01:19:39
问题 I developed a Java Swing application on the NetBeans Platform (RCP). I want to include the Windows JRE with the installer that NetBeans generates in case a PC does not have JRE installed, but I do not know how to do this. I have tried to follow the following instructions but failed (I find that the instructions assume that you know absolutely everything on JDK and JRE, for example I would get the message 'pack200' is not recognized as an internal or external command...it would seem that some

Netbeans 7.1.2 - Unable to add glassfish server 3.1.2

。_饼干妹妹 提交于 2019-12-22 09:41:40
问题 I downloaded glassfish server from http://glassfish.java.net/downloads/3.1.2.2-final.html and installed in separately. Now I am trying to add this in Netbeans. But it does not work. I did the below steps Open Netbeans as administrator Open Tools -> Servers Click "Add Server" button Choose GlassFish Server 3+ Specify a name as "GlassFish" Choose the installation folder location - C:\glassfish3 Now it displays the error "Not a valid Glassfish server Installation". I am new to Netbeans &

Netbeans - Open remote folder/new project

[亡魂溺海] 提交于 2019-12-22 05:52:11
问题 I have been using Netbeans for several months now and like it a lot. I am trying to enable a way to create a project which accesses live files on my server to make changes. When I create a project using a remote source, it starts downloading all the server files to my computer. This would be just fine, except for the fact that (a) the server has a few gigs of files on it and (b) there are two of us that will be making changes on the server. In the past, I have worked with IDEs that just open

NetBeans 7 dependency graph (unused class/method)

那年仲夏 提交于 2019-12-21 22:39:29
问题 Is there a way to create a dependency graph for classes and/or methods of Java SE projects within NetBeans 7? I have a very large project and I'd like to clean up unused classes or methods (and a dependency graph would also be useful). The "center" of the graph would be the main() entry point of main classes I invoke, and adjacencies would be method calls (including some Swing framework methods to classes which override the Java Swing framework). 回答1: That's weird, when I right click on a

org.hibernate.HibernateException: get is not valid without active transaction

冷暖自知 提交于 2019-12-21 09:05:15
问题 I'm new to Hibernate. Automatically created hibernate.cfg.xml (Netbeans wizard) Automatically created HibernateUtil.java Automatically created POJO class with annotations Trying to get object from database but getting error: Exception in thread "pool-1-thread-1" org.hibernate.HibernateException: get is not valid without active transaction at org.hibernate.context.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:297) getting an object: Session

nginx php-fpm xdebug netbeans can start only one debug session

為{幸葍}努か 提交于 2019-12-21 07:38:28
问题 In the past, I've used apache+mod_php +xdebug+netbeans for development my website (server is my local machine, running Debian Squeeze), with pleasure - xdebug worked just as expected, debug sessions could be started and stopped any time, when I need it. But, when I moved to nginx+php_fpm +xdebug+netbeans I've experienced some problems with debugging. My debug session could be very long (much more than 30 seconds) and it seems, that nginx couldn't wait so long, it shows "504 Gateway timeout

nginx php-fpm xdebug netbeans can start only one debug session

99封情书 提交于 2019-12-21 07:38:01
问题 In the past, I've used apache+mod_php +xdebug+netbeans for development my website (server is my local machine, running Debian Squeeze), with pleasure - xdebug worked just as expected, debug sessions could be started and stopped any time, when I need it. But, when I moved to nginx+php_fpm +xdebug+netbeans I've experienced some problems with debugging. My debug session could be very long (much more than 30 seconds) and it seems, that nginx couldn't wait so long, it shows "504 Gateway timeout

RESTful web service: java.lang.NullPointerException service.AbstractFacade.findAll

喜你入骨 提交于 2019-12-21 05:48:10
问题 I created a simple XML web service using NetBeans 7's "RESTful Web Services from Database..." wizard. At this point, I want to publish a list of users from the associated mySQL database. When I attempt to access the service via its URL (http://localhost:8080/database/resources/users), I get an error that reads "java.lang.NullPointerException". The stack trace: service.AbstractFacade.findAll(AbstractFacade.java:41) service.UserFacade.findAll(UserFacade.java:51) sun.reflect

How to run database program outside the Netbeans IDE?

谁都会走 提交于 2019-12-20 02:41:52
问题 I am really new to database and this is my first program in database using java Netbeans 7.1 --- It is summer on our country now and I am a student with the course I.T. Our next subject on programming is about database and since there's no class I spend my time learning database for preparation for the next school semester and I refer to this site as my guide for the first database program I currently making now. http://www.homeandlearn.co.uk/java/databases_and_java_forms.html I did

How do you turn off method autocompletion on open parenthesis in NetBeans 7.0?

耗尽温柔 提交于 2019-12-19 21:51:10
问题 I guess I'm a quick typer because if I type the characters ArrayList myArray; myArray.size( NetBeans auto complete puts the following in my editor ArrayList myArray; myArray.add(someVar); Why? Because the auto completion doesn't have time to find and filter all the method names by the time I type '('. So it takes the the first one from the list it has created and filtered so far: "add". Grrrr!!! I want to keep method name completion, but I don't want it to happen on '('. I haven't been able