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 17212 - IDE Won't Work After Creating Project That Uses JDK 1.4 Beta 2
Summary: IDE Won't Work After Creating Project That Uses JDK 1.4 Beta 2
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-01 18:25 UTC by ccocco
Modified: 2008-12-22 23:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Attached "ide.log" file as requested. (14.00 KB, text/plain)
2001-11-12 12:48 UTC, ccocco
Details
ide.log from c:\netbeans_userdir\system directory. (14.07 KB, text/plain)
2001-11-12 15:24 UTC, ccocco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ccocco 2001-11-01 18:25:47 UTC
I've installed NetBeans 3.3 Beta 2 twice and both times ran into a problem 
restarting the IDE after initially bringing it up and creating a project file 
that using JDK 1.4 Beta 2.  The IDE will no longer launch after it has been 
closed and restarted again and displays the following error during startup:
 
runide.exe - No Disk
 
"There is no disk in the drive.  Please insert a disk into drive 
\Device\Harddisk0\DR0."
 
Selecting either the Cancel or Continue button brings down the application.  At 
that point, I can no longer use the IDE...
Comment 1 Jan Pokorsky 2001-11-01 19:01:11 UTC
Charles,
error messages you mentioned seem to be related to your operation 
system not Netbeans. It is not clear to me if you are running ide with 
jdk1.3 or 1.4. And what do you mean by "creating a project file that 
using JDK 1.4 Beta 2"?
Using jdk1.3 everything works well?
Thanks for more details.
Comment 2 _ ttran 2001-11-02 06:34:53 UTC
Hmm, it's clearly a machine's problem, not IDE's
Comment 3 ccocco 2001-11-02 11:57:04 UTC
This issue has not been resolved.  Explanation was that it was 
related to my environment.  No other information was given to resolve 
issue.  I have only 1 JVM installed on my PC, JDK 1.4 Beta 2.  After 
installing the product, creating a project, and configuring the IDE 
and compiler settings, NetBeans will not restart again and reports 
the error above.  If this is related to my environment, please 
explain in detail how to resolve it.  If it doesn't work with this 
version of the JDK, please notify me of that.  Also, it is not clear 
whether the assigned person who closed this out actually tried this 
version of the JDK.  Thanks...
Comment 4 Jan Pokorsky 2001-11-02 12:37:34 UTC
The IDE should work using that version JDK. It seems you have created 
your nb userdir on a device which is not present in your system any 
more. Do you use any removable devices (zip drive, ...)?

Try to run IDE as 'runide.exe -userdir new_location'.

If problems remain attach your ide.log file please. The issue is 
related to your environment so priority decreased.
Comment 5 ccocco 2001-11-02 20:14:21 UTC
I have upgraded this bug to a P1 as I cannot use the application any 
longer after initially bringing it up, creating a new project, 
closing it, and attempting to restart it again.  If I set the -
userdir option to some arbitrary directory on my pc, it will display 
okay but then the next time I close it down and try to restart it 
again, I still get the following error:

runide.exe - No Disk
 
"There is no disk in the drive.  Please insert a disk into drive 
\Device\Harddisk0\DR0."

I only have 1 JVM installed on my PC, JDK 1.4 Beta 2 and I do not 
have any removable media on my system.
Comment 6 _ ttran 2001-11-02 21:00:44 UTC
Charles, please bring this issue up on nbusers, someone there can help
you and us debug the problem.  What you described is very strange, we
cannot reproduce it and cannot even guess what can be the cause.

Another experiment:  put a freshly formatted floppy in your floppy
drive a:.  Run the IDE with

   runide.exe -userdir a:\nbuser

Don't customize to much, you'd run out of space on the floppy.
Report back to us if it works.
Comment 7 Jan Pokorsky 2001-11-05 16:16:26 UTC
Charles can you have a look into windows registery for 
"HKEY_CURRENT_USER\Software\netbeans.org\NetBeans IDE\{3.3 or 
Dev}\UserDir" value? Thanks
Comment 8 Jan Zajicek 2001-11-06 17:48:29 UTC
Answer to Trung's comments from Charles:

Hi, I tried your suggestion of running the IDE with -userdir set to
a:\nbuser, using an empty formatted floppy, and the application hung and
never came up...


Comment 9 Jan Zajicek 2001-11-06 17:50:27 UTC
Answer to Honza's comments from Charles:

Hi, I did not find the values for the keys listed below in the
registry.  I
did a search for the key "UserDir" and found several values for it:
"c:\netbeans" and "c:\netbeans\projects".  I'm not sure if that is what
you're looking for or not but these values are the ones I've tried
specifying in the -userdir parm. when starting up NetBeans...

Charlie Cocchiaro

Comment 10 Jan Pokorsky 2001-11-07 14:27:14 UTC
Hi Charlie,
we are not able to reproduce the bug on any platform. I would suggest 
following:
Run ide from scratch. It means:
a) install netbeans 3.3 beta3 to other folder than c:\netbeans (your 
old instalation) e.g c:\netbeans3.3_beta3
b) run ide from command prompt as "runide -userdir 
path_to_empty_userdir". Choose other than install dir e.g. 
c:\nbusrs\nb33b3

Now write down step by step what you did to achieve error messages. 
Attach these messages and your ide.log file.
Please do not reply by email but through Issuezilla form. Otherwise 
your message can be missed.

Other answers to you previous emails:
Using param -userdir should ignore values stored in the windows 
registery.
You can set up your default project or create new one as you want. 
There are no constraints which project you change.
If you find out key userdir in win registery and select it you shoud 
see full path to this key in the aplication's status bar.

Thanks for your collaboration
Comment 11 _ ttran 2001-11-11 20:36:45 UTC
Charles, can you please provide us with the information Jan Pokorsky
was asking for?  Thanks
Comment 12 ccocco 2001-11-12 12:48:10 UTC
Created attachment 3360 [details]
Attached "ide.log" file as requested.
Comment 13 ccocco 2001-11-12 12:52:59 UTC
Steps to reproduce problem:

1. Install NetBeans on drive c:
2. Invoke and choose MDI option
3. Create a new project
4. Add .java files to project that exist in a ClearCase view on a 
network drive (UNIX server)
5. Set target for Compiling/External Execution to different directory 
on same network drive
6. Close application and restart
7. Previously reported error occurs and you cannot run the 
application any longer
Comment 14 Jan Pokorsky 2001-11-12 14:27:02 UTC
Charles can you follow instructions how to run ide from scratch as 
was mentioned above please? From ide.log you attached I see you still 
run old instalation with old userdir (c:\netbeans).

To ensure the installer does not use previous userdir you can also 
delete 'netbeans.org' key from your win. registery.

When you run new installation choose userdir different from 
installdir.
Thanks
Comment 15 ccocco 2001-11-12 14:40:53 UTC
I have already followed the instructions suggested below for setting 
the -userdir to a different directory and the same results occurred.  
I also tried setting it to a blank floppy as suggested below with the 
same results.  FYI: The Project Settings item I referred to in my 
last comment for redirecting the .class files to a different 
directory was incorrect, it should have been Compiler Types/External 
Compilation/Target, although this may be coincidental and have 
nothing to do with the actual problem.  I will uninstall NetBeans and 
do this one more time and followup with another comment.
Comment 16 Jan Pokorsky 2001-11-12 15:19:50 UTC
Please attach your ide.log again.

If problems remain you could try to install jdk1.3.1_01 and check out 
to reproduce them (runide -jdkhome path_to_jdk1.3).

I do not see any way how java compiler settings could prevent ide from 
start up. Did you try to restart ide immediately after installation?
Comment 17 ccocco 2001-11-12 15:24:05 UTC
Created attachment 3362 [details]
ide.log from c:\netbeans_userdir\system directory.
Comment 18 ccocco 2001-11-12 15:25:14 UTC
I uninstalled NetBeans and reinstaled (verison 3.3 Beta 3) and the 
same problem has occurred.  Here are the exact steps to reproduce it:

1. Download NetBeans 3.3 Beta 3 from the netbeans.org web site.
2. Install it in the c:\netbeans directory.
3. Set the desktop Shortcut/Target to C:\netbeans\bin\runidew.exe -
userdir c:\netbeans_userdir after creating this directory.
4. Run NetBeans and select Window Mode/Full Screen Mode (MDI).
5. Create a new project
6. Mount several directories on network drive under Clearcase view
7. Choose Tools/Options/Building/Compiler Types/External 
Compilation/Target and select the mounted directory where the .class 
files are to be redirected (same clearcase drive but a different 
directory).
8. Add existing .java files to project
9. Select Build All and compile all files.
10. Execute after selecting class with main method.
11. Close application and restart.  The following error occurs and 
the application can no longer be run:

runide.exe - No Disk

There is no disk in the drive.  Please insert a disk into drive 
\Device\Harddisk0\DR0.

The ide.log file from the c:\netbeans_userdir\system directory has 
been attached.
Comment 19 _ ttran 2001-11-16 12:10:30 UTC
I've looked into the ide.log you attached and see that you used jdk
1.4 beta2.  Please try the latest stable version of the JDK 1.3.1_01,
you can download it from java.sun.com website
Comment 20 ccocco 2001-11-16 12:20:05 UTC
With respect to your suggestion to trying it with JDK 1.3.1_01, this 
is not an option for me.  My product is being shipped with JDK 1.4.
Comment 21 _ hair 2001-11-17 01:17:40 UTC
I'm not getting the disk error, but a few times with NetBeans3.3 and
JDK1.4beta3 i've got NetBeans to hang while trying to load the
project. One workaround is to delete the project.last from the
netbeans system folder. NetBeans then should start up. Once inside
NetBeans through the Project Manager, open the project, the common
problem for me is some exceptions to do with serialisation of the
Filesystems involved in that project. 

<<I'm waiting for this to happen again so i can get the a better
report to file a bug with. Although i did a search through issuezilla
and there seems a few bugs on similar situations to this. Should i be
looking at any particular one?>>
Comment 22 _ ttran 2001-11-19 08:47:33 UTC
To Michael Wever: your problem is definitely a different one.  If it
happens again please file a separate bug report.  Thanks
Comment 23 _ ttran 2001-11-19 08:59:22 UTC
I am lowering this bug priority to P2.  Reasons:

- it happens only to one user, nobody else is able to reproduce it

- from the bug description it is questionable if it's truly a bug in
the IDE or in the JDK or in the user's environment.  The IDE is
written in Java, and java code by itself cannot cause this error.  At
most it can reveal a bug elsewhere which we may or may not be able to
find a workaround for.

By setting prio to P2 I want to say that although this is a bug we
want to resolve but it's not a showstopper for the IDE and the
majority of its users.

Notes to Charles Cocchiaro:  this is a hard bug.  The developers
cannot reproduce it, nor guess the reasons why it can happen (other
than blame your computer).  We need your help otherwise it won't be
fixed.  Please

- try the latest JDK 1.4 beta3
- try the latest stable version of the JDK, 1.3.1_01

We want to narrow down the problem to find out where the problem lies.  
Without your help we'll very likely have to mark this bug as WONTFIX
Comment 24 Jan Pokorsky 2001-11-19 10:52:03 UTC
Reassigned to Trung.
Comment 25 ccocco 2001-11-19 19:12:58 UTC
Well, I've already responded to this bug report 9x for this issue so 
please don't threaten to close it at this point.  But that's up to 
you, it's your product.  I will continue to try your suggestions and 
supply you with information when I have a chance to do so.  I've been 
fairly prompt in reponses so far.  As for the suggestion below, I 
will try JDK 1.4 Beta 3 when I have a chance.  Thanks...
Comment 26 ccocco 2001-11-20 18:26:27 UTC
I have uninstalled JDK 1.4 Beta 2 and installed JDK 1.4 Beta 3.  I 
deleted the project.last file from the netbeans system folder pointed 
to at the location specified by the -userdir parameter.  The program 
shortcut points to a separate directory (c:\netbeans_userdir) than 
the installation directory (c:\netbeans).  Upon initial invocation, I 
re-instated my project.  After closing the application and restarting 
again, the same error message occurred and the application cannot be 
run any longer.

FYI: I have installed Forte for Java 3.0 on the same hard drive, 
using the same environment (JDK 1.4 Beta 3) and it works fine.  It 
previously worked fine with Beta 2 as well.  I installed this after 
initially encountering the problem with NetBeans and never had a 
problem using it.
Comment 27 Petr Hrebejk 2001-11-21 18:54:32 UTC
I wonder how far the second startup of NetBeans goes before the
error message is shown. Does it wrtite the Info into console or
does it die immediately after infoking the runide.exe?

If the second case is what happens, please try to start NetBeans with
the old batch file: [nbhome]\bin\unsupported\runide_nt.bat and let us 
know the results.

BTW does the same think happen if you mount some standard network
drive without the Clearcase?
Comment 28 Jesse Glick 2001-11-23 16:43:36 UTC
Charles by the way: you can certainly *develop* apps for JDK 1.4 while
using 1.3.1_01 to run NetBeans, if that is helpful. It is just a
matter of properly configuring your compiler types, executors,
debuggers, Javadoc, whatever you use. The online help should cover it.
Comment 29 Jan Chalupa 2001-11-27 11:49:12 UTC
Target milestone -> 3.3.1.
Comment 30 Jan Chalupa 2001-11-27 11:52:39 UTC
Target milestone -> 3.3.1.
Comment 31 _ ttran 2001-11-29 20:34:58 UTC
Charles, any new news?  Without additional information I doubt there
is anything we can do with this problem.
Comment 32 _ ttran 2001-12-03 16:11:46 UTC
not enough information to fix the bug
Comment 33 Quality Engineering 2003-07-01 16:04:56 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 34 Quality Engineering 2003-07-01 16:20:55 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.