M7: Ant Error [message #203649] |
Mon, 16 May 2005 15:47  |
Eclipse User |
|
|
|
Just installed M7.
Now anytime I try to run a task from the ant view, I get a Virtual
Machine Launcher error msg saying: "Cannot find main class. program will
exit"
Any ideas why this would happen?
- Jonathan
|
|
|
|
|
|
|
|
|
|
|
|
Re: Ant Error (fixed) [message #203896 is a reply to message #203887] |
Tue, 17 May 2005 14:20  |
Eclipse User |
|
|
|
WoW! that was quick!
Thanks for taking care of it... sorry for messing up your path. :)
Darin Swanson wrote:
> Thanks to Jonathan's help we have fixed this up.
>
> To workaround in M7, you can turn off "Set an Input Hander" on the Main tab
> of your Ant launch configuration.
>
> I now have a quoted path on one of my machines to catch these problems in
> the future :-)
>
> Darins
>
> "Jonathan" <jonathan@sysbliss.com> wrote in message
> news:d6d9f1$eu2$1@news.eclipse.org...
>
>>logged. bug id: 95611
>>
>>Thanks!
>>
>>- Jonathan
>>
>>
>>Darin Swanson wrote:
>>
>>
>>>Jonathan,
>>>
>>>Can you please log this issue as a bug report
>>>
>>>Thanks
>>>Darins
>>>
>>>"Jonathan" <jonathan@sysbliss.com> wrote in message
>>>news:d6d641$b1e$1@news.eclipse.org...
>>>
>>>
>>>>OK, i got the issue fixed.
>>>>Basically, eclipse is now including the env PATH var as part of the
>>>>java.library.path This is fine except that in my env PATH I had quotes
>>>>around an entry that contained spaces (namely "C:\Program
>>>>Files\Microsoft Visual Studio\VSS\win32"; go figure.)
>>>>
>>>>eclipse didn't escape the quotes properly and that made it go boom.
>>>>I just took off the quotes in my env var and everything runs fine now.
>>>>
>>>>I'm not sure if this would really be considered a bug or not seeing as
>>>>how most people would put quotes in their path var.
>>>>
>>>>Thanks for the help!
>>>>
>>>>- Jonathan
>>>>
>>>>Jonathan wrote:
>>>>
>>>>
>>>>>Here it is.
>>>>>I did notice that the -Djava.library.path looks a little strange cause
>>>>>even the -D is included in quotes... not sure if that matters though
>>>>>
>>>>>C:\jdk1.5\bin\javaw.exe -Dant.home=C:\apache-ant-1.6.2
>>>>>-Dant.library.dir=C:\apache-ant-1.6.2\lib
>>>>>
>>>
>>>
> " -Djava.library.path=C:\jdk1.5\bin;.;C:\WINDOWS\system32;C:\W INDOWS;C:\Perl\
>
> bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\jdk1.5\bin;C:\apache- ant-1.6.2\bin;c:
>
>>>\Program
>>>
>>>
>>>>> Files\eclipse\configuration\org.eclipse.osgi\bundles\60\1\.c p "
>>>>>-classpath
>>>>>
>>>
>>>
> " C:\apache-ant-1.6.2\lib\Tidy.jar;C:\apache-ant-1.6.2\lib\ant -antlr.jar;C:\a
>
> pache-ant-1.6.2\lib\ant-apache-bcel.jar;C:\apache-ant-1.6.2\ lib\ant-apache-b
>
> sf.jar;C:\apache-ant-1.6.2\lib\ant-apache-log4j.jar;C:\apach e-ant-1.6.2\lib\
>
> ant-apache-oro.jar;C:\apache-ant-1.6.2\lib\ant-apache-regexp .jar;C:\apache-a
>
> nt-1.6.2\lib\ant-apache-resolver.jar;C:\apache-ant-1.6.2\lib \ant-commons-log
>
> ging.jar;C:\apache-ant-1.6.2\lib\ant-commons-net.jar;C:\apac he-ant-1.6.2\lib
>
> \ant-contrib-1.0b1.jar;C:\apache-ant-1.6.2\lib\ant-icontract .jar;C:\apache-a
>
> nt-1.6.2\lib\ant-jai.jar;C:\apache-ant-1.6.2\lib\ant-javamai l.jar;C:\apache-
>
> ant-1.6.2\lib\ant-jdepend.jar;C:\apache-ant-1.6.2\lib\ant-jm f.jar;C:\apache-
>
> ant-1.6.2\lib\ant-jsch.jar;C:\apache-ant-1.6.2\lib\ant-junit .jar;C:\apache-a
>
> nt-1.6.2\lib\ant-launcher.jar;C:\apache-ant-1.6.2\lib\ant-ne trexx.jar;C:\apa
>
> che-ant-1.6.2\lib\ant-nodeps.jar;C:\apache-ant-1.6.2\lib\ant -starteam.jar;C:
>
> \apache-ant-1.6.2\lib\ant-stylebook.jar;C:\apache-ant-1.6.2\ lib\ant-swing.j
>
>>>>ar
>>>>
>>>>
> ;C:\apache-ant-1.6.2\lib\ant-trax.jar;C:\apache-ant-1.6.2\li b\ant-vaj.jar;C:
>
> \apache-ant-1.6.2\lib\ant-weblogic.jar;C:\apache-ant-1.6.2\l ib\ant-xalan1.ja
>
> r;C:\apache-ant-1.6.2\lib\ant-xslp.jar;C:\apache-ant-1.6.2\l ib\ant.jar;C:\ap
>
> ache-ant-1.6.2\lib\commons-collections-3.1.jar;C:\apache-ant -1.6.2\lib\commo
>
> ns-configuration-1.0-rc2.jar;C:\apache-ant-1.6.2\lib\commons -io-1.0.jar;C:\a
>
> pache-ant-1.6.2\lib\commons-lang-2.0.jar;C:\apache-ant-1.6.2 \lib\commons-log
>
> ging-api.jar;C:\apache-ant-1.6.2\lib\commons-logging.jar;C:\ apache-ant-1.6.2
>
> \lib\commons-net-1.3.0.jar;C:\apache-ant-1.6.2\lib\junit.jar ;C:\apache-ant-1
>
> .6.2\lib\log4j-core.jar;C:\apache-ant-1.6.2\lib\log4j.jar;C: \apache-ant-1.6.
>
> 2\lib\vsd_ant_tasks.jar;C:\apache-ant-1.6.2\lib\xercesImpl.j ar;C:\apache-ant
>
>>>-1.6.2\lib\xml-apis.jar;C:\Program
>>>
>>>
>
> Files\eclipse\configuration\org.eclipse.osgi\bundles\8\1\.cp \lib\remoteAnt.j
>
>>>ar;C:\jdk1.5\lib\tools.jar;C:\Program
>>>
>>>
>>>>> Files\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.1.0. jar "
>>>>>org.eclipse.ant.internal.ui.antsupport.InternalAntRunner
>>>>>"\"-Declipse.connect.port=1443 \""
>>>>>"\"-Dorg.eclipse.ant.core.ANT_PROCESS_ID=1116343090993 \"" "\" \""
>>>>>"\"-Dbasedir=C:\data\eclipse\workspace\ActorsWeb \""
>>>>>\"-Dant.home=C:\apache-ant-1.6.2\" -logger
>>>>> org.eclipse.ant.internal.ui.antsupport.logger.RemoteAntBuild Logger
>>>>>-inputhandler
>>>>> org.eclipse.ant.internal.ui.antsupport.inputhandler.ProxyInp utHandler
>>>>>-buildfile \"C:\data\eclipse\workspace\ActorsWeb\build.xml\"
>>>>>
>>>>>- Jonathan
>>>>>
>>>>>Darin Swanson wrote:
>>>>>
>>>>>
>>>>>
>>>>>>After attempting to run your Ant build, open the Debug view.
>>>>>>Right click on the process>Properties>Process Information.
>>>>>>
>>>>>>Can you paste what it is indicated?
>>>>>>
>>>>>>Darins
>>>>>>
>>>>>>"Jonathan" <jonathan@sysbliss.com> wrote in message
>>>>>>news:d6auvt$ppo$1@news.eclipse.org...
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Installed M7 by renaming c:\program files\eclipse to c:\program
>>>>>>>files\eclipse3.1M6 and then extracting the M7 zip to c:\program
>>>>>>>files\eclipse (clean install)
>>>>>>>
>>>>>>>I get the same error for ALL build files.
>>>>>>>I get the error if I use the run task button in ant view, right
>>>>>>>clicking and choosing run task in ant view, or from the run as...
>>>>>>>dialog. Basically anytime ant is run.
>>>>>>>
>>>>>>>The run as... dialog shows no configuration errors.
>>>>>>>If I boot up the old M6 install (using same workspace) everything
>>>>>>>runs fine.
>>>>>>>
>>>>>>>There are no errors put into the eclipse error log.
>>>>>>>
>>>>>>>- Jonathan
>>>>>>>
>>>>>>>Darin Swanson wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Is it only when you attempt to build from the Ant view?
>>>>>>>>Is it for all build files?
>>>>>>>>Any other indications of problems in the .log file?
>>>>>>>>How did you install M7...clean install or over a previous Eclipse
>>>>>>>>install?
>>>>>>>>If you right click in the Ant view>Run As>Ant Build... to bring up
>>>
>>>the
>>>
>>>
>>>>>>>>launch configuration dialog is there indication of error in the
>>>
>>>dialog?
>>>
>>>
>>>>>>>>Darins
>>>>>>>>
>>>>>>>>"Jonathan" <jonathan@sysbliss.com> wrote in message
>>>>>>>>news:d6atuu$oe6$1@news.eclipse.org...
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Just installed M7.
>>>>>>>>>Now anytime I try to run a task from the ant view, I get a Virtual
>>>>>>>>>Machine Launcher error msg saying: "Cannot find main class. program
>>>>>>>>>will
>>>>>>>>>exit"
>>>>>>>>>
>>>>>>>>>Any ideas why this would happen?
>>>>>>>>>
>>>>>>>>>- Jonathan
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04941 seconds