Swaminathan Ramanathan

Greenhorn
+ Follow
since Sep 23, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Swaminathan Ramanathan


Hello Everyone !
After hearing about the sudden slip of Java and the demand for it , i'm a bit worried about the future of Java all its accessories. Please explain me what is currently going on at the US Market. I'm really really tensed.
Regards, Swamy
23 years ago

Hello Everyone !
After hearing about the sudden slip of Java and the demand for it , i'm a bit worried about the future of Java all its accessories. Please explain me what is currently going on at the US Market. I'm really really tensed.
Regards, Swamy
23 years ago

Hello Everyone !
After hearing about the sudden slip of Java and the demand for it , i'm a bit worried about the future of Java all its accessories. Please explain me what is currently going on at the US Market. I'm really really tensed.
Regards, Swamy
23 years ago
Hello Anybody !
I'm having Personal Oracle 8.0.3 loaded in my system. My Operating System is Windows '98. Now can't i connect Java and Oracle through JDBC ? I'm asking you this because when i open my Oracle Net8 Assistant i find no folders for my Listeners and so i'm unable to configure the Listeners which are vital for connecting Java and Oracle. But I've Listener.ora file located in my system. Now i want to know how should i connect to Oracle thro' JDBC. Or is it not possible unless i shift to Windows NT ?
Please help me as i feel very sick with this issue for a long time.
Thanks and Regards,
Swamy
[This message has been edited by Swaminathan Ramanathan (edited January 23, 2001).]
Hello Everyone !
I'm trying to connect to Oracle from Java. I've given my coding below. But i get an error. The error is " Connection Refused No further Information". How do go about now ? Is my coding alright ? I set my classpath to c:\orawin95\jdbc\lib\classes111.zip [ i have one more zip file there in the lib folder by name classes102.zip ]. I have both jdk1.2.2 and 1.3. But here i used 1.2.2. I use Oracle 8.0.3. Somebody help me out of this prob.
This is the coding i used :
import java.sql.*;
import java.io.*;
import java.util.Date;
class JdbcTest
{
public static void main (String args [])
throws SQLException, IOException
{
System.out.println ("Loading Oracle driver");
try
{
Class.forName ("oracle.jdbc.driver.OracleDriver");
}
catch (ClassNotFoundException e)
{
System.out.println ("Could not load the driver");
e.printStackTrace ();
}
System.out.println ("Connecting to the local database");
Connection conn = null;
try {
conn =
DriverManager.getConnection
("jdbc racle:thin:scott/tiger");
}
catch (Exception e)
{
System.out.println("Error : " + e.getMessage());
}

Statement stmt = conn.createStatement ();
// Query the employee names
ResultSet rset = stmt.executeQuery ("select ename from emp");
while (rset.next ())
{
// Print the name out
System.out.println (rset.getString (1));
}
}
}


Is there any problem with my connection specification like the thin driver ? Do help me.
Thanks and Regards.
Swamy

[This message has been edited by Swaminathan Ramanathan (edited January 22, 2001).]
Hello Everyone,
Can anyone please explain me the exact difference between AWT and Swing components and in what ways Swing is better and also the circumstances when to use Swing rather than its AWT counterpart.
Thanks & Regards,
Swamy
23 years ago
Hello Everyone ,
I wanted to declare a JList Box and add some items to it. Thats fine. Now my problem is when i wanted to make multiselection impossible and to display only three items by default , it doesnot work.

public void setVisibleRowCount(int visibleRowCount)
public void setSelectionMode(int selectionMode)
I tried the above methods but could not solve the prob. I want the exact usage of these two methods.
Thanks
Swamy
23 years ago
Hello !
Its everybody's secret that for narrowing conversions we seek the help of casting and not for widening conversions. Now, the ascending flow is a byte,char,short,int,long,float,double. Now we need casting for the movement from the right to the left and not vice versa. Here long takes 64 bits and float takes only 32 bits. That being the case for converting a float to a long we should not require casting which is not the case in reality. Why ?
Please do explain.
Regards, Swamy
23 years ago