Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!

Sathya Jith

Greenhorn
+ Follow
since Dec 02, 2000
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 Sathya Jith

Where should I mention the path ?
Please let me know.
------------------
Sathyajith
17 years ago
I have downloaded tomcat and I am using Windows NT 4.0.
The path is e:\Tomcat.
I have gone through the doccumentation but I am unable to follow the
instructions to make tomcat functional.
Could somebody tell me what are the exact steps I should follow to
install tomcat ?
------------------
Sathyajith
17 years ago
Thank you Noah Carroll.

------------------
Sathyajith
17 years ago
I have written an Applet which opens in appletviewer but doesn't
open with a browser. I tried with IE5.5
Kindly help
The code is here :

import javax.swing.*;
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
/*
<applet code = "Applicant.class" height = 300 width =500>
</applet>
*/
public class Applicant extends JApplet
{
//variabels for labels
JPanel panel;

//varaibles for labels
JLabel nc;
JLabel labelAppName;
JLabel labelAppAddress;
JLabel labelAppPosition;
JButton buttonAccept;

//variabels for data entry controls
JTextField nct;
JTextField textAppName;
JTextField textAppAddress;
JComboBox comboAppPosition;
//variables for the layout

GridBagLayout gl;
GridBagConstraints gbc;
public void init()
{
//initialise the layout variables
gl= new GridBagLayout();
gbc= new GridBagConstraints();
panel = (JPanel)getContentPane();
panel.setLayout(gl);

//initialise label controls
nc =new JLabel("Number of copies");
labelAppName= new JLabel("Name");
labelAppAddress= new JLabel("Address");
labelAppPosition = new JLabel("Country");
buttonAccept = new JButton("Order");

//initialize data entry controls
nct = new JTextField(5);
textAppName = new JTextField(30);
textAppAddress = new JTextField(30);
String positions[]={"India","US","Other"};
comboAppPosition= new JComboBox(positions);


//Add the Button
gbc.anchor = GridBagConstraints.NORTHEAST;
gbc.gridx = 8;
gbc.gridy = 11;
gl.setConstraints(buttonAccept,gbc);
panel.add(buttonAccept);
validateAction validateButton = new validateAction();
buttonAccept.addActionListener(validateButton);

//Add controls for Applicant Id
gbc.anchor=GridBagConstraints.NORTHWEST;
gbc.gridx= 1;
gbc.gridy= 1;
gbc.gridwidth=2;
gl.setConstraints(nc,gbc);
panel.add(nc);

gbc.anchor=GridBagConstraints.NORTHWEST;
gbc.gridx= 3;
gbc.gridy= 1;
gbc.gridwidth=1;
gl.setConstraints(nct,gbc);
panel.add(nct);
//Add controls for Applicant Name
gbc.anchor=GridBagConstraints.NORTHWEST;
gbc.gridx= 1;
gbc.gridy= 3;
gbc.gridwidth=2;
gl.setConstraints(labelAppName,gbc);
panel.add(labelAppName);

gbc.anchor=GridBagConstraints.NORTHWEST;
gbc.gridx= 3;
gbc.gridy= 3;
gbc.gridwidth=2;
gl.setConstraints(textAppName,gbc);
panel.add(textAppName);
//Add controls for Applicant Address
gbc.anchor=GridBagConstraints.NORTHWEST;
gbc.gridx= 1;
gbc.gridy= 5;
gbc.gridwidth=2;
gl.setConstraints(labelAppAddress,gbc);
panel.add(labelAppAddress);

gbc.anchor=GridBagConstraints.NORTHWEST;
gbc.gridx=3;
gbc.gridy= 5;
gbc.gridwidth=4;
gl.setConstraints(textAppAddress,gbc);
panel.add(textAppAddress);

//Add controls for Applicant Position
gbc.anchor=GridBagConstraints.NORTHWEST;
gbc.gridx= 1;
gbc.gridy= 7;
gbc.gridwidth=2;
gl.setConstraints(labelAppPosition,gbc);
panel.add(labelAppPosition);

gbc.anchor=GridBagConstraints.NORTHWEST;
gbc.gridx= 3;
gbc.gridy= 7;
gbc.gridwidth=2;
gl.setConstraints(comboAppPosition,gbc);
panel.add(comboAppPosition);


}
class validateAction implements ActionListener
{


public void actionPerformed(ActionEvent evt)
{
//extracting source of action
Object obj = evt.getSource();
if(obj == buttonAccept)
{
//Retrieving the number of copies from the textBox
String ncb = nct.getText();

//checking whether the user has entered the value
if(ncb.length() == 0)
{
//displ the error message on tyhe status bar
getAppletContext().showStatus("Please mention the number of copies");
return;
}

//Retrieving the Applicant Name from the textBox
String applicantName = textAppName.getText();

//checking whether the user has entered the value
if(applicantName.length() == 0)
{
//displ the error message on tyhe status bar
getAppletContext().showStatus("Name should be entered");
return;
}
//Retrieving the Applicant Address from the textBox
String applicantAddress = textAppAddress.getText();

//checking whether the user has entered the value
if(applicantAddress.length() == 0)
{
//displ the error message on tyhe status bar
getAppletContext().showStatus("Adress is required");
return;

}
getAppletContext().showStatus("Thank you for ordering the Bilingual Master");

}
}


}

}
------------------
Sathyajith
17 years ago
Ajith and Jesse ,
Thanks a lot for clarifying my doubts.
------------------
Sathyajith
17 years ago
I am a beginner in Java with a Post Graduate Degree in Physics,
a diploma in computer Applications and a Basic java certificate from NIIT.(I am from India)
I am willing to give my full into a job in Java,anywhere in the world.
Not much worried about salary.
Creativity is my plus point.

------------------
Sathyajith
17 years ago
I have some doubts could somebody answer them
1.Is JSDK an outdated Kit ?
If so to use something like Tomcat where do I get guidance ?
2. Can I use MS access to handle data with Java.
What about SQL Server ?
3.What are the strong points in using Java for non web based
applications if any ?
4.Why does the cursor shiver when I am typing this topic ?
Can you fix it as this must be a Java Issue as I feel.
I have lots of other doubts I will come back after some time.

------------------
Sathyajith
17 years ago
sir,
thank you very much.I will try what you have suggested.
I am following the Java 2 complete Reference by Patrick Naughton.
(Third edition) he talks about JSDK. I am a beginer to the field.
I have done some programing with Applets for which I am using
Jdk1.2.1.I want work to in servlets too. Could you kindly give me some insights.Also could you tell me which source/books
can I refer for database connectivity ?
regards
------------------
Sathyajith

------------------
Sathyajith
17 years ago
sir,
thank you very much.I will try what you have suggested.
I am following the Java 2 complete Reference by Patrick Naughton.
(Third edition) he talks about JSDK. I am a beginer to the field.
I have done some programing with Applets for which I am using
Jdk1.2.1.I want work to in servlets too. Could you kindly give me some insights.Also could you tell me which source/books
can I refer for database connectivity ?
regards
------------------
Sathyajith
17 years ago
Which is the exact location to download jsdk please tell me

------------------
Sathyajith
17 years ago
If you don't feel bad, sometimes solving a problem ourselves
help a lot though it takes a lot of time.
My experience is try things out and you will learn a great deal
in the process and get help only when it is almost impossible to solve.
Please take my word in a positive way. No offence meant.

------------------
Sathyajith
17 years ago
Thank you Praveen
that solved my problem
------------------
Sathyajith
17 years ago
I have JDK1.3 installed in my PC.
I have written an Applet in Java called Applicant.java.I could compile the program successfully, however
1. when I type "appletviewer Applicant" at the dos prompt i get the message : I/O Exception while reading
c:\jdk1.3\work\Applicant (The sustem cannot find the specified file) make sure that Applicant is a file and is readable.
2.when I tyoe "appletviewrer Applicant.class" I get the message: warning :no Applets were started .Make sure the
input contains an Applet <tag> and tells me about the usage etc.
3.When I created an HTML file as follows
<html>
<Applet
code= "Applicant.class"
height=500
width= 300
codebase= "c:\jdk1.2.2\work"
align=center
alt="not supported"
>
</Applet>
</html>

and run it using Internet Explorer it shows a gray patch on the screen of the dimensions of an applet and nothing else.

when I run it on the Netscape navigator it seems to come up and nothing con\mes up and the staus bar says
"Applet Applicant error:java.lang.ClassFormatError: Class already loaded"
and sometimes some such similar error.

I have changed the directory of both .java and .class files in all possible ways an I feel that it may not because
it is in the wrong directory.
However I have confusion regarding the directory structure of Java Kit as dofferent kits have different structures.

------------------
Sathyajith
17 years ago
I have JDK1.3 installed in my PC.
I have written an Applet in Java called Applicant.java.I could compile the program successfully, however
1. when I type "appletviewer Applicant" at the dos prompt i get the message : I/O Exception while reading
c:\jdk1.3\work\Applicant (The sustem cannot find the specified file) make sure that Applicant is a file and is readable.
2.when I tyoe "appletviewrer Applicant.class" I get the message: warning :no Applets were started .Make sure the
input contains an Applet <tag> and tells me about the usage etc.
3.When I created an HTML file as follows
<html>
<Applet <br /> code= "Applicant.class"<br /> height=500<br /> width= 300<br /> codebase= "c:\jdk1.2.2\work"<br /> align=center<br /> alt="not supported" <br /> >
</Applet>
</html>

and run it using Internet Explorer it shows a gray patch on the screen of the dimensions of an applet and nothing else.

when I run it on the Netscape navigator it seems to come up and nothing con\mes up and the staus bar says
"Applet Applicant error:java.lang.ClassFormatError: Class already loaded"
and sometimes some such similar error.

I have changed the directory of both .java and .class files in all possible ways an I feel that it may not because
it is in the wrong directory.
However I have confusion regarding the directory structure of Java Kit as dofferent kits have different structures.

------------------
Sathyajith
17 years ago