Sun Java Programming Language (cdj-275) - Answered Questions & Fixed issues

0helpful
5answers

Can anyone tell how run java program in cmd

Hi,

You need to type:

If it's a program.class

java program

or of it's a program.jar

java -jar program.jar

regards
8/7/2024 3:21:45 PM • Sun Java... • Answered on Aug 07, 2024 • 1,056 views
0helpful
2answers

To access data in the database using java

Your question is ambiguously worded. What I believe you are asking is how can you read an MS Access database from a Java program. (If that is not the case, then please re-phrase your question). Java 1.7 : Java JDBC: An example to connect MS Access database Java 1.8 : JDBC: An example to connect MS Access database in Java 8 For other databases, My SQL database : Java JDBC: An example to connect MySQL database Oracle database : Java JDBC: An example to connect Oracle database Source: Best java training institute in chennai Best Java Training in Chennai Java training Institute admin-java_logo-wa2edogpcpakk0ecm2enjvq3-3-0.png
8/8/2018 10:03:35 AM • Sun Java... • Answered on Aug 08, 2018 • 172 views
0helpful
2answers

Sir i min 1st year how should i ll be better in

first of all the main concept behind java i.e oops is to be studied
the start with the core java
3/29/2017 2:57:31 PM • Sun Java... • Answered on Mar 29, 2017 • 131 views
0helpful
1answer

Hot to implement cryptography in websites?

there are many options available in .NET which can go way beyond this sites capacity to assist you with. Please check out StackOverflow.com or the MSDN forums.
1/25/2016 9:54:08 PM • Sun Java... • Answered on Jan 25, 2016 • 427 views
0helpful
1answer

Unscramble these letters g,f,r,y,r,i,a,d,m,n

11/3/2015 8:14:28 AM • Sun Java... • Answered on Nov 03, 2015 • 262 views
0helpful
3answers

Error to compile java program

The main cause of this error is you havent set the environment variables correctly, you can do it as follows

Right click on "My Computers" select properties the click "Environment variables" then under "User variables for pcname"

select new and add the following paths

1)var name:path
var value:C:\Java\jdk1.5\bin

2)var name:classpath
var value:C:\YourJavaCodeDirName

click ok and its done

1/30/2015 7:11:43 AM • Sun Java... • Answered on Jan 30, 2015 • 279 views
0helpful
1answer

Java update 6u21 and 6u23 are not uninstalling

Use the Java Uninstall Tool. Information about the Java uninstaller tool
5/26/2014 6:34:26 PM • Sun Java... • Answered on May 26, 2014 • 136 views
0helpful
2answers

Coding for project

hi,
u can download the project from bwlow link:
http://www.vclcomponents.com/s/0__/project_code_on_call_center_management

Thanks!
Sandy
2/5/2013 4:35:01 AM • Sun Java... • Answered on Feb 05, 2013 • 230 views
0helpful
1answer

Cannot access my game Pet Rescue Saga ON FACEBOOK so FIX IT

Same has happened to me. Not helpful I know, but you are not alone! :D
1/24/2013 1:09:26 PM • Sun Java... • Answered on Jan 24, 2013 • 270 views
0helpful
1answer

Why it really essence to have microwave oven?

To fully grasp the taste of the mentioned household accessory, it is actually required to be Aware of The notion so it takes advantage of to cook food. Initial of all the, all of the these microwave ovens are really operational via a temperature known as microwave radiation which employs amount of frequency nearly all of the effort. The common components of our devices normally contain a humidity sensor, a turntable who is rotating, digital clock as well as control keypad. Apart from these components, a vacuum tube known because a Magnetron is additionally incorporated our ovens along with a control circuit as well as some sort of enclosure in which the cooking of food takes place.http://microwavesovens.org/
11/24/2012 8:14:31 AM • Sun Java... • Answered on Nov 24, 2012 • 54 views
0helpful
1answer

Source code for Hough Circle Detection on BufferedImage in java

That sounds a lot like homework so I am not surprised that you didn't get a response.Did you pass the course?
9/28/2012 8:49:43 PM • Sun Java... • Answered on Sep 28, 2012 • 619 views
0helpful
1answer

Write a Java application that finds a. Area and perimeter of rectangle. b. Area and circumference of a circle.Display explanatory text with the value

Did you find a solution for this ?You haven't received any help because the request looks a lot like a homework assignment and a lot of people are unwilling to do that.I have some suggestions: 1) You should make sure that you have a working copy of Java. Start at the Java Tutorial: http://docs.oracle.com/javase/tutorial/java/TOC.htmlIf you do not have a working Java on your machine, follow the link at the top right of that screen to 'Download JDK'. That is the set of programming tools you need to use to compile and run programs.The Installation Instructions will tell you everything you wish to know. I suggest that you use: http://notepad-plus-plus.org/ to type in programs.Good luck. Post more on the problem page for more help.
9/28/2012 8:39:27 PM • Sun Java... • Answered on Sep 28, 2012 • 166 views
0helpful
1answer

Java

Did your main page has a same name as java?OrYou are running in cmd thenjavac A.java // this will compilerun like:::::java AAny other query then tell me..........
7/25/2012 4:46:11 PM • Sun Java... • Answered on Jul 25, 2012 • 286 views
0helpful
1answer

I also want shopping mall java source code.Please

guys i need source code for shopping mall billing system.... plz help me
3/10/2012 7:25:34 AM • Sun Java... • Answered on Mar 10, 2012 • 446 views
0helpful
2answers

Java.lang.NullPointerException

I believe the error should read "java.lang.NullPointerException"

This error simply means that whatever your application code is trying to get is not there- its a null. Its either out of range or does not exist at all.
12/9/2011 4:25:39 AM • Sun Java... • Answered on Dec 09, 2011 • 1,371 views
0helpful
1answer

I have a hand writing document which is been

You need OCR software (optical character recognition), though you didn't mention the format of the image format file that you have. You may consider using this freeware software to perform your OCR:http://download.cnet.com/Screen-Copy/3000-2094_4-10039293.html
10/20/2011 7:34:20 AM • Sun Java... • Answered on Oct 20, 2011 • 102 views
0helpful
1answer

Java Vitual Machine Launcher prompts this message

You need to compile the .java file you have, and run the .class file that is produced.
Open up command prompt, go to your working directory. If your file was called Hello.java: In command prompt type "javac Hello.java". Now, in the working directory, you will see a new file, Hello.class. Run that file by "java Hello.class". Hope this helps!
Thanks for using FixYa
8/20/2011 5:32:56 PM • Sun Java... • Answered on Aug 20, 2011 • 227 views
0helpful
1answer

I cannot access my facebook

Re-enable Javascript in your browser.Options -> Content -> Enable Javascript (in Firefox)
6/25/2011 12:32:38 AM • Sun Java... • Answered on Jun 25, 2011 • 94 views
0helpful
1answer

If the visual basic have its toolbox, what about

there is no toolbox for sun java programming for it is not a gui language.
if u want java with toolbox,"visual java" is availale on the net, which is pretty much similar to visual basic,the only difference being the language used in the former is "java" and that which used in the latter is "basic".
6/23/2011 12:56:02 PM • Sun Java... • Answered on Jun 23, 2011 • 160 views
0helpful
1answer

Code for a simple banking

//My name is rajeshwari and i have posted u a simple Bank program
import java.awt.*;
import java.awt.event.*;
public class MyBank implements ActionListener,ItemListener
{
Frame f1;
CheckboxGroup cg1;
Checkbox ch1,ch2,ch3,ch4,ch5,ch6;
Label l1,l2,l3,l4,l5;
TextField t1,t2,t3,t4;
Button b1,b2,b3;
Font ft;

MyBank()
{
f1 = new Frame("My Bank");
f1.setBounds(50,50,500,500);
f1.setLayout(null);

cg1 = new CheckboxGroup();
ch1 = new Checkbox("Short term[1yr]",cg1,false);
ch1.setBounds(50,50,120,30);
ch1.addItemListener(this);
ch2 = new Checkbox("Medium term[2yrs]",cg1,false);
ch2.setBounds(50,100,120,30);
ch2.addItemListener(this);
ch3 = new Checkbox("Long term[5yrs]",cg1,false);
ch3.setBounds(50,150,120,30);
ch3.addItemListener(this);
ch4 = new Checkbox("Very long term[10yrs]",cg1,false);
ch4.setBounds(50,200,120,30);
ch4.addItemListener(this);

l1 = new Label("Rate of Interest");
l1.setBounds(210,50,150,30);
t1 = new TextField();
t1.setBounds(360,50,100,30);
l2 = new Label("Deposit Amount");
l2.setBounds(210,125,150,30);
t2 = new TextField();
t2.setBounds(360,125,100,30);
l3 = new Label("Interest Amount");
l3.setBounds(210,200,150,30);
t3 = new TextField();
t3.setBounds(360,200,100,30);
l4 = new Label("Maturity Amount");
l4.setBounds(210,275,150,30);
t4 = new TextField();
t4.setBounds(360,275,100,30);

ch5 = new Checkbox("Senior Citizens");
ch5.setBounds(125,320,100,30);
ch5.addItemListener(this);
ch6 = new Checkbox("NRI");
ch6.setBounds(275,320,100,30);
ch6.addItemListener(this);

l5 = new Label("Extra : 0.5 Rate of Interest on Sr.Citizens and 1 Rate of Interest on NRI");
l5.setBounds(50,370,400,30);

b1 = new Button("Calc");
b1.setBounds(125,440,50,30);
b1.addActionListener(this);
b2 = new Button("Clear");
b2.setBounds(225,440,50,30);
b2.addActionListener(this);
b3 = new Button("Exit");
b3.setBounds(325,440,50,30);
b3.addActionListener(this);

f1.addWindowListener(new mywin());
ft=new Font("Arial",Font.ITALIC,20);
f1.add(ch1);
f1.add(ch2);
f1.add(ch3);
f1.add(ch4);
f1.add(l1);
f1.add(t1);
f1.add(l2);
f1.add(t2);
f1.add(l3);
f1.add(t3);
f1.add(l4);
f1.add(t4);
f1.add(ch5);
f1.add(ch6);
f1.add(l5);
f1.add(b1);
f1.add(b2);
f1.add(b3);
f1.setVisible(true);
}
public class mywin extends WindowAdapter
{
public void windowClosing(WindowEvent we)
{
System.exit(0);
}
}
public void itemStateChanged(ItemEvent ie)
{
double r;

try{
if(ch1.getState() == true)
{
t1.setText("3.5");
}
else if(ch2.getState() == true)
{
t1.setText("4");
}
else if(ch3.getState() == true)
{
t1.setText("4.5");
}
else if(ch4.getState() == true)
{
t1.setText("5");
}

if(ch5.getState() == true)
{
r = 0.5 + Double.parseDouble(t1.getText());
t1.setText(r+"");
}

if(ch6.getState() == true)
{
r = 1 + Double.parseDouble(t1.getText());
t1.setText(r+"");
}
}catch(Exception e){
System.out.println(e);
}
}

public void actionPerformed(ActionEvent ae)
{
double ri,damt,in,mamt;
if(ae.getSource() == b1)
{
ri = Double.parseDouble(t1.getText());
damt = Double.parseDouble(t2.getText());

in = (damt * ri) / 100;
mamt = damt + in;

t3.setText(in+"");
t4.setText(mamt+"");
}
else if(ae.getSource() == b2)
{
t1.setText("");
t2.setText("");
t3.setText("");
t4.setText("");
ch5.setState(false);
ch6.setState(false);
}
else if(ae.getSource() == b3)
{
System.exit(0);
}
}
public static void main(String args[])
{
MyBank obj = new MyBank();
}
}
5/27/2011 11:40:16 AM • Sun Java... • Answered on May 27, 2011 • 472 views
Not finding what you are looking for?
Computers & Internet Logo

Popular Tags

131 questions posted

Ask a Question

Usually answered in minutes!

Top Sun Computers & Internet Experts

Rob Hill
Rob Hill

Level 3 Expert

1483 Answers

Narseman

Level 3 Expert

1092 Answers

Brad Brown

Level 3 Expert

19190 Answers

Are you a Sun Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...