Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Cannot be resolved to a type(eclipse oxygen 3 release 4.7.3)
Cannot be resolved to a type [message #1786757] Thu, 10 May 2018 16:55 Go to next message
S. Mising name is currently offline S. Mising nameFriend
Messages: 10
Registered: May 2011
Junior Member
Example is below. I am trying to debug a PHP with eclipse.
ie eclipse oxygen 3 win32 x86_64.

I get error- 'Exception' cannot be resolved to a type.

<?php
print date("m/d/Y G.i:s<br>", time());
$aa =0;
$bb =5;
$cc =2;
try{
    $cc = $bb / $aa;
}
catch(Exception $e){
    echo "got_exception= ";
    echo  $e->getMessage();
    echo  "\n";
    print " last line<br>";
} finally {
   $bb = 15;
}
?>





Suggestions?

TIA
Steve42
Re: Cannot be resolved to a type [message #1786760 is a reply to message #1786757] Thu, 10 May 2018 17:51 Go to previous message
S. Mising name is currently offline S. Mising nameFriend
Messages: 10
Registered: May 2011
Junior Member
SOLVED. Somehow I did not have that example in a project.
I created a PHP Project and added that example above into it. The error went away...

Previous Topic:Customizing System.out
Next Topic:sources and/or NOTICES from org.eclipse.core packages
Goto Forum:
  


Current Time: Tue Sep 25 08:42:18 GMT 2018

Powered by FUDForum. Page generated in 0.03569 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top