Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

anand rk

Greenhorn
+ Follow
since Feb 07, 2001
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 anand rk

Hello Ramesh,
Here r the steps which is smae for any type of data base,but put it in a try catch block b'coz it gives up a xception.This one is for access data base.u first create a dns e in access and give it a name here it is "anand"

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
System.out.println("Driver registered for database...");
Connection con=DriverManager.getConnection"jdbc dbc:anand","username","password ");
System.out.println("Connection established with access...");
stm=con.createStatement();
Bye
Anand
Hello,
How can I access a class file which is in the same folder as the main java file to which i want to call the class file.
Like ,in the folder c:/anand i have a.class and b.java files,now i want t access the methods in the a.class file in the b.java file .How do i do that?

Anand
21 years ago
Hello,
Can anyone explain to me the difference between Synchronized methods and Synchronized blocks.May be with an example
I am not able to get it
Anand
Hello,
I am new to JMF and i am trying to do a voice chat application .I tried out a simple programme to capture and the voice and render it.The following is a part of the code code
-----------------------------------------------------------------
import javax.media.*;
import javax.media.rtp.*;
import java.net.*;
import java.util.*;
import java.io.*;
import javax.media.format.AudioFormat;
public class media3 implements ControllerListener
{
Processor pros;
public media3()
{
//*****finding a capture device to capture live audio
AudioFormat format=new AudioFormat(AudioFormat.LINEAR,8000,8,1);
Vector device=CaptureDeviceManager.getDeviceList(format);//getting the objects in an array i.e vectors
CaptureDeviceInfo di=null;
if(device.size()>0)
{
di=(CaptureDeviceInfo)device.elementAt(0);
}
else
{
//System.out.println("nothing");
System.exit(-1);//exit........if no capturedevice was found
}

//*****now we create a processor and show an error if we cannot create it
try
{
pros=Manager.createProcessor(di.getLocator());
}
catch(IOException ae)
{
System.exit(-1);
}
catch(NoProcessorException e)
{
System.exit(-1);
}
}
public void controllerUpdate(ControllerEvent evt)
{
}
public static void main (String args[])
{
media3 pyr = new media3();
//System.out.println ("starting to play...");
}
}
-----------------------------------------------------------------
Now the code compiles properly,but it exits obviously telling that thereis no capture device now does that mean that i cannot do any capturing .do i need any extra software or hardware for doing so.I even want to do it for vdo.
Can anyone please help me.
21 years ago

Originally posted by Stephanie Grasson:
Hello Anand.
The reason for making a trusted applet is to give the applet more permissions than it would usually have.
For example, applets normally cannot read or write files on the client's machine. This is a good security measure. The user feels confident that they can use the applet without any bad consequences to their system.
Perhaps your applet needs to write a file on the user's system. You must get special permission from the user to do so. First, the programmer makes a trusted applet by digitally signing it. This is done so that the user can verify the signature and feel confidant that they trust the applet's creator not to damage their system.
For detailed information about signing applets, see here: http://developer.java.sun.com/developer/onlineTraining/Security/Fundament als/Security.html#secSigning
Once the client has verified the signature and granted permission, your applet can proceed.
Generally speaking, you should not let your applet "out of the sandbox" (giving it more than normal permission) unless absolutely necessary.
Hope this helps.
Stephanie



Stephanie thanx alot for ur xplanation it was real good
21 years ago
hey the class file is ur java class file which is created after u complie ur java file and not the jdbcodbc class file
Hi,
Well u r right ,only u have to give the path till the directory i.e if ur class file suppose "abc.class" is in c/windows/anand directory,then set it to
set classpath=%classpath%;c:/windows/anand;
Let me know if u got it
Bye
Anand
Hello,
Can anyone explain me what is an trusted applet and how about making an applet a trusted one.
Anand
21 years ago
Hi,
If u have created an aaplication and u r getting this problem then try setting the class path
set classpath=%classpath%;"ur directory path";
This is in addition to ur existing classpath settings.I have also xperienced this problem and was successfully by trying this.
bye
Anand
Hello,
Try using servlets by giving html tags in the system.out.println line.The best part is u can even give JScript and VBScript in the tags.
Bye
:-)
Thank you,
Where can i find thun drivers to down load???
Hello,
I am relativly new to JDBC.Can anyone tell me what r thin drivers and where r they used .
thank you
Hello,
Well I am not able to get u Try to be more specific as to what u wana do .Do u want to connect to DB,then using servlets is a good choice as in that u can call a html page having any kind of scripts in it.
Anand
21 years ago
Hey just try this code and tell me if it works

InetAddress Address=InetAddress.getLocalHost();
System.out.println(Address);
InetAddress sw[]=InetAddress.getAllByName(" ");