RE: Compile error
"Guijarro, Julio" <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
Hal is correct.
Use javac -source 1.4 or if you are using ant to compile, make sure that
your javac task has something like this: compiler="javac1.4"
source="1.4"
Ex.
<javac srcdir="${src}" destdir="${build}" debug="${debugmode}"
compiler="javac1.4" source="1.4">
Julio G
> -----Original Message-----
> From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-
> developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Hal
> Sent: 06 September 2005 15:34
> To: Haavard Bjerke; smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> Cc: [email protected]
> Subject: RE: [Smartfrog-developer] Compile error
>
> Either you're not compiling with a 1.4 compiler, or you're not using
the
> 1.4+ language features (I think it's -source 1.4).
>
> > -----Original Message-----
> > From: smartfrog-developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-
> > developer-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Haavard Bjerke
> > Sent: Tuesday, September 06, 2005 6:53 AM
> > To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> > Cc: [email protected]
> > Subject: [Smartfrog-developer] Compile error
> >
> > I'm just getting started making my own component for setting up Xen
VMs
> > with
> > Smartfrog. I've followed the tutorial paper, and I get this compile
> error:
> >
> >
>
/opt/SmartFrog.3.06.016rc2/src/org/smartfrog/sfcore/logging/LogFactory.j
av
> > a:191:
> > warning: as of release 1.4, assert is a keyword, and may not be used
as
> an
> > identifier
> > assert log!=null;
> > ^
> >
>
/opt/SmartFrog.3.06.016rc2/src/org/smartfrog/sfcore/logging/LogFactory.j
av
> > a:191:
> > ';' expected
> > assert log!=null;
> > ^
> >
>
/opt/SmartFrog.3.06.016rc2/src/org/smartfrog/sfcore/logging/LogFactory.j
av
> > a:191:
> > cannot resolve symbol
> > symbol : class assert
> > location: class org.smartfrog.sfcore.logging.LogFactory
> > assert log!=null;
> > ^
> > ...
> >
> >
> > The very simple source code is attached. How can I solve this
problem?
> >
> > Thanks,
> > Havard
> >
>
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle
> Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing
& QA
> Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
> _______________________________________________
> Smartfrog-developer mailing list
> Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf