Bug 214018 Ant Test Target Doesn't Work On Jdk7 For Mac
- Bug 214018 Ant Test Target Doesn't Work On Jdk7 For Mac Free
- Bug 214018 Ant Test Target Doesn't Work On Jdk7 For Mac 2017
Number of entries JDK 6 JDK 7 65536 zip. zip64 zip.
is a workaround for the original zip format that that allows some versions of Java 6 to support larger assembly jars. The Scala libraries we depend on have added a large number of classes which bumped us over the limit.
This causes the Java 7 packaging to not work with Java 6. We can probably go back under the limit by clearing out some accidental inclusion of FastUtil, but eventually we'll go over again. The real answer is to force people to build with JDK 6 if they want to run Spark on JRE 6. I've found that if I just unpack and re-pack the jar (using `jar`) it always works. $ cd assembly/target/scala-2.10/ $ /usr/lib/jvm/java-1.6.0-openjdk-amd64/bin/java -cp./spark-assembly-1.0.0-SNAPSHOT-hadoop1.0.4.jar org.apache.spark.ui.UIWorkloadGenerator # fails $ jar xvf spark-assembly-1.0.0-SNAPSHOT-hadoop1.0.4.jar $ jar cvf spark-assembly-1.0.0-SNAPSHOT-hadoop1.0.4.jar.
$ /usr/lib/jvm/java-1.6.0-openjdk-amd64/bin/java -cp./spark-assembly-1.0.0-SNAPSHOT-hadoop1.0.4.jar org.apache.spark.ui.UIWorkloadGenerator # succeeds I also noticed something of note. The Breeze package contains single directories that have huge numbers of files in them (e.g. 2000+ class files in one directory). It's possible we are hitting some weird bugs/corner cases with compatibility of the internal storage format of the jar itself.

I narrowed this down specifically to the inclusion of the breeze library. Just adding breeze to an older (unaffected) build triggered the issue. I ran a git bisection and this appeared after the MLLib sparse vector patch was merged.
Hello Everyone, I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVAHOME does not point to the JDK. It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception).
I already set all of my environment variables to /opt/jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK! And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from). So, does any one know how can I solve this problem? Is there a configuration file in ANT that we need to set up! I'm stuck there!!
I'm running the ant 1.7.1. Cole, Derek E So, I searched the internet for days trying to find out how to do this, and never could find a straight answer. If you or anyone else has a better way to do this, let me know, but I found two ways to make this work. The first way is to use the AntClassLoader API. I set up a Boolean true, a null path, and used AntClassLoader ACL = new AntClassLoader(antproject, path, true); Which says to use the system classloader, and anything additional in the path (which I didn't put anything it).
This seems at May 14, 2009 at 1:47 pm. So, I searched the internet for days trying to find out how to do this, and never could find a straight answer. If you or anyone else has a better way to do this, let me know, but I found two ways to make this work. The first way is to use the AntClassLoader API. I set up a Boolean true, a null path, and used AntClassLoader ACL = new AntClassLoader(antproject, path, true); Which says to use the system classloader, and anything additional in the path (which I didn't put anything it).
This seems to have worked. The next idea is to set the external compiler property to true.
Hope this helps Derek -Original Message- From: David Nemer Sent: Thursday, May 14, 2009 8:15 AM To: Ant Users List Subject: Java in JDK but ANT can't find it! Hello Everyone, I am running ANT programmatically in JAVA.
So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVAHOME does not point to the JDK. It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception). I already set all of my environment variables to /opt/jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK!
And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from). So, does any one know how can I solve this problem? Is there a configuration file in ANT that we need to set up! I'm stuck there!! I'm running the ant 1.7.1.
On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone, I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVAHOME does not point to the JDK.
It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception). I already set all of my environment variables to /opt/jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK! And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from). So, does any one know how can I solve this problem? Is there a configuration file in ANT that we need to set up! I'm stuck there!!
I'm running the ant 1.7.1. Cheers, - David Nemer Sent from Saarbrucken, SL, Germany - To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org. Cole, Derek E When I had this problem, I KNOW that JAVAHOME was set correctly. I still ran into the problem. The OP here also said JAVAHOME was set correctly. There is some missing step here that prevents the ant Project instance from knowing which Java to use.Original Message- From: Ashley Williams Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it!
It looks like you are pointing to the jre not the jdk. Try repointing the JAVAHOME environment at May 14, 2009 at 2:29 pm. When I had this problem, I KNOW that JAVAHOME was set correctly. I still ran into the problem. The OP here also said JAVAHOME was set correctly. There is some missing step here that prevents the ant Project instance from knowing which Java to use.Original Message- From: Ashley Williams Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it!
It looks like you are pointing to the jre not the jdk. Try repointing the JAVAHOME environment variable to the jdk directory instead. On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone, I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVAHOME does not point to the JDK. It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception).
I already set all of my environment variables to /opt/jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK! And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from).
So, does any one know how can I solve this problem? Is there a configuration file in ANT that we need to set up! I'm stuck there!!
I'm running the ant 1.7.1. Cheers, - David Nemer Sent from Saarbrucken, SL, Germany - To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org - To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org. On Thu, May 14, 2009 at 4:28 PM, Cole, Derek E wrote: When I had this problem, I KNOW that JAVAHOME was set correctly. I still ran into the problem. The OP here also said JAVAHOME was set correctly.
There is some missing step here that prevents the ant Project instance from knowing which Java to use.Original Message- From: Ashley Williams Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! It looks like you are pointing to the jre not the jdk. Try repointing the JAVAHOME environment variable to the jdk directory instead. On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone, I am running ANT programmatically in JAVA.
So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVAHOME does not point to the JDK. It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception).
I already set all of my environment variables to /opt/jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK! And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from). So, does any one know how can I solve this problem? Is there a configuration file in ANT that we need to set up! I'm stuck there!! I'm running the ant 1.7.1.
Cheers, - David Nemer Sent from Saarbrucken, SL, Germany - To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org - To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org. On 14 May 2009, at 15:28, Cole, Derek E wrote: When I had this problem, I KNOW that JAVAHOME was set correctly. I still ran into the problem. The OP here also said JAVAHOME was set correctly.
There is some missing step here that prevents the ant Project instance from knowing which Java to use.Original Message- From: Ashley Williams Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! It looks like you are pointing to the jre not the jdk. Try repointing the JAVAHOME environment variable to the jdk directory instead. On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone, I am running ANT programmatically in JAVA.
So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVAHOME does not point to the JDK. It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception).
I already set all of my environment variables to /opt/jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK! And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from).
So, does any one know how can I solve this problem? Is there a configuration file in ANT that we need to set up! I'm stuck there!! I'm running the ant 1.7.1. Still ran into the problem. The OP here also said JAVAHOME was set correctly. There is some missing step here that prevents the ant Project instance from knowing which Java to use.Original Message- From: Ashley Williams Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it!
It looks like you are pointing to the jre not the jdk. Try repointing the JAVAHOME environment variable to the jdk directory instead, On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone. I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVAHOME does not point to the JDK.
It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception). I already set all of my environment variables to /opt/jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK! And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from). So, does any one know how can I solve this problem?
Bug 214018 Ant Test Target Doesn't Work On Jdk7 For Mac Free
Is there a configuration file in ANT that we need to set up! I'm stuck there!! I'm running the ant 1.7.1. Still ran into the problem. The OP here also said JAVAHOME was set correctly.
There is some missing step here that prevents the ant Project instance from knowing which Java to use.Original Message- From: Ashley Williams Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! It looks like you are pointing to the jre not the jdk. Try repointing the JAVAHOME environment variable to the jdk directory instead, On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone. I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML.
I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVAHOME does not point to the JDK.
It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception). I already set all of my environment variables to /opt/jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK! And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from). So, does any one know how can I solve this problem? Is there a configuration file in ANT that we need to set up!
I'm stuck there!! I'm running the ant 1.7.1.
Still ran into the problem. The OP here also said JAVAHOME was set correctly.
There is some missing step here that prevents the ant Project instance from knowing which Java to use.Original Message- From: Ashley Williams Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! It looks like you are pointing to the jre not the jdk. Try repointing the JAVAHOME environment variable to the jdk directory instead, On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone.

I am running ANT programmatically in JAVA. So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVAHOME does not point to the JDK. It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception). I already set all of my environment variables to /opt/jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK!
And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from). So, does any one know how can I solve this problem? Is there a configuration file in ANT that we need to set up! I'm stuck there!! I'm running the ant 1.7.1. Ashley Williams Hi David, Yeah sorry to sound so belligerent!
It's just that this definitely works on my own system with the same version of ant and I often get tripped up by my own carefully crafted batch files. So I'm just trying to establish what is certain and what is not.
I've just checked with the source code and found this: From CompilerAdapterFactory.java: throw new BuildException('Unable to find a javac ' + 'compiler; n' + MODERNCOMPILER + ' is not on the ' + 'classpath. N' + 'Perhaps JAVAHOME does at May 14, 2009 at 3:10 pm.
Still ran into the problem. The OP here also said JAVAHOME was set correctly. There is some missing step here that prevents the ant Project instance from knowing which Java to use.Original Message- From: Ashley Williams Sent: Thursday, May 14, 2009 9:56 AM To: Ant Users List Subject: Re: Java in JDK but ANT can't find it! It looks like you are pointing to the jre not the jdk.
Try repointing the JAVAHOME environment variable to the jdk directory instead, On 14 May 2009, at 13:15, David Nemer wrote: Hello Everyone. I am running ANT programmatically in JAVA.
So, my task is to build the BUILD.XML. I'm able to do so, but it throws an exception saying: /scratch2/nemer/test/xfire/build.xml:5: The following error occurred while executing this line: /scratch2/nemer/test/xfire/build-common.xml:81: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVAHOME does not point to the JDK. It is currently set to '/opt/jdk1.6.006/jre' But in the end it says: BUILD SUCCESSFUL (but it still throws that exception). I already set all of my environment variables to /opt/ jdk1.6.006/ (JAVAHOME and also in PATH), which is a JDK!
And even on the error message it says that the java is set to /opt/jdk1.6.006/jre (which is a JDK, I don't know where it gets the jre from). So, does any one know how can I solve this problem? Is there a configuration file in ANT that we need to set up! I'm stuck there!! I'm running the ant 1.7.1.
David Nemer Hey Guys, thank you all for your help, I'm answering the questions from Ashley, Steve and Kevin, some answers are huge due to the compilation message ANT provides. Just a reminder, I'm running ANT in a Linux Server, my overall goal is to download a version from a repository, build the version, and report to a mySql database whether it built or not, if not, mention the reason. All that in JAVA.
Ashley, I'm running my stuff in a Linux server. 2. Steve: is this a package-manager installation. Hey Guys, thank you all for your help, I'm answering the questions from Ashley, Steve and Kevin, some answers are huge due to the compilation message ANT provides. Just a reminder, I'm running ANT in a Linux Server, my overall goal is to download a version from a repository, build the version, and report to a mySql database whether it built or not, if not, mention the reason.
All that in JAVA. Ashley, I'm running my stuff in a Linux server. 2. Steve: is this a package-manager installation of Ant?. I'm not sure. I just downloaded the bin files from the Ant webpage and installed it.
Bug 214018 Ant Test Target Doesn't Work On Jdk7 For Mac 2017
David Nemer wrote: Hey Guys, thank you all for your help, I'm answering the questions from Ashley, Steve and Kevin, some answers are huge due to the compilation message ANT provides. Just a reminder, I'm running ANT in a Linux Server, my overall goal is to download a version from a repository, build the version, and report to a mySql database whether it built or not, if not, mention the reason. All that in JAVA. Ashley, I'm running my stuff in a Linux server. 2. Steve: is this a package-manager installation of Ant?. I'm not sure.
I just downloaded the bin files from the Ant webpage and installed it. That's a no then. Java.vm.version: 10.0-b22 ant.library.dir: /home/nemer/apache-ant-1.7.1/lib java.vm.vendor: Sun Microsystems Inc. Java.vendor.url: path.separator:: java.vm.name: Java HotSpot(TM) 64-Bit Server VM file.encoding.pkg: sun.io user.country: US sun.java.launcher: SUNSTANDARD sun.os.patch.level: unknown java.vm.specification.name: Java Virtual Machine Specification user.dir: /home/nemer java.runtime.version: 1.6.006-b02 java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment java.endorsed.dirs: /opt/jdk1.6.006/jre/lib/endorsed os.arch: amd64 java.io.tmpdir: /tmp line.separator: java.vm.specification.vendor: Sun Microsystems Inc.