Ant Cannot Use Sun Rmic
Rob Grzywinski Junior Devvie Reality Interactive Re: Eclipse and Ant « Reply #7 - Posted 2003-08-13 13:52:57 » I don't suppose that you looked at the Eclipse newsgroups. Then I selected "Run Ant...", changed to using the external > copy of the Sun 1.4.2_06 JDK, and then setting the JAVA_HOME > environment variable to "C:\Javasoft\j2sdk1.4.2_04\", and then > selected more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Sign up for free to join this conversation on GitHub.
Advertise Here Reach key IT decision makers and developers worldwide by advertising on this site. I don't know if it's a problem of Eclipse(config or installation) or my Java installation.. (currently using j2sdk1.4.0 on Win98SE) Anyone knows where to configure correctly Ant in Eclipse?? inquiries and complaints can be sent via email to the info-account of the company managing the website of java-gaming.org Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed A common solution is to set the environment variable JAVA_HOME or CLASSPATH. http://stackoverflow.com/questions/25059759/running-ant-programmatically-cannot-use-sun-rmic
Then I selected "Run Ant...", changed to using the external copy of > the Sun 1.4.2_06 JDK, and then setting the JAVA_HOME environment variable > to "C:\Javasoft\j2sdk1.4.2_04\", and then selected "Run". This >project compiled fine when it was outside of eclipse and just running with >an external version of Ant. > > However, I have now imported the project into Eclipse 3.0.1 Share Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address.
Doesn't other project, especially those using > the EJB infrastructure, need it? Doesn't other project, especially those using >>the EJB infrastructure, need it? BTW, in the thread they were looking for another error, but the fix also worked for me!!Did I thank?? I really appreciate it.
Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. Solutions? I'm glad you solved it! http://lj4newbies.blogspot.com/2008/06/cannot-use-sun-rmic-as-it-is-not.html That is where the Ant exec > task idea was mentioned, but nothing was demonstrated regarding how to > go about using the exec task to call bin/rmic. > > It
Not sure why my rmic is in tools.jar and yours is in J2EE.jar but variety is the spice of life. https://issues.apache.org/jira/browse/MANTRUN-23 Page generated in 0.04559 seconds .:: Contact :: Home ::. Thanks anyway Dave Hewy Ranch Hand Posts: 93 posted 13 years ago Well Mr Graham VMead, I can't know about your exact configuration, with the small amount of information you opentaps is based on open source projects including Apache Tomcat, Apache Lucene, Apache Derby, JasperReports business intelligence, Pentaho BI suite, Spring framework, Hibernate, Funambol.
opentaps offers the Apache OFBiz ecommerce system out-of-the-box and supports integration with the Magento e-commerce system, Amazon seller Central, ebay, and GoogleBase (froogle). tried setting it but still doesn't work.. A common solution is to > set the environment variable JAVA_HOME or CLASSPATH.". > > I then discovered you cannot set an environment variable when using > the Eclipse internal compiler. I then got this >>error "BUILD FAILED: >> C:\Data\Projects\ew_fogel\PureProcessingNodeServer\build.xml :23: Unable to >>find a javac compiler; >>com.sun.tools.javac.Main is not on the classpath. >>Perhaps JAVA_HOME does not point to the JDK". >>
HTTPS Learn more about clone URLs Download ZIP Code Revisions 1 Raw gistfile1.txt Checking prerequisites of (fiji.build.SubFake) jars/weka.jar <- fiji jars/Fiji.jar ... I had already added this and the J2EE.jar to both the ant runtime classpath and the system classpath yet all I get is "Error starting RMIC". Pay by the hour. A common solution is to set the environment variable JAVA_HOME Total time: 8 seconds Fake failed: Program failed: '../../fiji --ant -f weka/build.xml exejar' Failed: 1 in rule (fiji.build.ExecuteProgram) weka/dist/weka.jar <- in
So, I then removed the build.compiler line which looked like this "
This project compiled fine when it was outside of eclipse and > just running with an external version of Ant. > > However, I have now imported the project into Eclipse
Re: Eclipse and Ant « Reply #8 - Posted 2003-08-17 05:09:17 » Thanks!!It worked!! The quick solution was to copy tools.jar into jre/lib/ext. I download ofbiz weekly build[ofbiz_20080602.zip] from sourceforge and try to build it on eclipse. Dave Graham VMead Ranch Hand Posts: 154 posted 13 years ago Thanks for the reply Dave Hewy!
Thank you for any assistance you can offer me. to execute 3rd party code), add those dependencies to the PLUGIN dependencies - they have nothing to contribute to your projects code, they're just used for building.
and sometime me??? Here was the original task text:
By the way, I felt the need to post this to help someone else avoid the HOURS that I spent trying to fix it. ;-) Top Sat, 06/21/2008 - 00:41 #2 It isn't needed for Java 6, RMI can work perfectly well without the stubs that rmic generates unless you have clients running Java 1.4 or earlier (and then you have other