I am just starting with sql2java, i.e. I joined a company which is using it.
If I run the ant build from the command line it is going through fine.
When I am trying same build from IDE (I am using Netbeans 6.1) I am getting the following error:
java.io.FileNotFoundException: C:\Program Files\NetBeans\6.1\src\config\sql2java.xml (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
...
sql2java.xml lives in the project ${basedir} but somehow sql2java is looking for it in Netbeans home. I am sure that it can be easily resolved with setting of some property but I don't know which and I cannot finding anything resembling documentation.
Can someone tells me where to look or, better, which property to set.
Thanks a lot.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You may be right telling that the project is lacking documentation. It started from something really simple to grow further being rather complex to deal with without any help.
I did not have time to try it in every IDE (well, I am very lazy since it would be enough to try eclipse and NetBeans;-). I am only maintaining the original philosophy of sql2java being an ant-driven tool.
The property you are looking for has been added two weeks ago in the source code of the 2.6.7 release I was about to publish. You may download the latest source code and build sql2java on your own. Or just take a few hours of patience to get it packed.
The property is named sql2java.xml and can be set to any absolute file path or to a file name relative to either the src or src/config directories.
Hope this helps,
Alain
PS: Keep tuned since Daan is preparing the 3.0 version with a bunch of nice new features for writing and configuring the new template packs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am just starting with sql2java, i.e. I joined a company which is using it.
If I run the ant build from the command line it is going through fine.
When I am trying same build from IDE (I am using Netbeans 6.1) I am getting the following error:
java.io.FileNotFoundException: C:\Program Files\NetBeans\6.1\src\config\sql2java.xml (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
...
sql2java.xml lives in the project ${basedir} but somehow sql2java is looking for it in Netbeans home. I am sure that it can be easily resolved with setting of some property but I don't know which and I cannot finding anything resembling documentation.
Can someone tells me where to look or, better, which property to set.
Thanks a lot.
Hi Gary,
You may be right telling that the project is lacking documentation. It started from something really simple to grow further being rather complex to deal with without any help.
I did not have time to try it in every IDE (well, I am very lazy since it would be enough to try eclipse and NetBeans;-). I am only maintaining the original philosophy of sql2java being an ant-driven tool.
The property you are looking for has been added two weeks ago in the source code of the 2.6.7 release I was about to publish. You may download the latest source code and build sql2java on your own. Or just take a few hours of patience to get it packed.
The property is named sql2java.xml and can be set to any absolute file path or to a file name relative to either the src or src/config directories.
Hope this helps,
Alain
PS: Keep tuned since Daan is preparing the 3.0 version with a bunch of nice new features for writing and configuring the new template packs.