NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

The J2SE Platform is not correctly set up

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
Oliver Rettig
Posted via mailing list.





PostPosted: Thu Oct 16, 2008 3:41 pm    Post subject: The J2SE Platform is not correctly set up Reply with quote

Hallo,

I have a very strange problem:

The error message if I try to build my netbeans module is

.../build.xml:26: The following error occurred while executing this line:
.../nbproject/build-impl.xml:622: The following error occurred while executing
this line:
.../nbproject/build-impl.xml:79: The J2SE Platform is not correctly set up.

Your active platform is: default_platform, but the corresponding
property "platforms.default_platform.home" is not found in the project's
properties files.
Either open the project in the IDE and setup the Platform with the same name
or add it manually.
For example like this:
ant -Duser.properties.file=<path_to_property_file> jar (where you put the
property "platforms.default_platform.home" in a .properties file)
or ant -Dplatforms.default_platform.home=<path_to_JDK_home> jar (where no
properties file is used)

It is appeard after a a copy of the sources from a laptop with netbeans 6.0
running on to my desktop with netbeans 6.1 running on.

In the properties windows of the modules the dialog to change the Java and the
Netbeans Platform is are gray lighted. So I can not make changes. I can see
that "JDK 1.6" is the default java platform. But I can not find this string
somewhere defined in the module nor in the corresponding suite.

There is no variable "platforms.default_platform.home" in the module and also
not it the corresponding suite. And this variable is also not set in the
modules which I can compile.

If I have a look in the global netbeans settings, there is a correctly
defined "Java 1.6" and it is also choosed in the suite the module corresponds
to.

Has anybody an idea what I can try to solve this strange problem?

best regards

Oliver Rettig
Back to top
Oliver Rettig
Posted via mailing list.





PostPosted: Fri Oct 17, 2008 7:16 am    Post subject: The J2SE Platform is not correctly set up Reply with quote

Hallo,

as a workaround I have put the property platforms.default_platform.home=<path
to the JDK> inside the netbeans user global properties file. This results in
that I can build the Netbeans modules but in the Netbeans modules properties
window the fields to change the JDK and the Netbeans Platform are still gray.

Any idea?

best regards
Oliver Rettig

Quote:
Hallo,

I have a very strange problem:

The error message if I try to build my netbeans module is

.../build.xml:26: The following error occurred while executing this line:
.../nbproject/build-impl.xml:622: The following error occurred while
executing this line:
.../nbproject/build-impl.xml:79: The J2SE Platform is not correctly set up.

Your active platform is: default_platform, but the corresponding
property "platforms.default_platform.home" is not found in the project's
properties files.
Either open the project in the IDE and setup the Platform with the same
name or add it manually.
For example like this:
ant -Duser.properties.file=<path_to_property_file> jar (where you put
the property "platforms.default_platform.home" in a .properties file)
or ant -Dplatforms.default_platform.home=<path_to_JDK_home> jar (where no
properties file is used)

It is appeard after a a copy of the sources from a laptop with netbeans 6.0
running on to my desktop with netbeans 6.1 running on.

In the properties windows of the modules the dialog to change the Java and
the Netbeans Platform is are gray lighted. So I can not make changes. I can
see that "JDK 1.6" is the default java platform. But I can not find this
string somewhere defined in the module nor in the corresponding suite.

There is no variable "platforms.default_platform.home" in the module and
also not it the corresponding suite. And this variable is also not set in
the modules which I can compile.

If I have a look in the global netbeans settings, there is a correctly
defined "Java 1.6" and it is also choosed in the suite the module
corresponds to.

Has anybody an idea what I can try to solve this strange problem?

best regards

Oliver Rettig
Back to top
Tonny Kohar
Posted via mailing list.





PostPosted: Mon Oct 20, 2008 4:51 am    Post subject: The J2SE Platform is not correctly set up Reply with quote

Hi,

On Fri, Oct 17, 2008 at 2:19 PM, Oliver Rettig <address-removed> wrote:
Quote:
Hallo,

as a workaround I have put the property platforms.default_platform.home=<path
to the JDK> inside the netbeans user global properties file. This results in
that I can build the Netbeans modules but in the Netbeans modules properties
window the fields to change the JDK and the Netbeans Platform are still gray.


Manually, this settings (java platform) is keep on the
[your-home-folder]/.netbeans/build.properties (not your project
folder, but your home)
Or check [netbeans-ide-dir]/etc/netbeans.conf find the entry
default_user_dir, that is the place where Nb store its settings

From GUI, goto Menu -Tools-Java Platform (define the java platform
here, it is for Global IDE Settings)
Also from GUI, right click the project, choose properties, set you
preferred java platform here as well (for Project Specific, the entry
must match the one of the value in Global IDE setting)

Cheers
Tonny Kohar
--
Citra FX Photo Effects
imagine, design, create ...
http://www.kiyut.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo