But it is not showing in my eclipse as red crossed dot.
Thanks,
Venkat.
Main Topics
Browse All TopicsHi
I am using Eclipse 3.1 editor, for that java syntax not showing in my eclipse.??
like..
Ex: System.out.println("exampl
In the above example i missed out the Semicolon(;) end of the line. In Eclipse need to show the compilation error,
But in my eclipse it is not showing??
May i know where is the problem in my Eclipse ??
Thanks,
Venkat.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi my program is like this...
import java.sql.Connection;
import java.sql.DriverManager
import org.jdom.Element;
public class DBConnection
{
public static Connection getConnection(Element params) {
return getConnection(params, null);
}
public static Connection getConnection(Element params, String[] args) {
String sDBHost = null;
String sDBSID = null;
String sDBUser = null;
String sDBPassword = null;
if( args == null ) {
sDBHost = XMLUtils.getSingularNodeVa
sDBSID = XMLUtils.getSingularNodeVa
sDBUser = XMLUtils.getSingularNodeVa
sDBPassword = XMLUtils.getSingularNodeVa
params);
}
else {
sDBHost = XMLUtils.getSingularNodeVa
sDBSID = XMLUtils.getSingularNodeVa
sDBUser = XMLUtils.getSingularNodeVa
sDBPassword = XMLUtils.getSingularNodeVa
params, args);
}
Connection conn = null;
try
{
if ((sDBHost == null) || (sDBSID == null) ||
(sDBUser == null) || (sDBPassword == null))
{
return null;
}
String connectionString =
"jdbc:oracle:thin:@(DESCRI
")(PROTOCOL=tcp)(PORT=1521
")))";
DriverManager.registerDriv
new oracle.jdbc.driver.OracleD
System.out.println("Venkat
conn = DriverManager.getConnectio
sDBPassword);
conn.setAutoCommit(false);
return conn;
}
catch (Exception e)
{
System.out.println(e);
return null;
}
}
in this program...
I put it in one SOP..But I did not closed with the semicolon....
than I saved the program..But it is not showing compilation error.
Regards,
Venkat.
I have put your code into a JAVA project under ECLIPSE 3.2 and I get 15 errors for not having the
proper imports handy AND .......................
I get a red mark on
System.out.println("Venkat
"saying: syntax error, insert ";" to complete the statement"
Is this your first JAVA project with ECLIPSE?
;JOOP!
<<
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.laun
<classpathentry kind="output" path="bin"/>
</classpath>
<<
As i mentioned, if you add it to your sourcepath you will get the required entries in your sourcepath
DO NOT edit the .classpath file directly
Business Accounts
Answer for Membership
by: expertmbPosted on 2006-08-01 at 04:22:25ID: 17222645
it will show the error at the particular line as red crossed dot. and also what is the error.