- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
a problem with Changeset [18567]: using ANT_OPTS as jvm arguments for scalacfork
Mon, 2009-08-24, 20:29
Hi!
Where is my mistake? After Changeset [18567] I have:
$ ant -version
Apache Ant version 1.7.1 compiled on June 24 2009
$ echo $ANT_HOME
/usr/share/ant
$ echo $ANT_OPTS
-Xms1024M -Xmx2048M -Xss2M -XX:MaxPermSize=256M
$ ant dist
Buildfile: build.xml
dist:
strap.clean:
pack.clean:
libs.clean:
quick.clean:
locker.clean:
[delete] Deleting directory /wrk/dev/scala/SVN/scala/build/locker
docs.clean:
init:
[echo] Build number is '2.8.0.r18567-b20090824232506'
[echo] Built 24 August 2009, 23:25:06 from revision 18567 with Java HotSpot(TM) 64-Bit Server VM
1.6.0_15
locker.start:
locker.pre-lib:
locker.lib:
[mkdir] Created dir: /wrk/dev/scala/SVN/scala/build/locker/classes/library
[javac] Compiling 12 source files to /wrk/dev/scala/SVN/scala/build/locker/classes/library
[scalacfork] Compiling 1 file to /wrk/dev/scala/SVN/scala/build/locker/classes/library
[scalacfork] Exception in thread "main" java.lang.NoClassDefFoundError: ${env/ANT_OPTS}
[scalacfork] Caused by: java.lang.ClassNotFoundException: ${env.ANT_OPTS}
[scalacfork] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[scalacfork] at java.security.AccessController.doPrivileged(Native Method)
[scalacfork] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[scalacfork] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[scalacfork] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[scalacfork] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[scalacfork] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
[scalacfork] Could not find the main class: ${env.ANT_OPTS}. Program will exit.
BUILD FAILED
/wrk/dev/scala/SVN/scala/build.xml:38: The following error occurred while executing this line:
/wrk/dev/scala/SVN/scala/build.xml:232: java.lang.RuntimeException: Compilation failed because of an
internal compiler error; see the error output for details.
Total time: 2 seconds
On Monday 24 August 2009 23:29:36 Andrew Gaydenko wrote:
> Exception in thread "main" java.lang.NoClassDefFoundError: ${env/ANT_OPTS}
Sorry for noise - it's my fault: have upgraded bash from 3.x to 4.x - last one
is more strict wrt obligatory of env vars exporting.
Andrew