buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Odelya Holiday <ode...@alicanto.com>
Subject problem building with buildr RuntimeError : can't create Java VM
Date Wed, 01 Aug 2012 09:49:07 GMT
Hi!

I am trying for the first time to use buildr on windows 64 with JAVA JDK 6.33

To simply try the first building, I pointed my command line to the src
directory of the project and ran:

buildr compile --trace
And I get:


C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
596: Use RbConfig instead of obsolete and deprecated Config.
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require':
iconv will be deprecated in the future, use String#encode instead.
(in C:/mycompany/Engine, development)
** Invoke Engine (first_time)
** Execute Engine
** Invoke Engine
** Invoke compile (first_time)
** Execute compile
Compiling Engine
Compile needed because source file
C:/mycompany/Engine/src/main/java/com/mycompany/en
gine/controller/BaseCreationController.java has no corresponding
C:/mycompany/Eng
ine/target/classes/com/mycompany/engine/controller/BaseCreationController.class
** Invoke Engine:compile (first_time)
** Invoke Engine:resources (first_time)
** Execute Engine:resources
** Invoke C:/mycompany/Engine/src/main/java (first_time, not_needed)
Compile needed because source file
C:/mycompany/Engine/src/main/java/com/mycompany/en
gine/controller/BaseCreationController.java has no corresponding
C:/mycompany/Eng
ine/target/classes/com/mycompany/engine/controller/BaseCreationController.class
** Execute Engine:compile
mkdir -p C:/mycompany/Engine/target/classes
Compiling Engine into C:/mycompany/Engine/target/classes
javac -classpath C:/Program Files/Java/jdk1.6.0_33/lib/tools.jar -sourcepath C:/
mycompany/Engine/src/main/java -d C:/mycompany/Engine/target/classes
-nowarn -g C:
/mycompany/Engine/src/main/java/com/mycompany/engine/controller/BaseCreationControlle
r.java C:/mycompany/Engine/src/main/java/com/mycompany/engine/controller/BillingContr
oller.java C:/mycompany/Engine/src/main/java/com/mycompany/engine/controller/Campaign
Controller.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/controller/Con
troller.java C:/mycompany/Engine/src/main/java/com/mycompany/engine/controller/impl/B
illCreationController.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/con
troller/impl/CampaignControllerImpl.java
C:/mycompany/Engine/src/main/java/com/gr
roo/engine/controller/impl/FeedCreationController.java
C:/mycompany/Engine/src/ma
in/java/com/mycompany/engine/controller/impl/TaskControllerImpl.java
C:/mycompany/Eng
ine/src/main/java/com/mycompany/engine/controller/RuleController.java
C:/mycompany/En
gine/src/main/java/com/mycompany/engine/controller/TaskController.java
C:/mycompany/E
ngine/src/main/java/com/mycompany/engine/db/BillDB.java
C:/mycompany/Engine/src/main/
java/com/mycompany/engine/db/BusinessDB.java
C:/mycompany/Engine/src/main/java/com/gr
roo/engine/db/CampaignDB.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/
db/EngineGeneralDB.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/db/imp
l/HibernateBillDBImpl.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/db/
impl/HibernateBusinessDBImpl.java
C:/mycompany/Engine/src/main/java/com/mycompany/eng
ine/db/impl/HibernateCampaignDBImpl.java
C:/mycompany/Engine/src/main/java/com/gr
roo/engine/db/impl/HibernateEngineGeneralDBImpl.java
C:/mycompany/Engine/src/main
/java/com/mycompany/engine/db/impl/HibernateRuleDBImpl.java
C:/mycompany/Engine/src/m
ain/java/com/mycompany/engine/db/impl/HibernateTaskDBImpl.java
C:/mycompany/Engine/sr
c/main/java/com/mycompany/engine/db/RuleDB.java
C:/mycompany/Engine/src/main/java/com
/mycompany/engine/db/TaskDB.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/m
ain/EngineMain.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/manager/En
gineManager.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/manager/impl/
EngineManagerImpl.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/manager
/impl/EngineShutdownHook.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/
network/impl/NetworkPostCreatorImpl.java
C:/mycompany/Engine/src/main/java/com/gr
roo/engine/network/NetworkPostCreator.java
C:/mycompany/Engine/src/main/java/com/
mycompany/engine/ordering/TaskActionDateOrdering.java
C:/mycompany/Engine/src/main/ja
va/com/mycompany/engine/predicate/ActiveClientsPredicate.java
C:/mycompany/Engine/src
/main/java/com/mycompany/engine/predicate/BirthdayPredicate.java
C:/mycompany/Engine/
src/main/java/com/mycompany/engine/predicate/BusinessClientsPredicate.java
C:/alican
to/Engine/src/main/java/com/mycompany/engine/predicate/FinishedTaskPredicate.java
C:
/mycompany/Engine/src/main/java/com/mycompany/engine/predicate/MissedChannelsPredicat
e.java C:/mycompany/Engine/src/main/java/com/mycompany/engine/predicate/NewClientsPre
dicate.java C:/mycompany/Engine/src/main/java/com/mycompany/engine/predicate/Recently
InsertedClientsPredicate.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/
predicate/SettledBillTasksPredicate.java
C:/mycompany/Engine/src/main/java/com/gr
roo/engine/predicate/SuccessfulResultPredicate.java
C:/mycompany/Engine/src/main/
java/com/mycompany/engine/runner/impl/SequentialRunnerImpl.java
C:/mycompany/Engine/s
rc/main/java/com/mycompany/engine/runner/Runner.java
C:/mycompany/Engine/src/main/jav
a/com/mycompany/engine/sender/EmailSender.java
C:/mycompany/Engine/src/main/java/com/
mycompany/engine/sender/impl/EmailSenderImpl.java
C:/mycompany/Engine/src/main/java/c
om/mycompany/engine/sender/impl/RestNetworkPostSenderImpl.java
C:/mycompany/Engine/sr
c/main/java/com/mycompany/engine/sender/impl/RestNotificationSenderImpl.java
C:/alic
anto/Engine/src/main/java/com/mycompany/engine/sender/NetworkPostSender.java
C:/alic
anto/Engine/src/main/java/com/mycompany/engine/sender/NotificationSender.java
C:/ali
canto/Engine/src/main/java/com/mycompany/engine/service/BillService.java
C:/mycompany
/Engine/src/main/java/com/mycompany/engine/service/ChannelService.java
C:/mycompany/E
ngine/src/main/java/com/mycompany/engine/service/impl/channel/BaseDirectChannelServi
ce.java C:/mycompany/Engine/src/main/java/com/mycompany/engine/service/impl/channel/B
irthdayDirectChannelService.java
C:/mycompany/Engine/src/main/java/com/mycompany/engi
ne/service/impl/channel/NetworkChannelService.java
C:/mycompany/Engine/src/main/j
ava/com/mycompany/engine/service/impl/channel/NewChannelService.java
C:/mycompany/Eng
ine/src/main/java/com/mycompany/engine/service/impl/channel/NewClientsDirectChannelS
ervice.java C:/mycompany/Engine/src/main/java/com/mycompany/engine/service/impl/chann
el/OneTimeDirectChannelService.java
C:/mycompany/Engine/src/main/java/com/mycompany/e
ngine/service/impl/task/BaseTaskService.java
C:/mycompany/Engine/src/main/java/co
m/mycompany/engine/service/impl/task/EmailTaskService.java
C:/mycompany/Engine/src/ma
in/java/com/mycompany/engine/service/impl/task/GiftTaskService.java
C:/mycompany/Engi
ne/src/main/java/com/mycompany/engine/service/impl/task/NetworkPostTaskService.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/service/impl/task/PostCardTask
Service.java C:/mycompany/Engine/src/main/java/com/mycompany/engine/service/impl/task
/SMSTaskService.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/service/S
erviceFactory.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/service/Tas
kService.java C:/mycompany/Engine/src/main/java/com/mycompany/engine/time/impl/Settab
leTimeSourceImpl.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/time/imp
l/SystemTimeSourceImpl.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/ti
me/TimeSource.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/util/Applic
ationContextProvider.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/util
/CampaignContentPersonalizer.java
C:/mycompany/Engine/src/main/java/com/mycompany/eng
ine/util/EngineUtil.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/util/
ResourceUtil.java
C:/mycompany/Engine/src/main/java/com/mycompany/engine/util/TaskBat
ch.java
** Invoke C:/Users/Odelya/.m2/repository/org/apache/ant/ant/1.8.3/ant-1.8.3.jar
(first_time, not_needed)
** Invoke C:/Users/Odelya/.m2/repository/org/apache/ant/ant-launcher/1.8.3/ant-l
auncher-1.8.3.jar (first_time, not_needed)
** Invoke C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/java (firs
t_time, not_needed)
** Invoke C:/Program Files/Java/jdk1.6.0_33/lib/tools.jar (first_time, not_neede
d)
Buildr aborted!
RuntimeError : can't create Java VM
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/java/rjb.rb:114:in `
load'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/java/rjb.rb:114:in `
load'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/java/compiler.rb:61:
in `compile'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/compile.rb:257:
in `block in initialize'
C:/Ruby193/lib/ruby/1.9.1/rake/task.rb:203:in `call'
C:/Ruby193/lib/ruby/1.9.1/rake/task.rb:203:in `block in execute'
C:/Ruby193/lib/ruby/1.9.1/rake/task.rb:200:in `each'
C:/Ruby193/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
665:in `block in invoke_with_call_chain'
C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
651:in `invoke_with_call_chain'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
646:in `invoke'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/project.rb:322:
in `block (2 levels) in local_task'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/project.rb:347:
in `[]'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/project.rb:347:
in `block in local_projects'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/project.rb:347:
in `each'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/project.rb:347:
in `local_projects'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/project.rb:320:
in `block in local_task'
C:/Ruby193/lib/ruby/1.9.1/rake/task.rb:205:in `call'
C:/Ruby193/lib/ruby/1.9.1/rake/task.rb:205:in `block in execute'
C:/Ruby193/lib/ruby/1.9.1/rake/task.rb:200:in `each'
C:/Ruby193/lib/ruby/1.9.1/rake/task.rb:200:in `execute'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
665:in `block in invoke_with_call_chain'
C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
651:in `invoke_with_call_chain'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
646:in `invoke'
C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:116:in `invoke_task'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
238:in `block (2 levels) in top_level'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
238:in `each'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
238:in `block in top_level'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
526:in `standard_exception_handling'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
229:in `top_level'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
130:in `block in run'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
526:in `standard_exception_handling'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/lib/buildr/core/application.rb:
127:in `run'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/buildr-1.4.7/bin/buildr:19:in `<top (require
d)>'
C:/Ruby193/bin/buildr:23:in `load'
C:/Ruby193/bin/buildr:23:in `<main>'

As you can see, I get an exception:
Buildr aborted!
RuntimeError : can't create Java VM

JAVA_HOME points to the jdk folder, which has the include folder.

What is wrong?

-- 
Odelya

Mime
View raw message