netbeans

org.hibernate.hql.ast.QuerySyntaxException: Product is not mapped [from Product]

My infuriating problem of the day is this: I'm trying to use Hibernate to access a database. After a number of false starts, I gave up on my specific project and elected to use the sample database and wizards that shipped with Netbeans 6.9. I fired up Netbeans, started the sample Derby database, and followed the instructions in this tu...

How to Build NetBeans Project into split JARs? (one with the mainclass, others as libraries)

I have a project which builds into a single JAR in Netbeans. However, to implement a basic auto update feature, I would like to move at least one of the packages (the HTTPClient package) to a separate JAR, as well as build a new JAR with a second Main Class in a different package. That way both the current Mainclass and the Updater Mai...

NetBeans PHP Code Completion for Standard Functions

I have started to use NetBeans 6.9.1 for developing PHP projects. Although it does provide code completion to certain extent, but it's by no means complete. For example, commonly used functions such as implode,explode are not in the list for code completion. Also, it would have been convenient to have code completion for objects made fro...

Java - How to find out which Jar file an import comes from?

The project I'm working on has about 10 jar files as libraries. At the top of one of the files there's an import statement like: import jpe.nar.crat.maker.ObjectMakerFactory; Is there a way to tell which Jar file it comes from? (I'm using Netbeans if that matters.) ...

Java / NetBeans - How to Step into a jar file?

I have a Java project in Netbeans with several jar files listed in its library section of properties. I found a bug in one of the jar files and I want to step into it while debugging. Here's what I've done so far: I've found the source code for the jar file. I opened that source as a project in NetBeans (it comes as a NetBeans projec...

NetBeans Terminal Loads bashrc, but

I'm using the NetBeans integrated terminal. It enters the .bashrc file, but aliases do not seem to work. Also, I tried an echo statement to ensure that it was being executed, e.g. echo 'hello' and the terminal hangs. ...

How to setup a project in Netbeans for EJB development using OpenEJB?

We want to evaluate OpenEJB for our application. We have already performed some tests and now we need to start a pilot project. While I've seen how to use OpenEJB for testing purposes (mainly for JUnit tests), I have not seen how to set up an EJB 3.X project inside Netbeans for deployment in OpenEJB. The way we did for testing purposes...

How to resolve missing server problem in netbeans installed in Debian?

I have installed netbeans in Debian and no server is listed in "Available java EE compatible servers" when trying to resolve. Also, cannot "Add server" by giving "platform folder location". By default, it appears "/home/raj/SUNWappserver". The error "provide valid application server location" not disappears whatever is typed in "platform...

How to add a jnilib in classpath using Netbeans 6.6?

How to add a jnilib file in classpath using Netbeans 6.8? ...

64Bit Edition for Netbeans and Glassfish

Why Netbeans or Glassfish doesn't have 64bit Edition Version to improve performance? Of course these both applications use JDK 64bit but why there is no any 64bit edition for improving their internal processing? I think eclipse published in both 32 and 64 bit, isn't? Regards ...

django-like CRUD generation with JAVA EE6?

Hey! I just checked out the Netbeans tutorial for auto-generation of CRUD pages. Not bad, but is there any way to generate CRUD pages with Java EE that look a bit more production like? For example like the admin interface generated by Django or Spring ROO. Of course basic features like searching or alphabetic ordering should be included...

How do I set -DmyConfig=whatever when running a java program through "run file" in Netbeans?

I'm using netbeans 6.7.1 and I have a maven web project (war file). I'd like to profile part of the project by running a java class with a main method. I need to specify a -DconfigDir=whatever when running this program. How do you specify this in netbeans? In eclipse I simply edit the run configurations. I've only seen where you can s...

How to intercept keyboard strokes going to Java Swing JTextField?

The JTextField is a calculator display initialized to zero and it is bad form to display a decimal number with a leading 0 like 0123 or 00123. The numeric buttons (0..9) in a NetBeans Swing JFrame use append() [below] to drop the leading zeros, but the user may prefer the keyboard to a mouse, and non-numeric characters also need to be ha...

Sun Java System App Server on Netbeans 6.9.1

In adding a server on Netbeans 6.9.1 when SJSAPS 8.2 is chosen I receive an error. Something to do with the location. Can I use SJSAPS in Netbeans 6.9.1? Or have to use Java EE 5 which comes with Glassfish v2. 6.9.1 also has a choice for Glassfish v2.x but I get the same error. Reading Sun's tutorial on "Servlet Technology." See lin...

Does Netbeans support vs-doc syntax for providing Javascript intellisense?

I've been documenting my Javascript with v-doc comments, as this works really nicely with Visual Studio. I'm considering giving NetBeans a go, as it apparently has very nice intellisense/code completion. Will NetBeans support vs-doc comments? If not, then by what means does NetBeans provide intellisense for Javascript files? ...

Write an application in Netbeans using Java to manage a simple DVD hire store

Write an application in Netbeans to manage a simple DVD hire store (note: this is simply an exercise and is in not intended to accurately model a DVD stores operation exactly – for instance there is no money involved). This program simply records and outputs some details of DVDs, customers and staff. The program will be able to process...

Where to place clientaccesspolicy.xml in Netbeans Webservice project?

Hi, I develop a Webservice using Netbeans 6.9 and I use an embedded glassfish server to deploy my Webservice (*http://some_domain/project_name/ws_for_sl4*). On a different server there is deployed a Silverlight 4 client, which should have accesss to the Webservice. I know that I have to have clientaccesspolicy.xml (under *http://some_...

Activating text editing macros on Netbeans

This question was asked on Super User but I didn't get any response so I moved it here...I believe it is relevant and important... I've been using Netbeans on Mac OS X for sometime it has some really good features but it doesn't support most of the macros and that sucks. I'm not only talking about complicated emacs macros but even the mo...

Netbeans Platform application installer

Hi! New version of NetBeans IDE 6.9 comes with option to generate installer for Netbeans Platform application. I am wondering if it is possible to modify it. I want to create installer with bundled Java, which is installed if user doesn't have java already. ...

Find Usage/Declarations in a directory Netbeans 6.9 Javascript

How can I setup Netbeans to search all .js files in the same directory for declarations and/or usage? I am just getting my feet wet with Netbeans 6.9 for the first time. As far as I understand, one can't make a pure Javascript project ( http://stackoverflow.com/questions/2926379/pure-javascript-projects-in-netbeans ), thus I set up a du...