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 154749 - Cannot run j2se project because of Ant misconfigured
Summary: Cannot run j2se project because of Ant misconfigured
Status: VERIFIED INVALID
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-05 14:11 UTC by Jaromir Uhrik
Modified: 2009-06-21 13:43 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot attached... (164.14 KB, image/png)
2008-12-05 14:13 UTC, Jaromir Uhrik
Details
Screenshot attached... (67.68 KB, image/png)
2008-12-05 14:22 UTC, Jaromir Uhrik
Details
attaching messages.log (27.83 KB, text/plain)
2008-12-05 14:32 UTC, Jaromir Uhrik
Details
thread dump while building j2se project on Mac OS X (9.93 KB, text/plain)
2008-12-05 15:12 UTC, Petr Chytil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2008-12-05 14:11:52 UTC
Product Version: NetBeans IDE Dev (Build 081204)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)

It is not possible to run j2se project - just created and typed System.out.println("hello"); to the main method of main
class. When I run the project it prints to the output that the Ant is misconfigured and the process is still working
(never ends) - see attached screenshot...
Comment 1 Jaromir Uhrik 2008-12-05 14:13:14 UTC
Created attachment 74602 [details]
Screenshot attached...
Comment 2 Jaromir Uhrik 2008-12-05 14:20:46 UTC
The Ant preferences have troubles as visible in the following screenshot...
Comment 3 Petr Dvorak 2008-12-05 14:21:43 UTC
It works for me. What modules ("Features") have you already installed in IDE, Jaro?

Product Version: NetBeans IDE Dev (Build 081204)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.27-10-generic running on i386; UTF-8; en_US (nb)
Comment 4 Jaromir Uhrik 2008-12-05 14:22:48 UTC
Created attachment 74606 [details]
Screenshot attached...
Comment 5 Jaromir Uhrik 2008-12-05 14:32:13 UTC
Created attachment 74609 [details]
attaching messages.log
Comment 6 Jaromir Uhrik 2008-12-05 14:35:19 UTC
joshis, I tried it with the clearly unzipped ide (and of course clear userdir) now. Then just created j2se project and
ran it. The same problem. So that I guess it is Mac specific.
Comment 7 Jaromir Uhrik 2008-12-05 15:08:35 UTC
pchytil confirmed the same behavior on Mac OS X so that changing the OS field of this issue accordingly.
Comment 8 Petr Chytil 2008-12-05 15:11:13 UTC
I am facing the same problems as juhrik. Attaching thread dump.

Product Version: NetBeans IDE Dev (Build 081204)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.5 running on i386; MacRoman; en_US (nb)
Userdir: /Users/petr/.netbeans/dev.erg
Comment 9 Petr Chytil 2008-12-05 15:12:37 UTC
Created attachment 74614 [details]
thread dump while building j2se project on Mac OS X
Comment 10 Jaroslav Tulach 2008-12-05 15:26:44 UTC
Opps. This seems to be caused by the fact that the build runs on JDK 1.6 - e.g. in some cases it produces bytecode not 
executable on JDK 1.5. It is my mistake that I have not pointed that out. The failure will be gone as soon as we 
recompile on 1.5, so this is not real bug, just problem of my build server. I am sorry for wasting your time this way.

Comment 11 Jaroslav Tulach 2008-12-05 15:48:30 UTC
Anyway I've fixed this particular problem. The compilation of debugger.jpda.ant was wrong:

core-main # 04e511f8d02f

But still, there may be other symptoms of the "compiled with 1.6, running on 1.5" problem. Better to run on 1.6.

PS: I've put the fix to core-main, as it is a general bugfix, unrelated to ergonomics IDE. It will take some time 
(about one day) to propagate to ergonomics repository.
Comment 12 Quality Engineering 2008-12-07 05:27:51 UTC
Integrated into 'main-golden', will be available in build *200812070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/04e511f8d02f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #154749: Not only we need source=1.5, but also the resulting class file shall be executable on 1.5. Adding target=1.5 as well.
Comment 13 Jaromir Uhrik 2008-12-11 09:18:44 UTC
Marking as verified.
Comment 14 Jaromir Uhrik 2008-12-18 06:08:47 UTC
Works fine in the following build:
Product Version: NetBeans IDE Dev (Build 200812150750)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133
System: Mac OS X version 10.5.6 running on i386; MacRoman; en_US (nb)