netbeans6.5

No Such Method Error when creating JUnit test

强颜欢笑 提交于 2019-11-29 12:34:10
问题 I've tried figuring out this problem for the last 2 days with no luck. I'm simply trying to create an annotation based JUnit test using the spring framework along with hibernate. My IDE is netbeans 6.5 and I'm using hibernate 3, spring 2.5.5 and JUnit 4.4. Here's the error I'm getting: Testcase: testFindContacts(com.mycontacts.data.dao.MyContactHibernateDaoTransactionTest): Caused an ERROR Failed to load ApplicationContext java.lang.IllegalStateException: Failed to load ApplicationContext at

How to link opened file with project tree in NetBeans

半城伤御伤魂 提交于 2019-11-29 01:42:54
问题 I feel dumb asking this question, but I can't find solution to this myself. When I open several files in editor and switch between them, I have problem finding currently opened file in project or files tree. I used Eclipse before and every time I changed a tab with file, the project tree set focus for the same file. Is there a way to do something like this in NetBeans? 回答1: from http://forums.netbeans.org/topic3732.html : You can do this from the navigate menu, I believe. There are entries

Where can I set the JRE/JDK which is used to run Netbeans besides the command line?

荒凉一梦 提交于 2019-11-28 09:44:30
First of all, I know about the command line parameter, but I don't want to use it because I want to learn, not just get it done, so... Where can I set the JRE/JDK which is used to run Netbeans? A little background: I installed JDK 1.6_10 (The system is Windows Vista Business 64) I installed Netbeans 6.5 After a few weeks I uninstalled Netbeans 6.5 (some problems which I hope to solve by a reinstall) I also uninstalled JDK 1.6_10 and installed 1.6_11 instead. I reinstalled Netbeans 6.5 Now I cannot start Netbeans because it insists of using the old JDK. (Trying to use the default version doesn

How to map oracle timestamp to appropriate java type in hibernate?

对着背影说爱祢 提交于 2019-11-28 08:27:41
问题 I am new to hibernate and I am stumped. In my database I have tables that have a columns of TIMESTAMP(6) . I am using Netbeans 6.5.1 and when I generate the hibernate.reveng.xml , hbm.xml files , and pojo files it sets the columns to be of type Serializable . This is not what I expected, nor what I want them to be. I found this post on the hibernate forums saying to place: <sql-type jdbc-type="OTHER" hibernate-type="java.sql.Timestamp" /> in the hibernate.reveng.xml file. In Netbeans you are

How can I prevent PermGen space errors in Netbeans?

懵懂的女人 提交于 2019-11-28 04:09:31
Every 15-30 minutes Netbeans shows a " java.lang.OutOfMemoryError: PermGen space ". From what I learned from Google this seems to be related to classloader leaks or memory leaks in general. Unfortunately all suggestions I found were related to application servers and I have no idea to adapted them to Netbeans. (I'm not even sure it's the same problem) Is it a problem in my application? How can I find the source? Łukasz Bownik It is because of constant class loading. Java stores class byte code and all the constants (e.g. string constants) in permanent heap that is not garbage collected by

JDK was not found on the computer for NetBeans 6.5

一个人想着一个人 提交于 2019-11-27 07:39:04
I got the following message when I open the NetBeans. I have got the JDK installed, and set the bin directory in the environment. What I could do next to avoid this problem? Btw, I am using Windows 7 64 bit. william007 I use the following steps to solve the problem: First, Make sure “Run this program in compatibality mode for: Windows XP (Service Pack 3)” and “Run this program as an administrator” are ENABLED. Run in Command Prompt C:\Users\{yourusernamehere}\Documents\Downloads\netbeans-6.5-ml-windows.exe –-javahome "C:\Program Files (x86)\Java\jdk1.6.0_18" Do the following steps to resolve

How can I prevent PermGen space errors in Netbeans?

荒凉一梦 提交于 2019-11-27 05:16:53
问题 Every 15-30 minutes Netbeans shows a " java.lang.OutOfMemoryError: PermGen space ". From what I learned from Google this seems to be related to classloader leaks or memory leaks in general. Unfortunately all suggestions I found were related to application servers and I have no idea to adapted them to Netbeans. (I'm not even sure it's the same problem) Is it a problem in my application? How can I find the source? 回答1: It is because of constant class loading. Java stores class byte code and all

Where can I set the JRE/JDK which is used to run Netbeans besides the command line?

你离开我真会死。 提交于 2019-11-27 03:09:56
问题 First of all, I know about the command line parameter, but I don't want to use it because I want to learn, not just get it done, so... Where can I set the JRE/JDK which is used to run Netbeans? A little background: I installed JDK 1.6_10 (The system is Windows Vista Business 64) I installed Netbeans 6.5 After a few weeks I uninstalled Netbeans 6.5 (some problems which I hope to solve by a reinstall) I also uninstalled JDK 1.6_10 and installed 1.6_11 instead. I reinstalled Netbeans 6.5 Now I

JDK was not found on the computer for NetBeans 6.5

前提是你 提交于 2019-11-26 13:17:43
问题 I got the following message when I open the NetBeans. I have got the JDK installed, and set the bin directory in the environment. What I could do next to avoid this problem? Btw, I am using Windows 7 64 bit. 回答1: Do the following steps to resolve the problem Ensure that the JDK is already installed. If the installer is on a CD, Copy the EXE file for the Netbeans 6.5.1 installer onto your hard disk. Note the location of the installer. Open a Command Prompt running as administrator: Go to Start