This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 135552 - Getting java.io.FileNotFoundException while running test target
Summary: Getting java.io.FileNotFoundException while running test target
Status: RESOLVED WORKSFORME
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker with 1 vote (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-21 20:38 UTC by radhika2
Modified: 2008-09-10 16:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
to run a test (245.59 KB, image/jpeg)
2008-06-12 09:58 UTC, rickqin
Details
Error report from JUnit (311.51 KB, image/jpeg)
2008-06-12 10:14 UTC, rickqin
Details
error output contents and my build-impl.xml file of the project. (11.33 KB, application/octet-stream)
2008-06-12 10:31 UTC, rickqin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description radhika2 2008-05-21 20:38:21 UTC
to reproduce right click on build.xml -> run target . Gives the following error:
java.lang.NoClassDefFoundError: and
Caused by: java.lang.ClassNotFoundException: and
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread "main"
java.io.FileNotFoundException: C:\Documents and Settings\My directory\My
Documents\NetBeansProjects\trunk\platform\mytest\junitvmwatcher319211358.properties (The system cannot find the file
specified)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(FileInputStream.java:106)
   at java.io.FileReader.<init>(FileReader.java:55) 

Moving the project to another directory solved the issue.
Comment 1 Jiri Prox 2008-05-22 09:47:32 UTC
What type of project do you use?
If it's a freeform project can you provide build.xml?
Comment 2 rickqin 2008-06-10 10:12:54 UTC
I have the same question too.
I checked out project from CVS that the project was created and modified by NitroX(Eclipse 3.1). When I run test in 
order to initial some data to DB, the error happens.
There are three JDKs in my platform(WinXP sp2), 1.6.0_06, 1.5.0_10, 1.4.2_13. The project works base on JDK1.4 and 
J2EE1.4.
em, i'm not sure if it was concerned that OS reports a error of Java.exe before the question question appears.
sorry, my poor english. I expect our experts to fix it up asap.
thx.
Comment 3 Jiri Prox 2008-06-11 10:16:36 UTC
rickqin: can you provide more info about the error you've got - screen shots, log etc... 
thank you
Comment 4 rickqin 2008-06-12 09:58:26 UTC
Created attachment 62733 [details]
to run a test
Comment 5 rickqin 2008-06-12 10:14:03 UTC
Created attachment 62735 [details]
Error report from JUnit
Comment 6 rickqin 2008-06-12 10:31:21 UTC
Created attachment 62737 [details]
error output contents and my build-impl.xml file of the project.
Comment 7 Jana Maleckova 2008-08-08 13:29:03 UTC
I have found similar problem, reported in this issue 125547. Does it your case as well - mixed ant version ? 

http://mail-archives.apache.org/mod_mbox/ant-dev/200612.mbox/%3Cen4hco$li5$1%40sea%2Egmane%2Eorg%3E
Comment 8 Jana Maleckova 2008-09-10 16:07:27 UTC
no additional info provided. I will mark this issue as worksforme but if this issue appears again, don't hesitate and
reopen it with required info.