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 184393 - "Cannot find java 1.5" when running project generated by Maven netbeans platform application archetype 1.2.1
Summary: "Cannot find java 1.5" when running project generated by Maven netbeans platf...
Status: RESOLVED DUPLICATE of bug 179561
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P1 normal (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-17 18:59 UTC by carlo.salinari
Modified: 2010-04-20 12:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description carlo.salinari 2010-04-17 18:59:43 UTC
steps to reproduce:
- new project / Maven project
- Maven netbeans platform application archetype 1.2.1
- finish
- run the app

you get:
- message window "Cannot find java 1.5 or higher"

expected:
- the sample app running

same issue was reported on the mailing-list in december 2009:
http://netbeans.org/projects/platform/lists/dev/archive/2009-12/message/237

JAVA_HOME is correct, all double-checked and verified.

java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)

I'm considering porting an ant/swing app to maven/nb-platform. This is a showstopper for me.
Comment 1 Antonin Nebuzelsky 2010-04-19 10:14:40 UTC
Fixed in 6.9. Closing as a dup of issue 179561.

Please, confirm by checking in a daily build. You  can download at

http://bits.netbeans.org/download/trunk/nightly/latest/

*** This bug has been marked as a duplicate of bug 179561 ***
Comment 2 carlo.salinari 2010-04-19 22:22:38 UTC
(In reply to comment #1)
> Fixed in 6.9. Closing as a dup of issue 179561.
> 
> Please, confirm by checking in a daily build. You  can download at
> 
> http://bits.netbeans.org/download/trunk/nightly/latest/
> 
> *** This bug has been marked as a duplicate of bug 179561 ***

The problem persists if I do the following (Build 201002152000):
- new project Maven -> Maven project
- Archetypes from local repository
- Maven Netbeans Platform Application Archetype (1.2.1)
- finish
- build main project
- run nb-platfrom based application

I also get a new warning about maven not finding the branding.nbm artifact.

The other similar targets:
- new project -> Maven -> Maven NetBeans Platform
and
- new project Maven -> netbeans-platform-app-archetype (1.3 SNAPSHOT)

work fine, but I don't have them listed in nb 6.8, which is the version I use.


Product Version: NetBeans IDE Dev (Build 201002152000)
Java: 1.6.0_18; Java HotSpot(TM) 64-Bit Server VM 16.0-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 3 Antonin Nebuzelsky 2010-04-20 08:11:05 UTC
> The problem persists if I do the following (Build 201002152000):

Indeed. You have a build from Feb/15. The bug 179561 was fixed on Apr/3.
Comment 4 carlo.salinari 2010-04-20 11:46:11 UTC
sorry, I accidentally downloaded m1 instead of latest-build.

There'isn a "Maven Netbeans Platform Application Archetype (1.2.1)" anymore in the choice list in (Build 201004200200), so I assume it has been superseded by the "Maven NetBeans Application" template (which works fine). In this case, the issue is solved for me. Thanks.
Comment 5 David Simonek 2010-04-20 12:36:29 UTC
Indeed, it is exactly as you described. Thanks.