Re: [Lift] How to create a Lift web application with sbt

41 views
Skip to first unread message

Naftoli Gugenheim

unread,
Apr 18, 2013, 2:53:41 AM4/18/13
to liftweb


On Thu, Apr 18, 2013 at 2:19 AM, Moha Med <mhmd....@gmail.com> wrote:
Hi all,

I am a beginner in Lift framework, I'm trying to create a simple lift application, I could make one with Maven, but I have not been able to do it with sbt?!
in addition, when I try to run a sample application provided with the lift software (lift-lift_25_sbt-d2b99e1\scala_29\lift_blank) I've got this error:

E:\eclipseJ2EE\lift_blank25>java -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -Xmx1024M -Xss2M -jar "E:\eclipseJ2EE\lift_blank25\\sbt-launch-0.12.1.jar"

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 think the problem is with Windows 32 (because when I run it in an other PC with windows 64, it works!!?)

I'm using Lift 2.5-RC, java version "1.7.0_09", Windows 32,

So, my question is what is the best (and simplest) way to create a Lift application with SBT under windows 32 ?!

Thanks

--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Diego Medina

unread,
Apr 18, 2013, 10:57:07 AM4/18/13
to Lift
A side note, the error you got is about not having enough free memory
on your computer, the memory settings are those -Xmx values
--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://fmpwizard.telegr.am

Peter Robinett

unread,
Apr 18, 2013, 11:01:41 AM4/18/13
to lif...@googlegroups.com
Specifically, I believe the default memory values are higher on the 64bit version of Java...

Peter

Peter Robinett

unread,
Apr 18, 2013, 11:02:42 AM4/18/13
to lif...@googlegroups.com
The starter zip is good, but if you'd like to truly create a project from scratch there is a recipe in the Lift Cookbook.

Peter

Moha Med

unread,
Apr 18, 2013, 6:02:12 PM4/18/13
to lif...@googlegroups.com
You're right, the error occured because I have not enough free memory! so when I change -Xmx value from 1024M to 512M it works great :D
Thanks
Reply all
Reply to author
Forward
0 new messages