This discussion is archived
0 Replies Latest reply: Feb 2, 2013 1:03 PM by 988736 RSS

JavaFx2 Samples DataApp Build/Run Problems

988736 Newbie
Currently Being Moderated
Hi,

I tried to setup the javafx sample DataApp with Netbeans. According to the readme file I runned DataAppLoader. Unfortunatelly, during the setup of mysql database app, the script uses the authentication_field of the mysql.user table with a NULL value. I could solve this problem by creating the necessary schema manually and commenting out the relevant insert into user statement.

The problem:
After database creation, and data loads and build somewhy I got this error, I cannot resolve:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

I got Netbeans 7.2.1, JDK 1.7

I already tried -Xmx1024 or 2048... in Netbeans project properties -> Run -> VM Options: -Xmx1536m

I tried restarting the system... they didnt help. How could I run this appliaction?
Thank you


The whole log of DataAppLoader:
ant -f D:\\dev\\java\\javafx-samples-2.2.4\\src\\DataApp\\DataAppLoader run
Creating "dataapp" user and "APP" database...
Executing commands
5 of 5 SQL statements executed successfully
Creating tables and views...
Executing resource: D:\dev\java\javafx-samples-2.2.4\src\DataApp\DataAppLoader\create-database.sql
42 of 42 SQL statements executed successfully
Populating zip code table(this might take a little while)...
Executing resource: D:\dev\java\javafx-samples-2.2.4\src\DataApp\DataAppLoader\zip_code_inserts.sql
43191 of 43191 SQL statements executed successfully
init:
Deleting: D:\dev\java\javafx-samples-2.2.4\src\DataApp\DataAppLoader\build\built-jar.properties
deps-jar:
Updating property file: D:\dev\java\javafx-samples-2.2.4\src\DataApp\DataAppLoader\build\built-jar.properties
DataAppLibrary.init:
DataAppLibrary.deps-jar:
Updating property file: D:\dev\java\javafx-samples-2.2.4\src\DataApp\DataAppLoader\build\built-jar.properties
DataAppLibrary.compile:
Copy libraries to D:\dev\java\javafx-samples-2.2.4\src\DataApp\DataAppLibrary\dist\lib.
To run this application from the command line without Ant, try:
java -jar "D:\dev\java\javafx-samples-2.2.4\src\DataApp\DataAppLibrary\dist\DataAppLibrary.jar"
DataAppLibrary.jar:
compile:
run:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Java Result: 1
BUILD SUCCESSFUL (total time: 46 seconds)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points