harinath_2007 56 Posting Whiz

@pro learner. As SOS suggested you need to put e.printStackTrace() in your code and its good to make it as habit whenever you write the code.

And i think you should specify the port number of your mysql in line 13.

The default port number of mysql is 3306.So assuming that you dint change the post number manually , it should be as follows

String url = "jdbc:mysql://localhost:3306/musicdb";
harinath_2007 56 Posting Whiz

Are you getting any errors?.. If so post them ..

harinath_2007 56 Posting Whiz

Dont be afraid of anyone except your soul.

harinath_2007 56 Posting Whiz

The old bookmarks have been recently stored in a folder on the desktop of this new computer--a folder that I can't figure out what to do with: its files will open with a lot of gibberish in Mozilla FF, but I don't know how to save its contents as html or any other format. Do you know how to export the contents of this folder?

Sorry. i cant understand what you are trying to say.

I hope you want to export chrome bookmarks to an html file. Doing that is already explained in that link.

a folder that I can't figure out what to do with: its files will open with a lot of gibberish in Mozilla FF, but I don't know how to save its contents as html or any other format

what folder ? what format are you talking about?

harinath_2007 56 Posting Whiz

You have two solutions..

The first and simplest way would be set your jframe non-resizable. So user cannot resize window.

frame.setResizable(false);

The second way would be make your jframe listen to window-resized events.

Then get the size of the window by

Dimension d=frame.getSize();
int x=d.getWidth();
int y=d.getHeight();
textField.setSize(x,y); //Or setbounds

So make modifications to the code according to your requirements..

harinath_2007 56 Posting Whiz
harinath_2007 56 Posting Whiz

It happened after I enhansed the ram to 2 GB

Make sure that ram card is placed in the slot properly. Try booting into safe mode .

harinath_2007 56 Posting Whiz

That's because the OP got the numbers wrong. He/she meant to enter 9, then take the square root, then subtract 3. This has been posted elsewhere.

@Reverend Jim is correct . It's a typo.That was actually squareroot(9)-3 . I corrected that in my next post.(see my above post)

correction of small typo. it is squareroot(9)-3
Works for other values also like..
squareroot(16)-4
squareroot(25)-5
squareroot(36)-6
......

harinath_2007 56 Posting Whiz

:) Found the link Download Zip file

peter_budo commented: Thank you for sharing your findings. +16
harinath_2007 56 Posting Whiz

Is there any way to download API as single file (so that i can read it offline)

harinath_2007 56 Posting Whiz

Could anybody direct me to J2ME API link..

I couldn't found the download link.

harinath_2007 56 Posting Whiz

Other option would be install a good firewall like ZoneAlarm and you'll be asked for confirmation when a program or software attempts to access internet.This way you can stop the programs trying to access internet.

harinath_2007 56 Posting Whiz

what's big deal? Save the data either in file or database..

harinath_2007 56 Posting Whiz

As JamesCherill said , you must check the absolute path of the file .

Make sure that the path of the file is correct and it would be more clear if you post the part of code which tries to open/access the file

harinath_2007 56 Posting Whiz

You have your requirements and everything in crystal clear manner. All you have to do is learn the java syntax and some API classes and start coding yourself. No one takes the pain of doing your homework . It's your homework and pain is also yours .
Atleast try some code and ask doubts if you are stuck somewhere while coding..

harinath_2007 56 Posting Whiz

I changed my OS from XP to 7 . Now it works fine. Even when i initially installed win7 the same problem was there . but when i run it as administrator it worked..

harinath_2007 56 Posting Whiz

My Tomcat server 6.0 doesn't start . I have windows xp.

I also tried executing from command prompt by going to bin folder. Still the same problem.

The log file is as follows..

[2011-10-23 13:22:27] [info] Procrun (2.0.3.0) started
[2011-10-23 13:22:27] [info] Service Tomcat6 name Apache Tomcat
[2011-10-23 13:22:27] [info] Service Tomcat6 installed
[2011-10-23 13:22:27] [info] Procrun finished.
[2011-10-23 13:22:30] [info] Procrun (2.0.3.0) started
[2011-10-23 13:22:30] [info] Updating service...
[2011-10-23 13:22:30] [info] Service Tomcat6 updated
[2011-10-23 13:22:30] [info] Update service finished.
[2011-10-23 13:22:30] [info] Procrun finished.
[2011-10-23 13:22:30] [info] Procrun (2.0.3.0) started
[2011-10-23 13:22:30] [info] Updating service...
[2011-10-23 13:22:30] [info] Service Tomcat6 updated
[2011-10-23 13:22:30] [info] Update service finished.
[2011-10-23 13:22:30] [info] Procrun finished.
[2011-10-23 13:22:33] [info] Procrun (2.0.3.0) started
[2011-10-23 13:22:33] [info] Running Service...
[2011-10-23 13:22:33] [info] Starting service...
[2011-10-23 13:22:33] [174 javajni.c] [error] The specified module could not be found.

[2011-10-23 13:22:33] [986 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0\bin\client\jvm.dll
[2011-10-23 13:22:33] [1260 prunsrv.c] [error] ServiceStart returned 1
[2011-10-23 13:22:33] [info] Run service finished.
[2011-10-23 13:22:33] [info] Procrun finished.
[2011-10-23 13:22:41] [info] Procrun (2.0.3.0) started
[2011-10-23 13:22:41] [info] Running Service...
[2011-10-23 13:22:41] [info] Starting service...
[2011-10-23 13:22:41] [174 javajni.c] [error] The specified module could not be found.

[2011-10-23 13:22:41] [986 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0\bin\client\jvm.dll
[2011-10-23 …

harinath_2007 56 Posting Whiz

but it will automatically add new lines to the console until your command line is at the bottom of the console display. Normally, you would see that all of other contents are gone from the display.

Could you make it more clear . I cant understand what you are trying to say.

u001b[2J . What does it do ?

It will be nice if you explain with small program..

harinath_2007 56 Posting Whiz

Keylogger is a software which will captures all your keystrokes and activity you do on the computer. Whereas KeyListener is a interface in java which you should implement in your java code if you want to capture key strokes.


Making keylogger in java is NOT possible.

harinath_2007 56 Posting Whiz

System.out.println("\u001b[2J");

Could you explain what does it do?
I think it has nothing to clear ...

harinath_2007 56 Posting Whiz

Is there any password set for guest account.?
Log off all users and log in as guest . Still not able to login as guest?

harinath_2007 56 Posting Whiz

I think it's an issue with your browser?

might be. Anyways i am facing that only sometimes...

harinath_2007 56 Posting Whiz

Also, i dont have JAVA so couldnt really check

You'll get java here

Go through the API and code yourself . IF you are stuck anywhere while coding , come back

harinath_2007 56 Posting Whiz

If you look at API there's no showMessageDialog method which takes string as first argument.

Call the method by passing correct parameters.

harinath_2007 56 Posting Whiz

Reciever.java": Error #: 200 : <identifier> expected at line 8, column 49

If you carefully look at those error lines ,

private static final intDEFAULT_EXTERNAL_BUFSIZ = 20480;

There should be a space between int and DEFAULT_EXTERNAL_BUFSIZ

similarly on line 9,10,.....

All those are silly mistakes of your code. I suggest you to spend time on basics of java first.

harinath_2007 56 Posting Whiz

I think it should work.
Did you tried it in C

printf("\a");

The other alternative is call the exe file from the java..

harinath_2007 56 Posting Whiz

I'm quite sure that the feature is not available in daniweb.. Anyway lets wait for official reply...

harinath_2007 56 Posting Whiz

Post the entire error messages that you are getting when you compile the code..

harinath_2007 56 Posting Whiz

Instead of using Toolkit class , try using ascii code..

System.out.println("\007");

Inform me whether it works or not......

harinath_2007 56 Posting Whiz

i dont want to spoil my keyboard...:)

harinath_2007 56 Posting Whiz

string can never be assigned directly...

String str="It is possible";

Can't you assign directly?

harinath_2007 56 Posting Whiz

I think you dint posted the entire code..
Also attach your output screenshot if possible..

harinath_2007 56 Posting Whiz

Did not see such when i zoomed the image

I said if i zoom the webpage , i can see them but not the snapshot of that webpage

harinath_2007 56 Posting Whiz

"Dreams are not those whose which come in sleep. Dreams are those which will not let you sleep"

codeorder commented: :) +0
harinath_2007 56 Posting Whiz

Oh no.. Again i encountered the same..

Recently i saw that one(numerical digit one) and dot are not being appeared on the post
Even in this post i am using one in words ..:)
But if i zoom the web page , they are being visible.

Why is that?? Any technical problem with daniweb?

As You can see the snapshot , one and dot are not being displayed.

But if i zoom the page , i can see that..

harinath_2007 56 Posting Whiz

cannot find symbol variable enter

The error is because you dint declared the variable before using it in your code.

harinath_2007 56 Posting Whiz

Looks like my problem is solved..

harinath_2007 56 Posting Whiz

An error pops up and says variable "result" might not have been initialized.

Initialize result with 0.on line thirteen

harinath_2007 56 Posting Whiz

My teacher wants us to use IF conditions. So would it look like something like this:

yes.
if-else-if-

if (firstOperator.equals("+"))
result = firstInput + secondInput;
else if (firstOperator.equals("-"))
result = firstInput - secondInput;
else if (firstOperator.equals("/"))
result = firstInput / secondInput;
............
harinath_2007 56 Posting Whiz

In this case , you should check what operator is entered by user using IF condition.
So place a IF condition for every operator.

Otherwise use switch-case statement to make the task easy..

harinath_2007 56 Posting Whiz
if (firstOperator == "+" && secondOperator == "+" )

To compare a string you should use equals method.
So it should be

if (firstOperator.equals("+") && secondOperator.equals("+")}
harinath_2007 56 Posting Whiz

Oh...shocked.. I think i dint read the question correctly.. I thought it is 10^6 number to be stored...

Is the OP really asking about 10^6 digits to be stored ..? Ohh my god..

Then , i think it looks like quite impractical to me.
He can store that as a string but processing or performing operations on such very large number is not possible.

harinath_2007 56 Posting Whiz

Just declaring the variable as int is enough in this case since range of int is 2^32(=4294967296) which is far more than 10^6.

Refer range of primitive data types once.

harinath_2007 56 Posting Whiz

how about the log on screen with username and password of an admin

What do you mean by that?
Do you want to replace the welcome screen of windows?..Is that your real intention?

harinath_2007 56 Posting Whiz

If a person is silent , it doesn't mean he is not happy. Life had thought him some lessons which made him to be like that..

harinath_2007 56 Posting Whiz

Ok then.Thanks for helping me out...

harinath_2007 56 Posting Whiz

Oh. Is there option to make the xp full screen?

harinath_2007 56 Posting Whiz

not sure about the full screen question ,but ,what version of win7 are you using

I use windows 7 ultimate 32 bit. But how is that related to my problem..?

harinath_2007 56 Posting Whiz

Videos doesn't mean(indeed it's NOT about) the programs you type or showing just a "hello world" output .
It might be regarding any new thing which you think it is quite worth to share. Maybe it is a video explaining "How to make a simple android application ?" , or videos about any new technologies arrived in the market,or regarding any stuff which you know or which you SEE on any websites like youtube or any other site which you think it is worth to share.

harinath_2007 56 Posting Whiz

If it says no operating system found..then it must be the cd/dvd/iso.. that is corrupted..try to get a proper xp.. i too hv install xp(but sp3) on vmware wit win7 HE as base OS.. It gave me no problem while installing..

Yes you may be right. I got frustated with those error messages blowing again and again. So i deleted windows 7 completely and installed XP (sp2).

After my work is done , as soon as possible(very shortly) i will again shift to Windows 7 and then i'll try to install the xp using vmware.

But i need to work on some application which unfortunately has compatability issues with windows 7 and that is why i shifted to xp currently.

So again if i install xp with VMware , can i work with that application in full screen mode.?
I mean to say i should do all the stuff within that small window. So is there any way to get similar experience as really using xp.