36,051 Topics
![]() | |
1. How can I send files as mail attachments in java? 2. How can I create a new directory everyday and save files in it? 3. How can I append into a file after saving the file with a save file sequence? | |
I try to use getClass().getPackage().getName() to get the package name of an object to insert into a log message. Sometimes it works, at other times it throws a NullPointerException. Does anyone have any insight into the conditions under which getPackage() returns null ('cause that's what's happening)? The classes in question … | |
Hi, I have developed the attached JAVA programs (*.java) and encountered compilation error (*.txt), it would be very much appreciated if you can help. Thanks, Victor | |
As far as programming Java and Javascript can be confusing... How do you do a java-based chat, any ideas? | |
Hi, Has anyone had the following problem? When I run the following code (just using Notepad and my DOS prompt): public class MathFunctionsApp2 { public static void main(String[] args) { int b = -50; double x = 25.0; double y = 3.0; double z = 4.0; System.out.println("cbrt(x) = "+ Math.cbrt(x)); … | |
I need a program that will need to do the following for me in order to keep track of grades or at least how to get started using an Array: Ask the user for the # of Math homework assignments Ask the user for the total points possible for Math … | |
I'm seeking for java2 certification. I downloaded ucertify product. Question are on right quality. Approx. 500 questions with study notes is quite enough for prepration. Challenging practice questions have been included to closely model the format, tone, topics, and difficulty of the real exam. Now they are giving 50% discount … | |
Hi, By the way, I used JAVA to run this simulator.However, my question is, I have to deliver this part of the assignment by 7th of August, but I am not sure if whatever I tried to explain on the [B]Explanation for the Summary Result File for TWO processes in … | |
Hi, I'm having a problem creating a java program to generate odd numbers and then perform calculations on them. Some ideas and help are much appreciated. thx in advance | |
First of all thanks everyone for the replies...They helped a lot. Now I want to mail multiple files as attachments also on 1 button touch...And how do i create a Directory to store files that I save . So far i have written this code but maybe you can upgrade … | |
I need any help I can get!! Below is my coding. When I run the program it just averages out all the numbers that I put in, which doesn't coincide with the homework assignment as stated right here: For this assignment, you will write a Java program that will determine … | |
I've figured out im using the wrong loop for the task at hand but im still wondering why it repeats this exactly 3 times: for(ch = (char) System.in.read(); ch != ('k' | 'K') ; ch = (char) System.in.read()) { System.out.println("sorry, you're incorrect!\n Guess again: "); } It prints this in … | |
Hello everyone, I want to write an own CVS client in Java. And I am looking for the following materials, - CVS protocol specification - Education materials about CVS protocol - A simple open source CVS client in Java Could anyone help? thanks in advance, George | |
Hello, My first post, a little nervous I am. I am starting with learning Java on the server side in servlets. I use Flash on the client side. What I would like to do is the following: [INDENT]client side: send xml file / receive xml file server: accept xml file … | |
Im reading about logical operators (yes noob here) and Im sort of confused as to what some of them actually mean. Example: if b1 is true and b2 is false !(b1 & b2) is true b1 | b2 is true b1 & b2 is false b1 ^ b2 is true … | |
First of all thanks everyone for the replies...They helped a lot. Now I want to mail multiple files as attachments also on 1 button touch...And how do i create a Directory to store files that I save . So far i have written this code but maybe you can upgrade … | |
plz send me the name of method to convert the string to individual char and Tell me wheather Character.parseChar() exit or not in JAVA. with thanks Ghanshayam Sharma (MCA Student) | |
We are developing a web based accounting system. We have a server runnig Linux (switching to win is ok) and some clients all runnig win. In the program clients neeed to scan some document attachments and upload them to our servers. Some recommended to use Java applets. what do you … | |
hi all, i have a javacard code for smart cards . my problem is how to add new functions for the credit method. The essential code is written but i couldnt edit my credit and debit method. could you help me with that please ? thanks | |
hi ti every one i am newbie , actually i want to develop a project using java actually the project is on "network mangment through SNMP" i woulkd like to know all baout how to start this project tell me about this byeeeeeeeeee : | |
I'm currenty using Eclipse for my compiler ... does anyone have any better suggestions? | |
Im trying to compile a program but get this error javac:invalid flag:order.java-xlint and when i compile without -xlint i get the following Note: order.java uses or overided a deprecated API. Note:Recompile with -Xlint:deprecation for details | |
hey i am try to design webserver by using java /C++ programming or any programming language so if any one interesting to assist me i am attaching source code hear .you can use plugs in to access source code by using any programming language | |
Is there any way to write an operating system in Java? I know it's possible to use C, but I prefer Java. It's easier to use. | |
I have a couple problems here that I have answered. I am not 100% sure of my answer(s). Would you be so kind as to check them and provide suggestions if they are not correct. These 2 questions are regarding what methods super/sub class(es) can invoke (question1) and which objects … | |
In the java book im reading (Java: a beginner's guide by Herbert Schildt) it usually displays the main as such: public static void main(String args[]) { but often in this website I see code written as this: public static void main(String[] args) { Is there a functional difference between the … | |
Hi all, I'm new to Java. I'm having a problem with a program which will compile but not run. When I run it, I get the following error: java.lang.NoSuchMethodError: main Exception in thread "main" ----jGRASP wedge2: exit code for process is 1. ----jGRASP: operation complete. The name of the program … | |
Ok well i have tried manually creating jars and manifest files, none of which seemed to work. I recently discovered that you can create a jar through JCreater-Tools. I created the jar file and unzipped it to get the META-INF folder containing MANIFEST.MF. I modified the manifest file so that … | |
Hai, i am doing project in VoIP in Java... I am using Swing for designing purpose.. so i want to design the screenings by using GUI Builders for swing.. i need ur help that what r the different GUI builders..? which one is best and simple and also where i … | |
Take just this simple method from the graphics class: fillOval()....Why is it abstract? Or better yet, where does it become concrete? I know I've never had to create my own implementation of that method. | |
I need assistance with the following: Write the Java code which uses iteration to produce the following output:: 1 1 2 1 2 3 1 2 3 4 //////////////////////////////////////////////////////////////// My Source code: (Not correct) Please review, I must include a loop to produce output as follows: 1 1 2 1 … | |
Hi All I want to validate the format of file path using struts.That is if the user gives c/:Test.txt instead of c:\Test.txt.PLz Help. Thank you | |
Hi everyone, I am trying to add pictures into a html document and so far everthing has been going well but i have a question. Wen i insert the pictures into the html document they show up and i am able to save them to disk in html format. The … | |
Im pretty new to java and I have created a couple simple programs... and I was just wandering how exactly to use textFields and textAreas. I have created a textfield before, but I need a simple textField that works like the windows prompt. I just want a textField that will … | |
I am making a Java application and I can't make it save multiple text files. The program must save a different file everytime the save button is pressed. Can it be done? I thank you in advance | |
Hi everyone, I am currently trying to do an application that does the upload as well the download of files from a http server that needs authentication. The thing is i am not very sure where to begin and i am open to any suggestions. Basically what i am trying … | |
I'm trying to learn Java on my own; however this book(for lack of a better word) sucks. It only has integer examples; therefore, I am unsure of how to script names, I'm trying "cha"; however it doesn't work. I want to write a program that reads: the total number of … | |
My problem usually happens when I have logged off the internet and I go back. I get a small screen in the center and it says "dtdp://748/331lljgen44.cjt1net/HTM/704/0/JavaSiteRequest.asp?LV=6000&DC=453&NF=0&IW=720&IH=300&ORD=1121629852397? 7" and after I hit OK it then says can not find site "dtdp://748/331lljgen44.cjt1net/HTM/704/0/JavaSiteRequest.asp?LV=6000&DC=453&NF=0&IW=720&IH=300&ORD=1121629852397? and after that I can go about my business | |
I've been writing a java application to run employee data and compute their salary. I'm having some problem with my Manager class. Manager class is for adding and removing employee record supervise by a manager and compute their total salary. Can anyone guide me how to develope this class with … | |
Hi all, I have designed a Form in PDF using Adobe Designer 7.0. That will be linked within every user account in intranet, which is developed using JSP and running by Tomcat 4.0.1. There are some fields in PDF form like "User ID","User Name". After login to the account,user can … | |
I am encountered with the Problem in using getAttribute() in JSP. In JSP, getAttribute( ) does not show value properly from Java Beans but after refrash it shows.There is no error in coding Java beans and JSP as well. I am using Tomcat 4.0.1. Is it problem of web server … | |
The assignment is as follows: Write an original program with a theme of a family vacation. The name of the class containing the main method should be VacationXXX. There should be at least four classes. Use a menu with a switch statement to provide a menu of options to call … | |
Okay, when I first started trying to teach java to myself, I picked up a book called "Java: A beginners guide" by Herbert Schildt. I thought compiling was going to be as easy as c, I was of course wrong. Well through various searches I've figured out how to get … | |
This is a long one so plz bear with me: I am 27 years old. I hold Bsc in biomedical engineering.I worked in the field of laboratory equipments for a while then I decided to learn something more creative rather than procedural and work with visuals rather than control boards/circuits … | |
Can anyone help I have the oddest problem on my PC. I am running Windows XP with SP2 and have IE6. The problem is when I go to [url]www.porsche.com[/url] and try to run the Porsche Car Configurator web page, the page loads up and says done at the botton conner … | |
hi i want to do a program for mway search( external sorting),displaying each step of sort in java, can any one of you please help me, i am a starter in java. thanks in advance | |
Hi all, Im new to the site and to Java. Im having some trouble with my current assignment. I was suposed to make an isosceles triangle with asterisks based on a number entered by user. I got the first half correct but I can not figure out my loops for … | |
I have attached 2 java files which, when run, simulate a calculator that performs addition and multiplication only. I have been working on it for some time...getting assistance from varioius sources. I am having two issues I need help in correcting. They are as follows: 1) When multiplying two single … | |
Hi everyone, I need a bit of help on java proxies and managed to find some articles about them on javaworld but the thing is that i can't seem to access these articles for over a week now and really don't know why. Could someone please try to access these … | |
I was told a problem was due to corrupted Java, so deleted all files and folders using find function. I also wiped MSIE to use an earlier version which I was told contained MSVM. Original system: W 98 SE, MSIE 6 SP1, AOL 8.0 Java working normally current system: W98 … |
The End.