283 Posted Topics

Member Avatar for jackmaverick1

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

Member Avatar for jackmaverick1
0
9K
Member Avatar for harinath_2007

Could anybody direct me to J2ME API link.. I couldn't found the download link.

Member Avatar for harinath_2007
0
135
Member Avatar for weeraa

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.

Member Avatar for BhimaBindhani
0
166
Member Avatar for mameemonster
Member Avatar for samthelamb

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 …

Member Avatar for harinath_2007
-2
216
Member Avatar for harinath_2007

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] …

Member Avatar for Seten
0
1K
Member Avatar for caswimmer2011

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.

Member Avatar for Vreality
0
446
Member Avatar for xanawa

[QUOTE]System.out.println("\u001b[2J");[/QUOTE] Could you explain what does it do? I think it has nothing to clear ...

Member Avatar for Taywin
0
147
Member Avatar for cwarn23
Member Avatar for Arthas

Disable all unused services by going to run->msconfig->services . Another best way is.. In task manager you can find out the memory usage of each process. Look for the process which is taking more amount of memory and close it if it's an unwanted or unused process. It may also …

Member Avatar for benmar
0
189
Member Avatar for harinath_2007
Member Avatar for loserspearl

If you look at [URL="http://download.oracle.com/javase/1.4.2/docs/api/javax/swing/JOptionPane.html#method_summary"]API[/URL] there's no showMessageDialog method which takes string as first argument. Call the method by passing correct parameters.

Member Avatar for loserspearl
0
1K
Member Avatar for heybunny

[QUOTE]Also, i dont have JAVA so couldnt really check[/QUOTE] You'll get java [URL="http://www.java.com/en/download/index.jsp"]here[/URL] Go through the API and code yourself . IF you are stuck anywhere while coding , come back

Member Avatar for Ezzaral
0
203
Member Avatar for Sana'a Ala'a

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

Member Avatar for harinath_2007
0
504
Member Avatar for caswimmer2011

Instead of using Toolkit class , try using ascii code.. [CODE] System.out.println("\007");[/CODE] Inform me whether it works or not......

Member Avatar for harinath_2007
0
281
Member Avatar for ria_ria

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

Member Avatar for Taywin
0
180
Member Avatar for london-G

[QUOTE]string can never be assigned directly...[/QUOTE] [CODE]String str="It is possible";[/CODE] Can't you assign directly?

Member Avatar for Taywin
0
154
Member Avatar for twinkle2011

[QUOTE]cannot find symbol variable enter[/QUOTE] The error is because you dint declared the variable before using it in your code.

Member Avatar for stultuske
0
86
Member Avatar for laguardian

[CODE]if (firstOperator == "+" && secondOperator == "+" )[/CODE] To compare a string you should use equals method. So it should be [CODE]if (firstOperator.equals("+") && secondOperator.equals("+")}[/CODE]

Member Avatar for harinath_2007
0
141
Member Avatar for pradeep_java

Just declaring the variable as [B]int[/B] 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.

Member Avatar for JamesCherrill
0
1K
Member Avatar for etangryk08
Member Avatar for javaNooblet

Well, probably you may get answers from people if you could have asked a specific question regarding your code instead of asking whether to optimize the code. The answer is that [B]you[/B] need to know whether your code is perfect or not according to your requirements.

Member Avatar for hfx642
0
230
Member Avatar for harinath_2007

I have a windows 7 operating system on my pc. I am trying to install windows xp using VMware and everytime i start to boot the guest operating system i get the following error.. PXE-E53 : No boot filename received PXE-MOF : Exiting Intel PXE ROM. Operating system not found …

Member Avatar for caperjack
1
3K
Member Avatar for cwarn23
Member Avatar for adarshcu

Obviously , it goes into infinite loop and that's why the compiler reports an error message. [QUOTE]But the SCJP book says that this should work fine [/QUOTE] I assume you are talking about SCJP by kathy sierra. Can you say at which page of the book , they said that …

Member Avatar for pavanvusirika
0
153
Member Avatar for Dante2

Java is a sandbox environment lanugage.It will not allow you to access out of the box. You will definitely end up with using some other language like C or C++. Ok. I'll give you a simple example.. Can you can develop a simple keylogger entirely in pure java ? If …

Member Avatar for JeffGrigg
1
405
Member Avatar for Jessurider

[QUOTE] edit video or image file properties through java[/QUOTE] Do you mean changing the properties like setting Read-only mode , hidden mode or finding the size of the file? Go through [URL="http://download.oracle.com/javase/1.4.2/docs/api/java/io/File.html#method_summary"]this[/URL] [CODE]File f=new File("myvideo.avi"); f.setReadOnly();[/CODE] Not only video files , you can use any type of file..

Member Avatar for harinath_2007
0
82
Member Avatar for Majestics

Hi.. I can answer only to your some of the questions as i too belong to Java category. The best operating system to implement the network programming in C/C++ is definitely linux (because of multi-process nature). The syntax and semantics of the network programming is somewhat different in linux.. (as …

Member Avatar for doug65536
0
207
Member Avatar for maverick420

[QUOTE]Thanks for help but it still doesnot give me desired out put the display result is zero only. Any help regarding this? Please help.[/QUOTE] Your logic in the code is not correct.. I dont think you know how your code works. If you want to print minimun value & maximum …

Member Avatar for peter_budo
0
254
Member Avatar for mdheerajgupta
Member Avatar for Eagletalon
0
194
Member Avatar for neeraj goswami

[QUOTE]i have also specified the required path...please help .i am new to java.[/QUOTE] Make sure that you have set the path correctly and re-compile it again.

Member Avatar for NormR1
0
120
Member Avatar for happygeek

Very nice article.(looks like marketing to me) It will be useful if the OP could have post about "How it is made" or any "technical implementation details or softwares used etc" so that we can learn few technical stuff(since this website is about learning tech implementations) and the readers will …

Member Avatar for harinath_2007
0
416
Member Avatar for sydsine

[QUOTE]1. What is process synchronization and why its used.[/QUOTE] You'll get full info [URL="http://en.wikipedia.org/wiki/Synchronization_(computer_science)"]here[/URL] [QUOTE]2. How can we recover a word document or file that has been deleted permanently.[/QUOTE] There are many softwares available over the web. Some of the best i found are [URL="www.pandorarecovery.com"]Pandora recovery[/URL]

Member Avatar for Netcode
0
90
Member Avatar for harinath_2007

Hello folks... Happy to be a part of largest IT discussion community :) (a best place to share and update knowledge) Well , the point i want to highlight is that if someone posts in a thread i'm subscribed or a thread which i post , i cannot know until …

Member Avatar for Netcode
0
281
Member Avatar for txwhitetail

It's just NOT possible. Whatever may be the media you just cant stop from duplicating..

Member Avatar for cwarn23
0
167
Member Avatar for hacknayan
Member Avatar for manisakthi

I hope you know the meaning of what is meant by 32-bit number.? It means that it is below the range of 2^32=4294967296 So if a number which has value larger than the above value will not be a 32 bit number. Anyway can i know what made you check …

Member Avatar for harinath_2007
0
107
Member Avatar for Pravinrasal
Member Avatar for JamesCherrill
0
276
Member Avatar for now how abt tht
Member Avatar for harinath_2007
0
94
Member Avatar for laguardian

Simple. Place a [B]IF[/B] condition. [CODE]if(nResult==0) nResult=7; //definitely it is saturday[/CODE]

Member Avatar for Majestics
0
376
Member Avatar for kiko11

If you want to know whether button is disabled previously or make the button disabled even after closing the frame(or running the program again) , just save the state of the button to a file. Suppose if the button is disabled , write an integer or boolean value to a …

Member Avatar for harinath_2007
0
80
Member Avatar for sydsine
Member Avatar for jdm

Why cant you maintain login-id's and password system instead of card swiping and storing it in notepad and making it complex?

Member Avatar for TrustyTony
0
110
Member Avatar for SasseMan

Try this..[URL="http://download.oracle.com/javase/6/docs/api/java/awt/Robot.html"]Robot[/URL] [CODE]Robot r=new Robot(); r.createScreenCapture(new Rectangle(your jframe co-ordinates as parameters)); [/CODE] You need to calculate the co-ordinates of your frame inorder to capture only the frame. If you want to write the captured image to a image file , you can use ImageIO.write() method

Member Avatar for harinath_2007
0
128
Member Avatar for sydsine

Keeping it simple.. Process is a program which is currently under execution whereas Thread is a part of the program.A program or process can have many number of threads. Threads are intended for making the code independent.

Member Avatar for caperjack
0
83
Member Avatar for us0343

Post the error message here.. and [QUOTE]string[]args)[/QUOTE] String is a class . it should be capital. [CODE]public static void main(String[] args)[/CODE]

Member Avatar for us0343
0
179
Member Avatar for Stefano Mtangoo

[QUOTE]I know of two curl and libtorrent [/QUOTE] Could you post or share your information regarding that because even i am curious regarding what libraries they use in C/C++ as I have some idea on how to do that in java. Let me know if you are updated with any …

Member Avatar for Stefano Mtangoo
0
239
Member Avatar for misspuja
Member Avatar for NormR1
0
166
Member Avatar for Syrne

You can create an array of objects similar to how you create an array of primitive data. [CODE]Subscriber s[]=new Subscriber[10];[/CODE] The above creates an array of 10 Subscriber objects. However you should initialize those objects by using any loop . [CODE]for(int i=0;i<10;i++) { s[i]=new Subscriber(); }[/CODE]

Member Avatar for Syrne
0
167
Member Avatar for scyph

Get [URL="http://www.zonealarm.com/"]ZoneAlarm[/URL] firewall(free version). It will warn you when a application tries to connect with internet . So that way you can avoid those applications not to download anything or download updates. You can easily turn on and off the updates. I think this is the best way in my …

Member Avatar for harinath_2007
0
377

The End.