36,051 Topics

Member Avatar for
Member Avatar for ripdeath987

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?

Member Avatar for jwenting
0
97
Member Avatar for jwenting

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 …

0
86
Member Avatar for victoryn

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

Member Avatar for freesoft_2000
0
357
Member Avatar for md16185

As far as programming Java and Javascript can be confusing... How do you do a java-based chat, any ideas?

Member Avatar for freesoft_2000
0
491
Member Avatar for rpratt

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)); …

Member Avatar for server_crash
0
337
Member Avatar for zoltzer

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 …

Member Avatar for sam1
0
176
Member Avatar for Kennedy_f

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 …

Member Avatar for jwenting
0
179
Member Avatar for mu42774

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 …

Member Avatar for Sauce
0
122
Member Avatar for barrabomber

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

Member Avatar for server_crash
0
99
Member Avatar for ripdeath987

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 …

0
98
Member Avatar for zoltzer

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 …

0
97
Member Avatar for asatrujesus

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 …

Member Avatar for cheenu78
0
225
Member Avatar for George2

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

Member Avatar for George2
0
362
Member Avatar for Pete_R

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 …

Member Avatar for Pete_R
0
235
Member Avatar for asatrujesus

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 …

Member Avatar for freesoft_2000
0
421
Member Avatar for ripdeath987

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 …

Member Avatar for freesoft_2000
0
152
Member Avatar for gssharma16

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)

Member Avatar for jwenting
0
126
Member Avatar for om1d_h

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 …

Member Avatar for freesoft_2000
0
135
Member Avatar for hidleb

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

Member Avatar for freesoft_2000
0
158
Member Avatar for glamo

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 :

Member Avatar for freesoft_2000
0
218
Member Avatar for higherGround574

I'm currenty using Eclipse for my compiler ... does anyone have any better suggestions?

Member Avatar for freesoft_2000
0
158
Member Avatar for cman

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

Member Avatar for server_crash
0
170
Member Avatar for dmissai

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

Member Avatar for jwenting
0
150
Member Avatar for mmiikkee12

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.

Member Avatar for Sauce
0
692
Member Avatar for CoolHandLuke

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 …

Member Avatar for Sauce
0
108
Member Avatar for asatrujesus

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 …

Member Avatar for freesoft_2000
0
212
Member Avatar for bobr_1013

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 …

Member Avatar for bobr_1013
0
166
Member Avatar for joshSCH

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 …

Member Avatar for joshSCH
0
164
Member Avatar for gokul

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 …

Member Avatar for jwenting
0
213
Member Avatar for server_crash

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.

Member Avatar for jwenting
0
452
Member Avatar for Java John needs

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 …

Member Avatar for jwenting
-1
303
Member Avatar for grajeshmsc

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

Member Avatar for mmiikkee12
0
158
Member Avatar for freesoft_2000

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 …

Member Avatar for Sauce
0
133
Member Avatar for joshSCH

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 …

Member Avatar for server_crash
0
434
Member Avatar for ripdeath987

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

Member Avatar for freesoft_2000
0
169
Member Avatar for freesoft_2000

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 …

Member Avatar for Sauce
0
81
Member Avatar for Debugthiss

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 …

Member Avatar for Debugthiss
0
207
Member Avatar for jrichards

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

Member Avatar for mmiikkee12
0
169
Member Avatar for davidlim

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 …

Member Avatar for Easter Bunny
0
245
Member Avatar for samrat_cs

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 …

0
63
Member Avatar for samrat_cs

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 …

0
97
Member Avatar for MsEbonee

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 …

Member Avatar for jwenting
0
149
Member Avatar for asatrujesus

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 …

Member Avatar for asatrujesus
0
444
Member Avatar for Serpico

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 …

Member Avatar for yni420
0
186
Member Avatar for fam1x

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 …

Member Avatar for JANINE
0
159
Member Avatar for roopasumanth

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

Member Avatar for roopasumanth
0
159
Member Avatar for Leo Vite

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 …

Member Avatar for Leo Vite
0
125
Member Avatar for CoolHandLuke

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 …

Member Avatar for compiler
0
266
Member Avatar for freesoft_2000

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 …

Member Avatar for freesoft_2000
0
145
Member Avatar for EDSCHWARZMANN

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 …

Member Avatar for kccomputerdr
0
125

The End.